Skip to content

Commit b3b92e2

Browse files
DaanDeMeyerjacobdufault
authored andcommitted
remove launch.WorkingDirectory
1 parent 2783e5d commit b3b92e2

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,6 @@
151151
"type": "object",
152152
"title": "cquery",
153153
"properties": {
154-
"cquery.launch.workingDirectory": {
155-
"type": "string",
156-
"default": "",
157-
"description": "Path to the directory which contains the cquery binary (ie, if cquery is checkout out at /work/cquery/ then this directory is /work/cquery/build/)"
158-
},
159154
"cquery.launch.command": {
160155
"type": "string",
161156
"default": "release/bin/cquery",

src/extension.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ function getClientConfig(context: ExtensionContext) {
8686

8787
// Read prefs; this map goes from `cquery/js name` => `vscode prefs name`.
8888
let configMapping = [
89-
['launchWorkingDirectory', 'launch.workingDirectory'],
9089
['launchCommand', 'launch.command'],
9190
['launchArgs', 'launch.args'],
9291
['cacheDirectory', kCacheDirPrefName],
@@ -112,7 +111,6 @@ function getClientConfig(context: ExtensionContext) {
112111
['client.snippetSupport', 'completion.enableSnippetInsertion']
113112
];
114113
let clientConfig = {
115-
launchWorkingDirectory: '',
116114
launchCommand: '',
117115
cacheDirectory: '',
118116
workspaceSymbol: {
@@ -135,18 +133,6 @@ function getClientConfig(context: ExtensionContext) {
135133
}
136134
}
137135

138-
// Verify that there is a working directory. If not, exit.
139-
if (!clientConfig.launchWorkingDirectory) {
140-
const kOpenSettings = 'Open Settings';
141-
const kErrorMessage =
142-
'Please specify the "cquery.launch.workingDirectory" setting and reload vscode';
143-
window.showErrorMessage(kErrorMessage, kOpenSettings).then(selected => {
144-
if (selected == kOpenSettings)
145-
commands.executeCommand('workbench.action.openWorkspaceSettings');
146-
});
147-
return;
148-
}
149-
150136
// Set up a cache directory if there is not one.
151137
if (!clientConfig.cacheDirectory) {
152138
if (!context.storagePath) {
@@ -231,7 +217,6 @@ export function activate(context: ExtensionContext) {
231217
command: clientConfig.launchCommand,
232218
args: args,
233219
options: {
234-
cwd: clientConfig.launchWorkingDirectory,
235220
env: env
236221
}
237222
};

0 commit comments

Comments
 (0)