diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-06-02 21:44:56 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-02 21:44:56 +0100 |
commit | 2f6ab77708ae104c854712285af19516287b6906 (patch) | |
tree | 7e86855582629a88f7002f01bbc67bf41b0513bf /editors/code/src/lsp_ext.ts | |
parent | 0035dafbfa563921e2cfe41f5592fc37bff92294 (diff) | |
parent | bc3db7c1ded0db2d3804b5ac3e5c35dd53350228 (diff) |
Merge #4710
4710: New runnables r=matklad a=matklad
bors d=@vsrs
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'editors/code/src/lsp_ext.ts')
-rw-r--r-- | editors/code/src/lsp_ext.ts | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/editors/code/src/lsp_ext.ts b/editors/code/src/lsp_ext.ts index 3e0b60699..c51acfccb 100644 --- a/editors/code/src/lsp_ext.ts +++ b/editors/code/src/lsp_ext.ts | |||
@@ -46,18 +46,17 @@ export interface RunnablesParams { | |||
46 | position: lc.Position | null; | 46 | position: lc.Position | null; |
47 | } | 47 | } |
48 | 48 | ||
49 | export type RunnableKind = "cargo" | "rustc" | "rustup"; | ||
50 | |||
51 | export interface Runnable { | 49 | export 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 | } |
60 | export const runnables = new lc.RequestType<RunnablesParams, Runnable[], void>("rust-analyzer/runnables"); | 59 | export const runnables = new lc.RequestType<RunnablesParams, Runnable[], void>("experimental/runnables"); |
61 | 60 | ||
62 | export type InlayHint = InlayHint.TypeHint | InlayHint.ParamHint | InlayHint.ChainingHint; | 61 | export type InlayHint = InlayHint.TypeHint | InlayHint.ParamHint | InlayHint.ChainingHint; |
63 | 62 | ||