mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
feature: add build system info; runnables to rust-project.json
This commit is contained in:
parent
14a1f4530c
commit
71a78a9cdc
17 changed files with 628 additions and 227 deletions
|
@ -223,17 +223,27 @@ export type OpenCargoTomlParams = {
|
|||
export type Runnable = {
|
||||
label: string;
|
||||
location?: lc.LocationLink;
|
||||
kind: "cargo";
|
||||
args: {
|
||||
workspaceRoot?: string;
|
||||
cwd?: string;
|
||||
cargoArgs: string[];
|
||||
cargoExtraArgs: string[];
|
||||
executableArgs: string[];
|
||||
expectTest?: boolean;
|
||||
overrideCargo?: string;
|
||||
};
|
||||
kind: "cargo" | "shell";
|
||||
args: CargoRunnableArgs | ShellRunnableArgs;
|
||||
};
|
||||
|
||||
export type ShellRunnableArgs = {
|
||||
kind: string;
|
||||
program: string;
|
||||
args: string[];
|
||||
cwd: string;
|
||||
};
|
||||
|
||||
export type CargoRunnableArgs = {
|
||||
workspaceRoot?: string;
|
||||
cargoArgs: string[];
|
||||
cwd: string;
|
||||
cargoExtraArgs: string[];
|
||||
executableArgs: string[];
|
||||
expectTest?: boolean;
|
||||
overrideCargo?: string;
|
||||
};
|
||||
|
||||
export type RunnablesParams = {
|
||||
textDocument: lc.TextDocumentIdentifier;
|
||||
position: lc.Position | null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue