Skip to content

Commit 3f1cb1c

Browse files
justinytchenJustin ChenTylerLeonhardt
authored
Register Language Server Client Proposed Features - Enabling Semantic Highlighting (#2834)
* registered proposed features for enabling semantic tokens * Update theme.json * Added comment clarifying why registering features is needed Co-authored-by: Tyler James Leonhardt <[email protected]> Co-authored-by: Justin Chen <[email protected]> Co-authored-by: Tyler James Leonhardt <[email protected]>
1 parent 636aaa0 commit 3f1cb1c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/session.ts

+3
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,9 @@ export class SessionManager implements Middleware {
549549
connectFunc,
550550
clientOptions);
551551

552+
// This enables handling Semantic Highlighting messages in PowerShell Editor Services
553+
this.languageServerClient.registerProposedFeatures();
554+
552555
this.languageServerClient.onReady().then(
553556
() => {
554557
this.languageServerClient

themes/theme-psise/theme.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "PowerShell ISE",
3+
"semanticHighlighting": true,
34
"tokenColors": [
45
{
56
"settings": {

0 commit comments

Comments
 (0)