mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
@@ -542,6 +542,11 @@ export class Model implements Disposable {
|
||||
} catch (err) {
|
||||
if (err.gitErrorCode === GitErrorCodes.NotAGitRepository) {
|
||||
this.repositoryDisposable.dispose();
|
||||
|
||||
const disposables: Disposable[] = [];
|
||||
this.onWorkspaceChange(this.onFSChange, this, disposables);
|
||||
this.repositoryDisposable = combinedDisposable(disposables);
|
||||
|
||||
this.state = State.NotAGitRepository;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user