Show comments in problem panel.

This commit is contained in:
Peng Lyu
2018-04-05 15:39:22 -07:00
parent df52ca02c0
commit b3ef6d4ba2
4 changed files with 49 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ export class MainThreadComments extends Disposable implements MainThreadComments
constructor(
extHostContext: IExtHostContext,
@IEditorGroupService editorGroupService: IEditorGroupService,
@IWorkbenchEditorService workbenchEditorService: IWorkbenchEditorService,
@IWorkbenchEditorService private _workbenchEditorService: IWorkbenchEditorService,
@ICodeEditorService private _codeEditorService: ICodeEditorService
) {
super();
@@ -61,7 +61,9 @@ export class MainThreadComments extends Disposable implements MainThreadComments
getFocusedEditor(): ICodeEditor {
let editor = this._codeEditorService.getFocusedCodeEditor();
// if\
if (!editor) {
editor = this._workbenchEditorService.getActiveEditor().getControl() as ICodeEditor;
}
return editor;
}