Skip to content

Commit 8445e03

Browse files
Enable syntax language server (#1329)
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
1 parent 912a574 commit 8445e03

8 files changed

Lines changed: 522 additions & 259 deletions

File tree

.vscode/launch.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,35 @@
4141
},
4242
"preLaunchTask": "npm: watch"
4343
},
44+
{
45+
"name": "Launch Extension - SyntaxLS Client",
46+
"type": "extensionHost",
47+
"request": "launch",
48+
"runtimeExecutable": "${execPath}",
49+
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
50+
"stopOnEntry": false,
51+
"sourceMaps": true,
52+
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
53+
"env": {
54+
"SYNTAXLS_CLIENT_PORT": "5037"
55+
},
56+
"preLaunchTask": "npm: watch"
57+
},
58+
{
59+
"name": "Launch Extension - Hybrid Clients",
60+
"type": "extensionHost",
61+
"request": "launch",
62+
"runtimeExecutable": "${execPath}",
63+
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
64+
"stopOnEntry": false,
65+
"sourceMaps": true,
66+
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
67+
"env": {
68+
"JDTLS_CLIENT_PORT": "5036",
69+
"SYNTAXLS_CLIENT_PORT": "5037"
70+
},
71+
"preLaunchTask": "npm: watch"
72+
},
4473
{
4574
"name": "Launch Tests",
4675
"type": "extensionHost",

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,22 @@
500500
"default": [],
501501
"description": "Java Execution Environments -> Runtimes.",
502502
"scope": "machine"
503+
},
504+
"java.server.launchMode": {
505+
"type": "string",
506+
"enum": [
507+
"Standard",
508+
"LightWeight",
509+
"Hybrid"
510+
],
511+
"enumDescriptions": [
512+
"Provides full features such as intellisense, refactoring, building, Maven/Gradle support etc.",
513+
"Starts a syntax server with lower start-up cost. Only provides syntax features such as outline, navigation, javadoc, syntax errors.",
514+
"Provides full features with better responsiveness. It starts a standard language server and a secondary syntax server. The syntax server provides syntax features until the standard server is ready."
515+
],
516+
"description": "The launch mode for the Java extension",
517+
"default": "Hybrid",
518+
"scope": "window"
503519
}
504520
}
505521
},

0 commit comments

Comments
 (0)