Skip to content

Commit 2665696

Browse files
Add LIBCLANG_LOGGING as env variable but do not expose it to options
1 parent be11800 commit 2665696

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/extension.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,16 @@ export function activate(context: ExtensionContext) {
194194
clientConfig['clientVersion'] = VERSION
195195
let args = ['--language-server'].concat(clientConfig['launchArgs']);
196196

197+
let env: any = {};
198+
// env.LIBCLANG_LOGGING = '1';
199+
// env.MALLOC_CHECK_ = '2';
200+
197201
let serverOptions: ServerOptions = {
198202
command: clientConfig.launchCommand,
199203
args: args,
200204
options: {
201-
cwd: clientConfig.launchWorkingDirectory
202-
// env: { 'MALLOC_CHECK_': '2' }
205+
cwd: clientConfig.launchWorkingDirectory,
206+
env: env
203207
}
204208
};
205209
console.log(

0 commit comments

Comments
 (0)