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
constmessage=prefixEnd>=0 ? value.slice(prefixEnd+2) : value
19
+
if(value.startsWith('[Error'))
20
+
log.error(message)
21
+
elseif(value.startsWith('[Warn '))
22
+
log.warn(message)
23
+
else
24
+
log.info(message)
25
+
},
26
+
}
27
+
}
28
+
10
29
exportasyncfunctioncreateLanguageClient(
11
30
context: ExtensionContext,
12
31
): Promise<LanguageClient>{
@@ -18,6 +37,13 @@ export async function createLanguageClient(
18
37
run: {
19
38
module: serverModule,
20
39
transport: TransportKind.ipc,
40
+
options: {
41
+
env: {
42
+
...process.env,
43
+
// https://github.com/unocss/unocss/pull/5107 introduces ANSI color outputs which not render well in VS Code's output channel. Setting `NO_COLOR` to disable it.
44
+
NO_COLOR: '1',
45
+
},
46
+
},
21
47
},
22
48
debug: {
23
49
module: serverModule,
@@ -36,7 +62,11 @@ export async function createLanguageClient(
36
62
synchronize: {
37
63
configurationSection: 'unocss',
38
64
},
39
-
outputChannel: log,
65
+
/**
66
+
* use `log.channel` instead if we bump vscode-languageclient to v10
0 commit comments