Skip to content

Commit fce0087

Browse files
Revert #730 and release 0.1.33 (#736)
This reverts commit ea588aa.
1 parent 2b44eef commit fce0087

File tree

5 files changed

+17
-27
lines changed

5 files changed

+17
-27
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## Version 0.1.33: November 21, 2024
4+
5+
* Reverted [#730](https://github.com/clangd/vscode-clangd/pull/730) for causing [#734](https://github.com/clangd/vscode-clangd/issues/734)
6+
7+
38
## Version 0.1.32: November 21, 2024
49

510
* Allow "clangd.path" to point to a shell script (restoring behavior from VS Code 1.91), behind option "clangd.useScriptAsExecutable" [#730](https://github.com/clangd/vscode-clangd/pull/730)

DEVELOPING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ recommend to run `npm run format` before sending a patch.
4848

4949
To create a new release, create a commit that:
5050

51-
- increases the version number in `package.json` and `package-lock.json`
51+
- increases the version number in `package.json`
5252
- updates `CHANGELOG.md` to cover changes since the last release
5353

5454
Our CI will recognize the commit and publish new versions to the VSCode

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-clangd",
33
"displayName": "clangd",
44
"description": "C/C++ completion, navigation, and insights",
5-
"version": "0.1.32",
5+
"version": "0.1.33",
66
"publisher": "llvm-vs-code-extensions",
77
"license": "MIT",
88
"homepage": "https://clangd.llvm.org/",
@@ -78,7 +78,6 @@
7878
"description": "In restricted mode clangd.path and clangd.arguments are not respected.",
7979
"restrictedConfigurations": [
8080
"clangd.path",
81-
"clangd.useScriptAsExecutable",
8281
"clangd.arguments"
8382
]
8483
}
@@ -104,12 +103,6 @@
104103
"scope": "machine-overridable",
105104
"description": "The path to clangd executable, e.g.: /usr/bin/clangd."
106105
},
107-
"clangd.useScriptAsExecutable": {
108-
"type": "boolean",
109-
"default": "false",
110-
"scope": "machine-overridable",
111-
"description": "Allows the path to be a script e.g.: clangd.sh."
112-
},
113106
"clangd.arguments": {
114107
"type": "array",
115108
"default": [],
@@ -404,4 +397,4 @@
404397
]
405398
}
406399
}
407-
}
400+
}

src/clangd-context.ts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,28 +68,20 @@ export class ClangdContext implements vscode.Disposable {
6868
if (!clangdPath)
6969
return null;
7070

71-
return new ClangdContext(subscriptions, clangdPath, outputChannel);
71+
const clangdArguments = await config.get<string[]>('arguments');
72+
73+
return new ClangdContext(subscriptions, clangdPath, clangdArguments,
74+
outputChannel);
7275
}
7376

7477
private constructor(subscriptions: vscode.Disposable[], clangdPath: string,
78+
clangdArguments: string[],
7579
outputChannel: vscode.OutputChannel) {
7680
this.subscriptions = subscriptions;
77-
const useScriptAsExecutable = config.get<boolean>('useScriptAsExecutable');
78-
let clangdArguments = config.get<string[]>('arguments');
79-
if (useScriptAsExecutable) {
80-
let quote = (str: string) => { return `"${str}"`; };
81-
clangdPath = quote(clangdPath)
82-
for (var i = 0; i < clangdArguments.length; i++) {
83-
clangdArguments[i] = quote(clangdArguments[i]);
84-
}
85-
}
8681
const clangd: vscodelc.Executable = {
8782
command: clangdPath,
8883
args: clangdArguments,
89-
options: {
90-
cwd: vscode.workspace.rootPath || process.cwd(),
91-
shell: useScriptAsExecutable
92-
}
84+
options: {cwd: vscode.workspace.rootPath || process.cwd()}
9385
};
9486
const traceFile = config.get<string>('trace');
9587
if (!!traceFile) {

0 commit comments

Comments
 (0)