Skip to content

Commit

Permalink
let ZLS handle untitled/unsaved documents
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Jul 16, 2024
1 parent 18fb325 commit 2bcbadf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/zls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ import {
let outputChannel: vscode.OutputChannel;
export let client: LanguageClient | null = null;

const ZIG_MODE: DocumentSelector = [{ language: "zig", scheme: "file" }];
const ZIG_MODE: DocumentSelector = [
{ language: "zig", scheme: "file" },
{ language: "zig", scheme: "untitled" },
];

async function startClient() {
const configuration = vscode.workspace.getConfiguration("zig.zls");
Expand Down

0 comments on commit 2bcbadf

Please sign in to comment.