mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Change Runnable.bin -> Runnable.kind
As per matklad, we now pass the responsibility for finding the binary to the frontend. Also, added caching for finding the binary path to reduce the amount of filesystem interactions.
This commit is contained in:
parent
a419cedb1c
commit
d605ec9c32
13 changed files with 133 additions and 93 deletions
|
@ -45,10 +45,13 @@ export interface RunnablesParams {
|
|||
textDocument: lc.TextDocumentIdentifier;
|
||||
position: lc.Position | null;
|
||||
}
|
||||
|
||||
export type RunnableKind = "cargo" | "rustc" | "rustup";
|
||||
|
||||
export interface Runnable {
|
||||
range: lc.Range;
|
||||
label: string;
|
||||
bin: string;
|
||||
kind: RunnableKind;
|
||||
args: string[];
|
||||
extraArgs: string[];
|
||||
env: { [key: string]: string };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue