MS C++ tools on linux

This commit is contained in:
vsrs 2020-04-29 16:52:53 +03:00
parent 9153e96e88
commit 73a1947d19

View file

@ -1,6 +1,7 @@
import * as vscode from 'vscode'; import * as vscode from 'vscode';
import * as lc from 'vscode-languageclient'; import * as lc from 'vscode-languageclient';
import * as ra from '../rust-analyzer-api'; import * as ra from '../rust-analyzer-api';
import * as os from "os";
import { Ctx, Cmd } from '../ctx'; import { Ctx, Cmd } from '../ctx';
import { Cargo } from '../cargo'; 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); let executable = await cargo.executableFromArgs(config.args, config.extraArgs);
return { return {
type: "cppvsdbg", type: (os.platform() === "win32") ? "cppvsdbg" : 'cppdbg',
request: "launch", request: "launch",
name: config.label, name: config.label,
program: executable, program: executable,