Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/lsp_ext.ts')
| -rw-r--r-- | editors/code/src/lsp_ext.ts | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/editors/code/src/lsp_ext.ts b/editors/code/src/lsp_ext.ts index 2462f06f18..699052e4d4 100644 --- a/editors/code/src/lsp_ext.ts +++ b/editors/code/src/lsp_ext.ts @@ -223,8 +223,16 @@ export type OpenCargoTomlParams = { export type Runnable = { label: string; location?: lc.LocationLink; - kind: "cargo" | "shell"; - args: CargoRunnableArgs | ShellRunnableArgs; +} & (RunnableCargo | RunnableShell); + +type RunnableCargo = { + kind: "cargo"; + args: CargoRunnableArgs; +}; + +type RunnableShell = { + kind: "shell"; + args: ShellRunnableArgs; }; export type ShellRunnableArgs = { |