diff options
author | bscan <10503608+bscan@users.noreply.github.com> | 2024-04-05 21:37:20 -0400 |
---|---|---|
committer | bscan <10503608+bscan@users.noreply.github.com> | 2024-04-05 21:37:20 -0400 |
commit | 51819ed12de92a22fb836cf4c1c6de828fb6676d (patch) | |
tree | 5dd7b149ecfdc747c99fd86faf61309cc27ed1bb | |
parent | ddc803bc72bd7e996519899167718be758205f83 (diff) | |
download | PerlNavigator-51819ed12de92a22fb836cf4c1c6de828fb6676d.zip |
Adjust settings code for #125
-rw-r--r-- | server/src/server.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/server.ts b/server/src/server.ts index 7c5f873..ec4a038 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -125,7 +125,7 @@ const defaultSettings: NavigatorSettings = { severity1: "hint", includePaths: [], includeLib: true, - logging: true, // Get logging from vscode, but turn it off elsewhere. Sublime Text seems to struggle with it on Windows + logging: true, enableProgress: false, }; @@ -433,7 +433,7 @@ connection.onWorkspaceSymbol((params) => { connection.onDocumentFormatting(async (params) => { let document = documents.get(params.textDocument.uri); - let settings = documentSettings.get(params.textDocument.uri); + const settings = await getDocumentSettings(params.textDocument.uri); const workspaceFolders = await getWorkspaceFoldersSafe(); if (!document || !settings) return; @@ -443,7 +443,7 @@ connection.onDocumentFormatting(async (params) => { connection.onDocumentRangeFormatting(async (params) => { let document = documents.get(params.textDocument.uri); - let settings = documentSettings.get(params.textDocument.uri); + const settings = await getDocumentSettings(params.textDocument.uri); const workspaceFolders = await getWorkspaceFoldersSafe(); if (!document || !settings) return; |