diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/src/commands/runnables.ts | 3 |
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 @@ | |||
1 | import * as vscode from 'vscode'; | 1 | import * as vscode from 'vscode'; |
2 | import * as lc from 'vscode-languageclient'; | 2 | import * as lc from 'vscode-languageclient'; |
3 | import * as ra from '../rust-analyzer-api'; | 3 | import * as ra from '../rust-analyzer-api'; |
4 | import * as os from "os"; | ||
4 | 5 | ||
5 | import { Ctx, Cmd } from '../ctx'; | 6 | import { Ctx, Cmd } from '../ctx'; |
6 | import { Cargo } from '../cargo'; | 7 | import { 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, |