Pārlūkot izejas kodu

Updates the active repo only for real editors

main
Eric Amodio pirms 7 gadiem
vecāks
revīzija
d14a3c8535
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      src/views/activeRepositoryNode.ts

+ 3
- 0
src/views/activeRepositoryNode.ts Parādīt failu

@ -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 {

Notiek ielāde…
Atcelt
Saglabāt