Skip to content

Commit

Permalink
Give diagnostics collection a name
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusAmshove committed Jan 7, 2025
1 parent 88fa7a3 commit cb50cd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ export async function activate(context: vscode.ExtensionContext) {
},
progressOnInitialization: true,
initializationOptions: config,
diagnosticCollectionName: "natls",
};

client = new LanguageClient("natls", "Natural Language Server", serverOptions, clientOptions);
await client.start();

context.subscriptions.push(new vscode.Disposable(() => client.stop()));

context.subscriptions.push(vscode.commands.registerCommand("natls.codelens.showReferences", async (uri: string, position: ls.Range) => {
context.subscriptions.push(vscode.commands.registerCommand("natls.codelens.showReferences", async (_uri: string, position: ls.Range) => {
const document = vscode.window.activeTextEditor?.document;
if(!document)
{
Expand Down

0 comments on commit cb50cd0

Please sign in to comment.