mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
Show comments in problem panel.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user