aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/lsp_ext.ts
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-06-02 16:22:23 +0100
committerAleksey Kladov <[email protected]>2020-06-02 16:22:42 +0100
commit03039821195c9d9c4bbc1e4cbddb6378c43a6c52 (patch)
tree2fb425ca0ed235ae051d9ea0547ebf8664c3295d /editors/code/src/lsp_ext.ts
parentf137b3a4e626bdef165e0ad7c61c88c44797798e (diff)
New runnables API
Diffstat (limited to 'editors/code/src/lsp_ext.ts')
-rw-r--r--editors/code/src/lsp_ext.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/editors/code/src/lsp_ext.ts b/editors/code/src/lsp_ext.ts
index 3e0b60699..73d573678 100644
--- a/editors/code/src/lsp_ext.ts
+++ b/editors/code/src/lsp_ext.ts
@@ -46,16 +46,15 @@ export interface RunnablesParams {
46 position: lc.Position | null; 46 position: lc.Position | null;
47} 47}
48 48
49export type RunnableKind = "cargo" | "rustc" | "rustup";
50
51export interface Runnable { 49export interface Runnable {
52 range: lc.Range;
53 label: string; 50 label: string;
54 kind: RunnableKind; 51 location?: lc.LocationLink;
55 args: string[]; 52 kind: "cargo";
56 extraArgs: string[]; 53 args: {
57 env: { [key: string]: string }; 54 workspaceRoot?: string;
58 cwd: string | null; 55 cargoArgs: string[];
56 executableArgs: string[];
57 };
59} 58}
60export const runnables = new lc.RequestType<RunnablesParams, Runnable[], void>("rust-analyzer/runnables"); 59export const runnables = new lc.RequestType<RunnablesParams, Runnable[], void>("rust-analyzer/runnables");
61 60