mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-27 04:07:13 +01:00
Update Quick Fix editor value (#194685)
* updated editor value * added migration code
This commit is contained in:
@@ -211,3 +211,13 @@ registerEditorSettingMigration('experimental.stickyScroll.maxLineCount', (value,
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
|
||||
// Migrate Quick Fix Settings
|
||||
registerEditorSettingMigration('codeActionWidget.includeNearbyQuickfixes', (value, read, write) => {
|
||||
if (typeof value === 'boolean') {
|
||||
write('codeActionWidget.includeNearbyQuickfixes', undefined);
|
||||
if (typeof read('codeActionWidget.includeNearbyQuickFixes') === 'undefined') {
|
||||
write('codeActionWidget.includeNearbyQuickFixes', value);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -179,7 +179,7 @@ export class CodeActionModel extends Disposable {
|
||||
|
||||
private _settingEnabledNearbyQuickfixes(): boolean {
|
||||
const model = this._editor?.getModel();
|
||||
return this._configurationService ? this._configurationService.getValue('editor.codeActionWidget.includeNearbyQuickfixes', { resource: model?.uri }) : false;
|
||||
return this._configurationService ? this._configurationService.getValue('editor.codeActionWidget.includeNearbyQuickFixes', { resource: model?.uri }) : false;
|
||||
}
|
||||
|
||||
private _update(): void {
|
||||
|
||||
Reference in New Issue
Block a user