Skip to content

Commit

Permalink
Prefer remoteAuthority check over remote agent null
Browse files Browse the repository at this point in the history
Follow up on #229944, see #229992
  • Loading branch information
Tyriar committed Sep 27, 2024
1 parent 83e902b commit ad90d1a
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 ad90d1a

Please sign in to comment.