Skip to content

Commit

Permalink
pass to server
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp committed May 5, 2024
1 parent 428ceec commit 2a5f5eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export function activate(context: ExtensionContext) {
// when running in web mode, it fails posting these values as messages, so convert to raw JSON,
codeLens: JSON.parse(JSON.stringify(workspace.getConfiguration("abaplint").get("codeLens"))),
inlayHints: JSON.parse(JSON.stringify(workspace.getConfiguration("abaplint").get("inlayHints"))),
formatting: JSON.parse(JSON.stringify(workspace.getConfiguration("abaplint").get("formatting"))),
},
synchronize: {
fileEvents: workspace.createFileSystemWatcher("**/abaplint.json*"),
Expand Down
5 changes: 5 additions & 0 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ function initialize() {
inlayHintProvider = undefined;
}

let documentFormattingProvider = true;

Check failure on line 66 in server/src/server.ts

View workflow job for this annotation

GitHub Actions / test

'documentFormattingProvider' is declared but its value is never read.

Check failure on line 66 in server/src/server.ts

View workflow job for this annotation

GitHub Actions / test

'documentFormattingProvider' is declared but its value is never read.
if (params.initializationOptions.formatting?.version === "off") {
documentFormattingProvider = false;
}

// does the client support the `workspace/configuration` request?
// if not, we will fall back using global settings
hasConfigurationCapability = capabilities.workspace && !!capabilities.workspace.configuration;
Expand Down

0 comments on commit 2a5f5eb

Please sign in to comment.