diff options
| author | David Barsky <me@davidbarsky.com> | 2023-10-17 11:29:11 -0400 |
|---|---|---|
| committer | David Barsky <me@davidbarsky.com> | 2023-11-16 12:38:15 -0500 |
| commit | 0cd68bfed3e31c034a5ead664ac8ad84d8bc06fd (patch) | |
| tree | 10f761adb16c57ebc239329c5739c854fb5d731a /editors/code/src/commands.ts | |
| parent | bae9c084e9010ae6729777c58258ea4c9a0593a8 (diff) | |
| download | rust-0cd68bfed3e31c034a5ead664ac8ad84d8bc06fd.tar.gz rust-0cd68bfed3e31c034a5ead664ac8ad84d8bc06fd.zip | |
code: expose workspaces to other extensions; remove `addProject` command
Diffstat (limited to 'editors/code/src/commands.ts')
| -rw-r--r-- | editors/code/src/commands.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts index 7e24de664e9..3d33d255ad4 100644 --- a/editors/code/src/commands.ts +++ b/editors/code/src/commands.ts @@ -870,28 +870,6 @@ export function rebuildProcMacros(ctx: CtxInit): Cmd { return async () => ctx.client.sendRequest(ra.rebuildProcMacros); } -export function addProject(ctx: CtxInit): Cmd { - return async () => { - const extensionName = ctx.config.discoverProjectRunner; - // this command shouldn't be enabled in the first place if this isn't set. - if (!extensionName) { - return; - } - - const command = `${extensionName}.discoverWorkspaceCommand`; - const project: JsonProject = await vscode.commands.executeCommand(command); - - ctx.addToDiscoveredWorkspaces([project]); - - // this is a workaround to avoid needing writing the `rust-project.json` into - // a workspace-level VS Code-specific settings folder. We'd like to keep the - // `rust-project.json` entirely in-memory. - await ctx.client?.sendNotification(lc.DidChangeConfigurationNotification.type, { - settings: "", - }); - }; -} - async function showReferencesImpl( client: LanguageClient | undefined, uri: string, |
