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.
1 parent 479fa0d commit 683a6daCopy full SHA for 683a6da
src/extension.ts
@@ -202,7 +202,9 @@ export function activate(context: ExtensionContext) {
202
context.subscriptions.push(diagnosticCollection);
203
context.subscriptions.push(
204
workspace.onDidSaveTextDocument((textDocument) => {
205
- if (authStatus) {
+ // Check if the document is inside the workspace
206
+ const workspaceFolder = workspace.getWorkspaceFolder(textDocument.uri);
207
+ if (authStatus && workspaceFolder) {
208
scanFile(
209
textDocument.fileName,
210
textDocument.uri,
0 commit comments