From 318dd7aa4c1532c1e0046004a04758cb9fd1dd14 Mon Sep 17 00:00:00 2001 From: Dominik Nakamura Date: Mon, 4 Dec 2023 16:02:55 +0900 Subject: [PATCH] feat(lsp): exclude `-lsp` suffix from the config and naming It's not needed to repeat the LSP naming everywhere in the config and naming of the VSCode extension, and can simply be omitted. --- crates/stef-lsp/src/main.rs | 4 ++-- vscode-extension/package.json | 4 ++-- vscode-extension/src/extension.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/stef-lsp/src/main.rs b/crates/stef-lsp/src/main.rs index b32dc98..845c28e 100644 --- a/crates/stef-lsp/src/main.rs +++ b/crates/stef-lsp/src/main.rs @@ -118,7 +118,7 @@ impl LanguageServer for Backend { .client .configuration(vec![ConfigurationItem { scope_uri: None, - section: Some("stef-lsp".to_owned()), + section: Some("stef".to_owned()), }]) .await .unwrap() @@ -221,7 +221,7 @@ impl LanguageServer for Backend { .client .configuration(vec![ConfigurationItem { scope_uri: None, - section: Some("stef-lsp".to_owned()), + section: Some("stef".to_owned()), }]) .await .unwrap() diff --git a/vscode-extension/package.json b/vscode-extension/package.json index fa8d953..81a7875 100644 --- a/vscode-extension/package.json +++ b/vscode-extension/package.json @@ -38,9 +38,9 @@ } ], "configuration": { - "title": "STEF", + "title": "Strictly Typed Encoding Format", "properties": { - "stef-lsp.maxNumberOfProblems": { + "stef.maxNumberOfProblems": { "scope": "resource", "type": "number", "default": 100, diff --git a/vscode-extension/src/extension.ts b/vscode-extension/src/extension.ts index f5ebc6d..df2ef70 100644 --- a/vscode-extension/src/extension.ts +++ b/vscode-extension/src/extension.ts @@ -35,8 +35,8 @@ export function activate(context: ExtensionContext) { }; client = new LanguageClient( - "stef-lsp", - "STEF Language Server", + "stef", + "Strictly Typed Encoding Format", serverOptions, clientOptions, );