You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VSCode extension: add support for bpp-lsp's -j/--threads
Connected to 6d721b5
The VSCode extension now has a configurable option for the number of worker
threads in the language server.
Both this feature and the earlier-added support for -b (target-bash-version)
are now gated behind bpp-lsp version number checks.
- -b was introduced in v0.8.0. If the version number < 0.8.0, the extension
will ignore the configured option for -b, and show a warning to the user
- -j will be introduced in the upcoming v0.8.11. As with -b, if the version
number isn't high enough, the option is ignored and warning is displayed
Copy file name to clipboardExpand all lines: vscode/CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
# Change Log
2
2
3
+
## [0.8.1]
4
+
- Added support for bpp-lsp's `-j`/`--threads` option to specify the number of worker threads in the language server
5
+
- This option allows users to configure the performance of the language server by specifying how many worker threads it should use for processing requests.
6
+
- Users can set this option in the VSCode extension settings under `Bash++: Language Server: Thread Count`.
7
+
- By default, the language server will use a number of threads equal to the number of CPU cores available.
8
+
- Gated `-b` and `-j` options behind a check for the language server's version to ensure compatibility
9
+
-`-b` was introduced in bpp-lsp v0.8.0, and `-j` was introduced in bpp-lsp v0.8.11
10
+
- If the language server does not support these options, the extension will fall back to default behavior without them, and will show a startup warning to the user
11
+
3
12
## [0.8.0]
4
13
5
14
- Added support for bpp-lsp's `-b`/`--target-bash` option to specify the target Bash version for compilation
vscode.window.showInformationMessage('Warning: Unable to determine Bash++ Language Server version. Some features may not work as expected. Please ensure the server is installed and accessible.');
31
+
}
32
+
return[0,0,0];
33
+
}
34
+
35
+
/**
36
+
* Function to compare two version arrays [major, minor, patch]
vscode.window.showInformationMessage('Bash++ Language Server version does not support target bash version configuration. Please upgrade to bpp-lsp 0.8.0 or later to use this feature.');
vscode.window.showInformationMessage('Bash++ Language Server version does not support thread count configuration. Please upgrade to bpp-lsp 0.8.11 or later to use this feature.');
0 commit comments