Browse Source

Updates the active repo only for real editors

main
Eric Amodio 7 years ago
parent
commit
d14a3c8535
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/views/activeRepositoryNode.ts

+ 3
- 0
src/views/activeRepositoryNode.ts View File

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

Loading…
Cancel
Save