aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/commands')
-rw-r--r--editors/code/src/commands/runnables.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/code/src/commands/runnables.ts b/editors/code/src/commands/runnables.ts
index 2238a5a73..9b0780650 100644
--- a/editors/code/src/commands/runnables.ts
+++ b/editors/code/src/commands/runnables.ts
@@ -1,6 +1,7 @@
1import * as vscode from 'vscode'; 1import * as vscode from 'vscode';
2import * as lc from 'vscode-languageclient'; 2import * as lc from 'vscode-languageclient';
3import * as ra from '../rust-analyzer-api'; 3import * as ra from '../rust-analyzer-api';
4import * as os from "os";
4 5
5import { Ctx, Cmd } from '../ctx'; 6import { Ctx, Cmd } from '../ctx';
6import { Cargo } from '../cargo'; 7import { Cargo } from '../cargo';
@@ -82,7 +83,7 @@ async function getCppvsDebugConfig(config: ra.Runnable, sourceFileMap: Record<st
82 let executable = await cargo.executableFromArgs(config.args, config.extraArgs); 83 let executable = await cargo.executableFromArgs(config.args, config.extraArgs);
83 84
84 return { 85 return {
85 type: "cppvsdbg", 86 type: (os.platform() === "win32") ? "cppvsdbg" : 'cppdbg',
86 request: "launch", 87 request: "launch",
87 name: config.label, 88 name: config.label,
88 program: executable, 89 program: executable,