Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/ctx.ts')
-rw-r--r--editors/code/src/ctx.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts
index 26510011d4..b6c0eedfb1 100644
--- a/editors/code/src/ctx.ts
+++ b/editors/code/src/ctx.ts
@@ -17,6 +17,10 @@ export type Workspace =
};
export class Ctx {
+ // Helps VS Code to correctly link problems from runnables. This is used by
+ // `rust-analyzer.cargoWorkspaceRootForCurrentRun` command of $rustc-run problem matcher.
+ cargoWorkspaceRootForCurrentRun?: string = undefined;
+
private constructor(
readonly config: Config,
private readonly extCtx: vscode.ExtensionContext,