Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanp413 committed Dec 6, 2021
1 parent d2c7d2c commit 3039c5a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/vs/gitpod/browser/workbench/workbench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -733,13 +733,11 @@ async function doStart(): Promise<IDisposable> {
remoteAuthority,
webviewEndpoint,
webSocketFactory: {
create: url => {
create: (url, debugLabel) => {
if (_state as any === 'terminated') {
throw new RemoteAuthorityResolverError('workspace stopped', RemoteAuthorityResolverErrorCode.NotAvailable);
}
const codeServerUrl = new URL(url);
codeServerUrl.protocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
const socket = defaultWebSocketFactory.create(codeServerUrl.toString());
const socket = defaultWebSocketFactory.create(url, debugLabel);
const onError = new Emitter<RemoteAuthorityResolverError>();
socket.onError(e => {
if (_state as any === 'terminated') {
Expand Down

0 comments on commit 3039c5a

Please sign in to comment.