mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
MS C++ tools on linux
This commit is contained in:
parent
9153e96e88
commit
73a1947d19
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
import * as vscode from 'vscode';
|
||||
import * as lc from 'vscode-languageclient';
|
||||
import * as ra from '../rust-analyzer-api';
|
||||
import * as os from "os";
|
||||
|
||||
import { Ctx, Cmd } from '../ctx';
|
||||
import { Cargo } from '../cargo';
|
||||
|
@ -82,7 +83,7 @@ async function getCppvsDebugConfig(config: ra.Runnable, sourceFileMap: Record<st
|
|||
let executable = await cargo.executableFromArgs(config.args, config.extraArgs);
|
||||
|
||||
return {
|
||||
type: "cppvsdbg",
|
||||
type: (os.platform() === "win32") ? "cppvsdbg" : 'cppdbg',
|
||||
request: "launch",
|
||||
name: config.label,
|
||||
program: executable,
|
||||
|
|
Loading…
Reference in a new issue