223
224
private _onRootChanged(rootStr: string): void {
226
return;
227
}
229
>
if (!sessions || sessions.size === 0) {
230
return;
231
}
233
>
return this._hasWatchInterest(session)
234
>
&& this._sessionRoot.get(session) === rootStr
235
>
&& !this._activeSessionRoots.has(session)
236
>
&& !this._unresolvedActiveSessions.has(session)
237
>
&& !!this._stateManager.getSessionState(session);
238
>
});
239
>
if (activeSessions.length === 0) {
240
return;
241
}
243
>
const workingDirectory = URI.parse(rootStr);
244
>
245
>
for (const session of activeSessions) {
246
>
// Refresh the git state for each active session. If there are multiple
247
>
// sessions on the same root, trigger the git state refresh for each
248
>
// individual session as the git state refresh will be throttled downstream.
249
>
void this._gitStateService.refreshSessionGitState(session, workingDirectory);
250
>
}
251
>
}
252
253
private _shouldAttachSession(sessionStr: string): boolean {