Skip to content

Commit

Permalink
Merge pull request #230006 from microsoft/tyriar/229944_2
Browse files Browse the repository at this point in the history
Prefer remoteAuthority check over remote agent null
  • Loading branch information
Tyriar committed Sep 27, 2024
2 parents aa0b6bb + ad90d1a commit b395179
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class PerfModelContentProvider implements ITextModelContentProvider {
this._lifecycleService.when(LifecyclePhase.Eventually),
this._extensionService.whenInstalledExtensionsRegistered(),
// The terminal service never connects to the pty host on the web
isWeb && this._remoteAgentService.getConnection() === null ? Promise.resolve() : this._terminalService.whenConnected
isWeb && !this._remoteAgentService.getConnection()?.remoteAuthority ? Promise.resolve() : this._terminalService.whenConnected
]).then(() => {
if (this._model && !this._model.isDisposed()) {

Expand Down

0 comments on commit b395179

Please sign in to comment.