Skip to content

Commit

Permalink
feat(lsp): exclude -lsp suffix from the config and naming
Browse files Browse the repository at this point in the history
It's not needed to repeat the LSP naming everywhere in the config and
naming of the VSCode extension, and can simply be omitted.
  • Loading branch information
dnaka91 committed Dec 4, 2023
1 parent e8cfa08 commit 318dd7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/stef-lsp/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
}
],
"configuration": {
"title": "STEF",
"title": "Strictly Typed Encoding Format",
"properties": {
"stef-lsp.maxNumberOfProblems": {
"stef.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
Expand Down
4 changes: 2 additions & 2 deletions vscode-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export function activate(context: ExtensionContext) {
};

client = new LanguageClient(
"stef-lsp",
"STEF Language Server",
"stef",
"Strictly Typed Encoding Format",
serverOptions,
clientOptions,
);
Expand Down

0 comments on commit 318dd7a

Please sign in to comment.