Skip to content

Commit 0c2d40d

Browse files
authored
Allow "clangd.path" to point to a shell script (#708)
In VSCode 1.72 and later (which uses node 20), this requires passing `shell: true` in the executable options.
1 parent 983dc88 commit 0c2d40d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clangd-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class ClangdContext implements vscode.Disposable {
6969
const clangd: vscodelc.Executable = {
7070
command: clangdPath,
7171
args: await config.get<string[]>('arguments'),
72-
options: {cwd: vscode.workspace.rootPath || process.cwd()}
72+
options: {cwd: vscode.workspace.rootPath || process.cwd(), shell: true}
7373
};
7474
const traceFile = config.get<string>('trace');
7575
if (!!traceFile) {

0 commit comments

Comments
 (0)