Skip to content

Commit ab404bd

Browse files
committed
also reset quickfix state when mode stays the same, fixes microsoft#14141
1 parent bf4705b commit ab404bd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/vs/editor/contrib/quickFix/browser/quickFixModel.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,17 @@ export class QuickFixModel {
130130
}
131131

132132
private _update(): void {
133-
dispose(this._quickFixOracle);
133+
134+
if (this._quickFixOracle) {
135+
dispose(this._quickFixOracle);
136+
this._onDidChangeFixes.fire(undefined);
137+
}
134138

135139
if (this._editor.getModel()
136140
&& CodeActionProviderRegistry.has(this._editor.getModel())
137141
&& !this._editor.getConfiguration().readOnly) {
138142

139143
this._quickFixOracle = new QuickFixOracle(this._editor, this._markerService, p => this._onDidChangeFixes.fire(p));
140-
141-
} else {
142-
// signal unavailable
143-
this._onDidChangeFixes.fire(undefined);
144144
}
145145
}
146146

0 commit comments

Comments
 (0)