Skip to content

Commit 3fc698a

Browse files
committed
fix strict null checks in remoteAgentServiceImpl
1 parent f2c03b4 commit 3fc698a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/services/remote/electron-browser/remoteAgentServiceImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class RemoteAgentConnection extends Disposable implements IRemoteAgentConnection
6161

6262
// Let's cover the case where connecting to fetch the remote extension info fails
6363
this._environment = client.getEnvironmentData(this.remoteAuthority, this._environmentService.extensionDevelopmentLocationURI)
64-
.then(null, err => { this._notificationService.error(localize('connectionError', "Failed to connect to the remote extension host agent (Error: {0})", err ? err.message : '')); return null; });
64+
.then(undefined, err => { this._notificationService.error(localize('connectionError', "Failed to connect to the remote extension host agent (Error: {0})", err ? err.message : '')); return null; });
6565
}
6666
return this._environment;
6767
}

0 commit comments

Comments
 (0)