We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
run
1 parent e355bc2 commit 9e020edCopy full SHA for 9e020ed
src/extension.ts
@@ -9,7 +9,8 @@ let channel: vscode.OutputChannel;
9
10
function run(file: string | vscode.Uri | null | undefined) {
11
if (!file) {
12
- run(vscode.window.activeTextEditor?.document.uri);
+ if (!vscode.window.activeTextEditor) return;
13
+ run(vscode.window.activeTextEditor.document.uri);
14
return;
15
}
16
@@ -254,7 +255,7 @@ class Worker implements vscode.Disposable {
254
255
constructor(
256
private readonly workspace: vscode.WorkspaceFolder,
257
private readonly statusProvider: StatusProvider,
- ) {}
258
+ ) { }
259
260
workspaceHas(file: vscode.Uri): boolean {
261
return file.fsPath.startsWith(this.workspace.uri.fsPath);
0 commit comments