|
@ -267,9 +267,9 @@ export class Repository implements Disposable { |
|
|
|
|
|
|
|
|
if (Logger.willLog('debug')) { |
|
|
if (Logger.willLog('debug')) { |
|
|
Logger.debug( |
|
|
Logger.debug( |
|
|
`Repository[${this.name}(${ |
|
|
|
|
|
|
|
|
`Repository(${ |
|
|
this.id |
|
|
this.id |
|
|
})] doesn't support file watching; path=${path}, workspaceFolders=${workspace.workspaceFolders |
|
|
|
|
|
|
|
|
}) doesn't support file watching; path=${path}, workspaceFolders=${workspace.workspaceFolders |
|
|
?.map(wf => wf.uri.fsPath) |
|
|
?.map(wf => wf.uri.fsPath) |
|
|
.join('; ')}`,
|
|
|
.join('; ')}`,
|
|
|
); |
|
|
); |
|
@ -1007,6 +1007,8 @@ export class Repository implements Disposable { |
|
|
|
|
|
|
|
|
@debug() |
|
|
@debug() |
|
|
private fireChange(...changes: RepositoryChange[]) { |
|
|
private fireChange(...changes: RepositoryChange[]) { |
|
|
|
|
|
const cc = Logger.getCorrelationContext(); |
|
|
|
|
|
|
|
|
this._updatedAt = Date.now(); |
|
|
this._updatedAt = Date.now(); |
|
|
|
|
|
|
|
|
if (this._fireChangeDebounced == null) { |
|
|
if (this._fireChangeDebounced == null) { |
|
@ -1018,9 +1020,7 @@ export class Repository implements Disposable { |
|
|
this.onAnyRepositoryChanged(this, new RepositoryChangeEvent(this, changes)); |
|
|
this.onAnyRepositoryChanged(this, new RepositoryChangeEvent(this, changes)); |
|
|
|
|
|
|
|
|
if (this._suspended) { |
|
|
if (this._suspended) { |
|
|
Logger.debug( |
|
|
|
|
|
`Repository[${this.name}(${this.id})] queueing suspended ${this._pendingRepoChange.toString(true)}`, |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
Logger.debug(cc, `queueing suspended ${this._pendingRepoChange.toString(true)}`); |
|
|
|
|
|
|
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@ -1034,12 +1034,14 @@ export class Repository implements Disposable { |
|
|
|
|
|
|
|
|
this._pendingRepoChange = undefined; |
|
|
this._pendingRepoChange = undefined; |
|
|
|
|
|
|
|
|
Logger.debug(`Repository[${this.name}(${this.id})] firing ${e.toString(true)}`); |
|
|
|
|
|
|
|
|
Logger.debug(`Repository(${this.id}) firing ${e.toString(true)}`); |
|
|
this._onDidChange.fire(e); |
|
|
this._onDidChange.fire(e); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@debug() |
|
|
@debug() |
|
|
private fireFileSystemChange(uri: Uri) { |
|
|
private fireFileSystemChange(uri: Uri) { |
|
|
|
|
|
const cc = Logger.getCorrelationContext(); |
|
|
|
|
|
|
|
|
this._updatedAt = Date.now(); |
|
|
this._updatedAt = Date.now(); |
|
|
|
|
|
|
|
|
if (this._fireFileSystemChangeDebounced == null) { |
|
|
if (this._fireFileSystemChangeDebounced == null) { |
|
@ -1054,11 +1056,7 @@ export class Repository implements Disposable { |
|
|
e.uris.push(uri); |
|
|
e.uris.push(uri); |
|
|
|
|
|
|
|
|
if (this._suspended) { |
|
|
if (this._suspended) { |
|
|
Logger.debug( |
|
|
|
|
|
`Repository[${this.name}(${this.id})] queueing suspended fs changes=${e.uris |
|
|
|
|
|
.map(u => u.fsPath) |
|
|
|
|
|
.join(', ')}`,
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
Logger.debug(cc, `queueing suspended fs changes=${e.uris.map(u => u.fsPath).join(', ')}`); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1078,7 +1076,7 @@ export class Repository implements Disposable { |
|
|
e = { ...e, uris: uris }; |
|
|
e = { ...e, uris: uris }; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Logger.debug(`Repository[${this.name}(${this.id})] firing fs changes=${e.uris.map(u => u.fsPath).join(', ')}`); |
|
|
|
|
|
|
|
|
Logger.debug(`Repository(${this.id}) firing fs changes=${e.uris.map(u => u.fsPath).join(', ')}`); |
|
|
|
|
|
|
|
|
this._onDidChangeFileSystem.fire(e); |
|
|
this._onDidChangeFileSystem.fire(e); |
|
|
} |
|
|
} |
|
@ -1102,7 +1100,7 @@ export class Repository implements Disposable { |
|
|
this._supportsChangeEvents = true; |
|
|
this._supportsChangeEvents = true; |
|
|
|
|
|
|
|
|
if (Logger.willLog('debug')) { |
|
|
if (Logger.willLog('debug')) { |
|
|
Logger.debug(`Repository[${this.name}(${this.id})] is now using fallback file watching`); |
|
|
|
|
|
|
|
|
Logger.debug(`Repository(${this.id}) is now using fallback file watching`); |
|
|
} |
|
|
} |
|
|
} catch {} |
|
|
} catch {} |
|
|
} |
|
|
} |
|
|