diff options
author | vsrs <[email protected]> | 2020-04-29 14:52:53 +0100 |
---|---|---|
committer | vsrs <[email protected]> | 2020-04-29 14:52:53 +0100 |
commit | 73a1947d19b4d3c29aa462e856e3d410d6e1e5dd (patch) | |
tree | 5145e449cef6a995014aa80ed7fe477ab78c6b5c /editors/code/src/commands/runnables.ts | |
parent | 9153e96e88236e2f867dee8f0f291af5cfaf90f4 (diff) |
MS C++ tools on linux
Diffstat (limited to 'editors/code/src/commands/runnables.ts')
-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, |