提交 95ec710d 编写于 作者: J Jackson Kearl

Fix search icon not showing up in untitled search editor

上级 eaf632c4
...@@ -74,9 +74,13 @@ export class SearchEditorInput extends EditorInput { ...@@ -74,9 +74,13 @@ export class SearchEditorInput extends EditorInput {
@IWorkingCopyService private readonly workingCopyService: IWorkingCopyService, @IWorkingCopyService private readonly workingCopyService: IWorkingCopyService,
@IFilesConfigurationService private readonly filesConfigurationService: IFilesConfigurationService, @IFilesConfigurationService private readonly filesConfigurationService: IFilesConfigurationService,
@ITelemetryService private readonly telemetryService: ITelemetryService, @ITelemetryService private readonly telemetryService: ITelemetryService,
@IModeService readonly modeService: IModeService,
) { ) {
super(); super();
// Dummy model to set file icon
this._register(modelService.createModel('', modeService.create('search-result'), this.resource));
const modelLoader = getModel() const modelLoader = getModel()
.then(({ contentsModel, headerModel }) => { .then(({ contentsModel, headerModel }) => {
this._register(contentsModel.onDidChangeContent(() => this._onDidChangeContent.fire())); this._register(contentsModel.onDidChangeContent(() => this._onDidChangeContent.fire()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册