提交 13a43408 编写于 作者: J Jackson Kearl

Live-update search editor options. Fixes #89473.

上级 2943c596
......@@ -156,7 +156,14 @@ export class SearchEditor extends BaseEditor {
private createResultsEditor(parent: HTMLElement) {
const searchResultContainer = DOM.append(parent, DOM.$('.search-results'));
const configuration: IEditorOptions = this.configurationService.getValue('editor', { overrideIdentifier: 'search-result' });
const getSearchEditorOptions = () => this.configurationService.getValue<IEditorOptions>('editor', { overrideIdentifier: 'search-result' });
const configuration: IEditorOptions = getSearchEditorOptions();
this._register(this.configurationService.onDidChangeConfiguration(e => {
if (e.affectsConfiguration('editor')) {
this.searchResultEditor.updateOptions(getSearchEditorOptions());
}
}));
const options: ICodeEditorWidgetOptions = {};
this.searchResultEditor = this._register(this.instantiationService.createInstance(CodeEditorWidget, searchResultContainer, configuration, options));
this.searchResultEditor.onMouseUp(e => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册