|
@ -1,6 +1,7 @@ |
|
|
'use strict'; |
|
|
'use strict'; |
|
|
import { Functions } from '../system'; |
|
|
import { Functions } from '../system'; |
|
|
import { TextEditor, TreeItem, TreeItemCollapsibleState, window } from 'vscode'; |
|
|
import { TextEditor, TreeItem, TreeItemCollapsibleState, window } from 'vscode'; |
|
|
|
|
|
import { isTextEditor } from '../constants'; |
|
|
import { ExplorerNode } from './explorerNode'; |
|
|
import { ExplorerNode } from './explorerNode'; |
|
|
import { GitExplorer } from './gitExplorer'; |
|
|
import { GitExplorer } from './gitExplorer'; |
|
|
import { GitUri } from '../gitService'; |
|
|
import { GitUri } from '../gitService'; |
|
@ -32,6 +33,8 @@ export class ActiveRepositoryNode extends ExplorerNode { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private async onActiveEditorChanged(editor: TextEditor | undefined) { |
|
|
private async onActiveEditorChanged(editor: TextEditor | undefined) { |
|
|
|
|
|
if (editor !== undefined && !isTextEditor(editor)) return; |
|
|
|
|
|
|
|
|
let changed = false; |
|
|
let changed = false; |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|