mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +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 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,
|
||||||
|
|
Loading…
Reference in a new issue