We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eae4f5 commit 5efb3f1Copy full SHA for 5efb3f1
packages/core/src/aiTracking/AISuggestionTracker.ts
@@ -326,7 +326,7 @@ export class AISuggestionTracker {
326
const vulnerabilityStatus = await this.getCurrentValue(fix);
327
328
// Check if ghost text disappeared
329
- const fileNotActive = !activeEditor || activeEditor.document.uri.fsPath !== fix.filePath;
+ const fileNotActive = !activeEditor || activeEditor?.document.uri.fsPath !== fix.filePath;
330
const vulnerabilityBack = vulnerabilityStatus !== null;
331
const timeout = attempts >= 150;
332
0 commit comments