mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
reveal and expand comments
This commit is contained in:
@@ -104,7 +104,10 @@ export class MainThreadComments extends Disposable implements MainThreadComments
|
||||
getFocusedEditor(): ICodeEditor {
|
||||
let editor = this._codeEditorService.getFocusedCodeEditor();
|
||||
if (!editor) {
|
||||
editor = this._workbenchEditorService.getActiveEditor().getControl() as ICodeEditor;
|
||||
let activeEditor = this._workbenchEditorService.getActiveEditor();
|
||||
if (activeEditor) {
|
||||
editor = activeEditor.getControl() as ICodeEditor;
|
||||
}
|
||||
}
|
||||
|
||||
return editor;
|
||||
|
||||
Reference in New Issue
Block a user