Skip to content

Commit

Permalink
Small lsp tweaks (#572)
Browse files Browse the repository at this point in the history
* Add enableThreading setting

* Add logLevel option, fix lsp problemMatcher
  • Loading branch information
TwitchBronBron authored May 28, 2024
1 parent 40322d2 commit 0538651
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
28 changes: 24 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1809,6 +1809,26 @@
"description": "Enable the Language Server, which includes things like syntax checking, intellisense, completions, etc.",
"default": true,
"scope": "resource"
},
"brightscript.languageServer.enableThreading": {
"type": "boolean",
"description": "Should the projects in this workspace be run in their own dedicated worker threads, or all run on the main thread",
"default": true,
"scope": "resource"
},
"brightscript.languageServer.logLevel": {
"type": "string",
"enum": [
"off",
"error",
"warn",
"log",
"info",
"debug",
"trace"
],
"description": "The level of logging that should be used for the language server. If omitted, the most verbose value from all bsconfig.json files will be used, or default to 'log' if no bsconfig.json files are found.",
"scope": "resource"
}
}
},
Expand Down Expand Up @@ -3945,10 +3965,10 @@
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "^\\[(?:\\d+|:|\\s|AM|PM)+\\]\\s*((File change detected\\.+\\s*Starting incremental compilation)|(Starting compilation in watch mode))\\.+"
"regexp": "^\\[(?:\\d+|:|\\.|\\s|AM|PM)+\\]\\s*((File change detected\\.+\\s*Starting incremental compilation)|(Starting compilation in watch mode))\\.+"
},
"endsPattern": {
"regexp": "^\\[(?:\\d+|:|\\s|AM|PM)+\\]\\s*(?:Compilation complete\\.|Found \\d+ errors?\\.)?\\s*Watching for file changes\\.+"
"regexp": "^\\[(?:\\d+|:|\\.|\\s|AM|PM)+\\]\\s*(?:Compilation complete\\.|Found \\d+ errors?\\.)?\\s*Watching for file changes\\.+"
}
}
},
Expand All @@ -3968,10 +3988,10 @@
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "^\\[(?:\\d+|:|\\s|AM|PM)+\\]\\s*((File change detected\\.+\\s*Starting incremental compilation)|(Starting compilation in watch mode))\\.+"
"regexp": "^\\[(?:\\d+|:|\\.|\\s|AM|PM)+\\]\\s*((File change detected\\.+\\s*Starting incremental compilation)|(Starting compilation in watch mode))\\.+"
},
"endsPattern": {
"regexp": "^\\[(?:\\d+|:|\\s|AM|PM)+\\]\\s*(?:Compilation complete\\.|Found \\d+ errors?\\.)?\\s*Watching for file changes\\.+"
"regexp": "^\\[(?:\\d+|:|\\.|\\s|AM|PM)+\\]\\s*(?:Compilation complete\\.|Found \\d+ errors?\\.)?\\s*Watching for file changes\\.+"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ActiveDeviceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class ActiveDeviceManager {

finder.on('timeout', () => {
if (devices.length === 0) {
console.info(`Could not find any Roku devices after ${timeout / 1000} seconds`);
// console.info(`Could not find any Roku devices after ${timeout / 1000} seconds`);
}
resolve(devices);
});
Expand Down
2 changes: 1 addition & 1 deletion src/DeclarationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export class DeclarationProvider implements Disposable {
new Range(line, match[0].length - match[1].length, line, match[0].length),
new Range(line, 0, line, text.length)
);
console.log('FOUND VAR ' + varSymbol.name);
// console.log('FOUND VAR ' + varSymbol.name);
symbols.push(varSymbol);

if (classSymbol) {
Expand Down

0 comments on commit 0538651

Please sign in to comment.