This commit is contained in:
csh
2025-08-29 16:54:46 +08:00
parent 540d58e86f
commit 2c4e5ac28a
8 changed files with 39 additions and 22 deletions
+12 -4
View File
@@ -45,10 +45,18 @@ export function activate(context: vscode.ExtensionContext) {
vscode.window.showErrorMessage(
"Cannot find tsl-server. Please install it globally or include it in your extension's server directory."
)
} else {
const serverOptions: ServerOptions = {
run: {command: serverExe, transport: TransportKind.stdio, args: serverArguments},
debug: {command: serverExe, transport: TransportKind.stdio, args: serverArguments}
return
}
const serverOptions: ServerOptions = {
run: {command: serverExe, transport: TransportKind.stdio, args: ['--log=trace', '--log-stderr']},
debug: {command: serverExe, transport: TransportKind.stdio, args: ['--log=trace', '--log-stderr']}
}
const clientOptions: LanguageClientOptions = {
documentSelector: [{scheme: 'file', language: 'tsl'}],
synchronize: {
fileEvents: vscode.workspace.createFileSystemWatcher('**/*.tsl')
}
const clientOptions: LanguageClientOptions = {