We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf4705b commit ab404bdCopy full SHA for ab404bd
1 file changed
src/vs/editor/contrib/quickFix/browser/quickFixModel.ts
@@ -130,17 +130,17 @@ export class QuickFixModel {
130
}
131
132
private _update(): void {
133
- dispose(this._quickFixOracle);
+
134
+ if (this._quickFixOracle) {
135
+ dispose(this._quickFixOracle);
136
+ this._onDidChangeFixes.fire(undefined);
137
+ }
138
139
if (this._editor.getModel()
140
&& CodeActionProviderRegistry.has(this._editor.getModel())
141
&& !this._editor.getConfiguration().readOnly) {
142
143
this._quickFixOracle = new QuickFixOracle(this._editor, this._markerService, p => this._onDidChangeFixes.fire(p));
-
- } else {
- // signal unavailable
- this._onDidChangeFixes.fire(undefined);
144
145
146
0 commit comments