Skip to content

Commit 9955cd9

Browse files
authored
Update Code to 1.79.1 (#6264)
Mostly just the usual shifting or changing of the surrounding context but I did refactor the getting started block we insert because it keeps getting mangled on each update. Instead of shifting things around the columns I just prepend it to the right column. Getting 404s on some vsda module but everything seems to work without it and I do not see it referenced in the package.json nor a nywhere on npmjs.com so it seems to be optional.
1 parent fdeaba9 commit 9955cd9

13 files changed

+96
-159
lines changed

lib/vscode

Submodule vscode updated 1101 files

patches/base-path.diff

+15-22
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,14 @@ Index: code-server/lib/vscode/src/vs/platform/remote/browser/browserSocketFactor
9999
===================================================================
100100
--- code-server.orig/lib/vscode/src/vs/platform/remote/browser/browserSocketFactory.ts
101101
+++ code-server/lib/vscode/src/vs/platform/remote/browser/browserSocketFactory.ts
102-
@@ -274,6 +274,7 @@ export class BrowserSocketFactory implem
103-
104-
connect(host: string, port: number, path: string, query: string, debugLabel: string, callback: IConnectCallback): void {
105-
const webSocketSchema = (/^https:/.test(window.location.href) ? 'wss' : 'ws');
106-
+ path = (window.location.pathname + "/" + path).replace(/\/\/+/g, "/")
107-
const socket = this._webSocketFactory.create(`${webSocketSchema}://${(/:/.test(host) && !/\[/.test(host)) ? `[${host}]` : host}:${port}${path}?${query}&skipWebSocketFrames=false`, debugLabel);
108-
const errorListener = socket.onError((err) => callback(err, undefined));
109-
socket.onOpen(() => {
110-
@@ -282,6 +283,3 @@ export class BrowserSocketFactory implem
111-
});
112-
}
113-
}
114-
-
115-
-
116-
-
102+
@@ -280,6 +280,7 @@ export class BrowserSocketFactory implem
103+
connect({ host, port }: WebSocketRemoteConnection, path: string, query: string, debugLabel: string): Promise<ISocket> {
104+
return new Promise<ISocket>((resolve, reject) => {
105+
const webSocketSchema = (/^https:/.test(window.location.href) ? 'wss' : 'ws');
106+
+ path = (window.location.pathname + "/" + path).replace(/\/\/+/g, "/")
107+
const socket = this._webSocketFactory.create(`${webSocketSchema}://${(/:/.test(host) && !/\[/.test(host)) ? `[${host}]` : host}:${port}${path}?${query}&skipWebSocketFrames=false`, debugLabel);
108+
const errorListener = socket.onError(reject);
109+
socket.onOpen(() => {
117110
Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
118111
===================================================================
119112
--- code-server.orig/lib/vscode/src/vs/server/node/webClientServer.ts
@@ -261,15 +254,15 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench.ts
261254
===================================================================
262255
--- code-server.orig/lib/vscode/src/vs/code/browser/workbench/workbench.ts
263256
+++ code-server/lib/vscode/src/vs/code/browser/workbench/workbench.ts
264-
@@ -489,6 +489,7 @@ function doCreateUri(path: string, query
257+
@@ -484,6 +484,7 @@ function doCreateUri(path: string, query
265258
});
266259
}
267260

268261
+ path = (window.location.pathname + "/" + path).replace(/\/\/+/g, "/")
269262
return URI.parse(window.location.href).with({ path, query });
270263
}
271264

272-
@@ -500,7 +501,7 @@ function doCreateUri(path: string, query
265+
@@ -495,7 +496,7 @@ function doCreateUri(path: string, query
273266
if (!configElement || !configElementAttribute) {
274267
throw new Error('Missing web configuration element');
275268
}
@@ -288,12 +281,12 @@ Index: code-server/lib/vscode/src/vs/platform/extensionResourceLoader/common/ext
288281
import { getTelemetryLevel, supportsTelemetry } from 'vs/platform/telemetry/common/telemetryUtils';
289282
-import { RemoteAuthorities } from 'vs/base/common/network';
290283
import { getRemoteServerRootPath } from 'vs/platform/remote/common/remoteHosts';
284+
import { TargetPlatform } from 'vs/platform/extensions/common/extensions';
291285

292-
const WEB_EXTENSION_RESOURCE_END_POINT = 'web-extension-resource';
293-
@@ -75,7 +74,7 @@ export abstract class AbstractExtensionR
294-
public getExtensionGalleryResourceURL(galleryExtension: { publisher: string; name: string; version: string }, path?: string): URI | undefined {
295-
if (this._extensionGalleryResourceUrlTemplate) {
296-
const uri = URI.parse(format2(this._extensionGalleryResourceUrlTemplate, { publisher: galleryExtension.publisher, name: galleryExtension.name, version: galleryExtension.version, path: 'extension' }));
286+
@@ -102,7 +101,7 @@ export abstract class AbstractExtensionR
287+
: version,
288+
path: 'extension'
289+
}));
297290
- return this._isWebExtensionResourceEndPoint(uri) ? uri.with({ scheme: RemoteAuthorities.getPreferredWebSchema() }) : uri;
298291
+ return this._isWebExtensionResourceEndPoint(uri) ? URI.joinPath(URI.parse(window.location.href), uri.path) : uri;
299292
}

patches/disable-downloads.diff

+18-25
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/web.api.ts
1212
===================================================================
1313
--- code-server.orig/lib/vscode/src/vs/workbench/browser/web.api.ts
1414
+++ code-server/lib/vscode/src/vs/workbench/browser/web.api.ts
15-
@@ -260,6 +260,11 @@ export interface IWorkbenchConstructionO
15+
@@ -281,6 +281,11 @@ export interface IWorkbenchConstructionO
1616
*/
1717
readonly userDataPath?: string
1818

@@ -28,19 +28,19 @@ Index: code-server/lib/vscode/src/vs/workbench/services/environment/browser/envi
2828
===================================================================
2929
--- code-server.orig/lib/vscode/src/vs/workbench/services/environment/browser/environmentService.ts
3030
+++ code-server/lib/vscode/src/vs/workbench/services/environment/browser/environmentService.ts
31-
@@ -32,6 +32,11 @@ export interface IBrowserWorkbenchEnviro
32-
* Options used to configure the workbench.
33-
*/
31+
@@ -34,6 +34,11 @@ export interface IBrowserWorkbenchEnviro
3432
readonly options?: IWorkbenchConstructionOptions;
35-
+
36-
+ /**
33+
34+
/**
3735
+ * Enable downloading files via menu actions.
3836
+ */
3937
+ readonly isEnabledFileDownloads?: boolean;
40-
}
41-
42-
export class BrowserWorkbenchEnvironmentService implements IBrowserWorkbenchEnvironmentService {
43-
@@ -101,6 +106,13 @@ export class BrowserWorkbenchEnvironment
38+
+
39+
+ /**
40+
* Gets whether a resolver extension is expected for the environment.
41+
*/
42+
readonly expectsResolverExtension: boolean;
43+
@@ -111,6 +116,13 @@ export class BrowserWorkbenchEnvironment
4444
return this.options.userDataPath;
4545
}
4646

@@ -90,29 +90,22 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/contextkeys.ts
9090
===================================================================
9191
--- code-server.orig/lib/vscode/src/vs/workbench/browser/contextkeys.ts
9292
+++ code-server/lib/vscode/src/vs/workbench/browser/contextkeys.ts
93-
@@ -7,12 +7,11 @@ import { Event } from 'vs/base/common/ev
93+
@@ -7,12 +7,12 @@ import { Event } from 'vs/base/common/ev
9494
import { Disposable } from 'vs/base/common/lifecycle';
9595
import { IContextKeyService, IContextKey, setConstant as setConstantContextKey } from 'vs/platform/contextkey/common/contextkey';
9696
import { InputFocusedContext, IsMacContext, IsLinuxContext, IsWindowsContext, IsWebContext, IsMacNativeContext, IsDevelopmentContext, IsIOSContext, ProductQualityContext, IsMobileContext } from 'vs/platform/contextkey/common/contextkeys';
97-
-import { SplitEditorsVertically, InEditorZenModeContext, ActiveEditorCanRevertContext, ActiveEditorGroupLockedContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, AuxiliaryBarVisibleContext, SideBarVisibleContext, PanelAlignmentContext, PanelMaximizedContext, PanelVisibleContext, ActiveEditorContext, EditorsVisibleContext, TextCompareEditorVisibleContext, TextCompareEditorActiveContext, ActiveEditorGroupEmptyContext, MultipleEditorGroupsContext, EmbedderIdentifierContext, EditorTabsVisibleContext, IsCenteredLayoutContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorReadonlyContext, EditorAreaVisibleContext, ActiveEditorAvailableEditorIdsContext, DirtyWorkingCopiesContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, HasWebFileSystemAccess, IsFullscreenContext, OpenFolderWorkspaceSupportContext, RemoteNameContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, PanelPositionContext, TemporaryWorkspaceContext } from 'vs/workbench/common/contextkeys';
98-
+import { SplitEditorsVertically, InEditorZenModeContext, ActiveEditorCanRevertContext, ActiveEditorGroupLockedContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, AuxiliaryBarVisibleContext, SideBarVisibleContext, PanelAlignmentContext, PanelMaximizedContext, PanelVisibleContext, ActiveEditorContext, EditorsVisibleContext, TextCompareEditorVisibleContext, TextCompareEditorActiveContext, ActiveEditorGroupEmptyContext, MultipleEditorGroupsContext, EmbedderIdentifierContext, EditorTabsVisibleContext, IsCenteredLayoutContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorReadonlyContext, EditorAreaVisibleContext, ActiveEditorAvailableEditorIdsContext, DirtyWorkingCopiesContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, HasWebFileSystemAccess, IsFullscreenContext, OpenFolderWorkspaceSupportContext, RemoteNameContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, PanelPositionContext, TemporaryWorkspaceContext, IsEnabledFileDownloads } from 'vs/workbench/common/contextkeys';
99-
import { TEXT_DIFF_EDITOR_ID, EditorInputCapabilities, SIDE_BY_SIDE_EDITOR_ID, DEFAULT_EDITOR_ASSOCIATION } from 'vs/workbench/common/editor';
97+
-import { SplitEditorsVertically, InEditorZenModeContext, ActiveEditorCanRevertContext, ActiveEditorGroupLockedContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, AuxiliaryBarVisibleContext, SideBarVisibleContext, PanelAlignmentContext, PanelMaximizedContext, PanelVisibleContext, ActiveEditorContext, EditorsVisibleContext, TextCompareEditorVisibleContext, TextCompareEditorActiveContext, ActiveEditorGroupEmptyContext, MultipleEditorGroupsContext, EmbedderIdentifierContext, EditorTabsVisibleContext, IsCenteredLayoutContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorReadonlyContext, EditorAreaVisibleContext, ActiveEditorAvailableEditorIdsContext, DirtyWorkingCopiesContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, HasWebFileSystemAccess, IsFullscreenContext, OpenFolderWorkspaceSupportContext, RemoteNameContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, PanelPositionContext, TemporaryWorkspaceContext, ActiveEditorCanToggleReadonlyContext } from 'vs/workbench/common/contextkeys';
98+
+import { SplitEditorsVertically, InEditorZenModeContext, ActiveEditorCanRevertContext, ActiveEditorGroupLockedContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, AuxiliaryBarVisibleContext, SideBarVisibleContext, PanelAlignmentContext, PanelMaximizedContext, PanelVisibleContext, ActiveEditorContext, EditorsVisibleContext, TextCompareEditorVisibleContext, TextCompareEditorActiveContext, ActiveEditorGroupEmptyContext, MultipleEditorGroupsContext, EmbedderIdentifierContext, EditorTabsVisibleContext, IsCenteredLayoutContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorReadonlyContext, EditorAreaVisibleContext, ActiveEditorAvailableEditorIdsContext, DirtyWorkingCopiesContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, HasWebFileSystemAccess, IsFullscreenContext, OpenFolderWorkspaceSupportContext, RemoteNameContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, PanelPositionContext, TemporaryWorkspaceContext, IsEnabledFileDownloads, ActiveEditorCanToggleReadonlyContext } from 'vs/workbench/common/contextkeys';
99+
import { TEXT_DIFF_EDITOR_ID, EditorInputCapabilities, SIDE_BY_SIDE_EDITOR_ID, DEFAULT_EDITOR_ASSOCIATION, EditorResourceAccessor, SideBySideEditor } from 'vs/workbench/common/editor';
100100
import { trackFocus, addDisposableListener, EventType } from 'vs/base/browser/dom';
101101
import { preferredSideBySideGroupDirection, GroupDirection, IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService';
102102
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
103103
-import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
104+
+import { IBrowserWorkbenchEnvironmentService } from 'vs/workbench/services/environment/browser/environmentService';
104105
import { IEditorService } from 'vs/workbench/services/editor/common/editorService';
105106
import { WorkbenchState, IWorkspaceContextService, isTemporaryWorkspace } from 'vs/platform/workspace/common/workspace';
106107
import { IWorkbenchLayoutService, Parts, positionToString } from 'vs/workbench/services/layout/browser/layoutService';
107-
@@ -25,6 +24,7 @@ import { IPaneCompositePartService } fro
108-
import { Schemas } from 'vs/base/common/network';
109-
import { WebFileSystemAccess } from 'vs/platform/files/browser/webFileSystemAccess';
110-
import { IProductService } from 'vs/platform/product/common/productService';
111-
+import { IBrowserWorkbenchEnvironmentService } from 'vs/workbench/services/environment/browser/environmentService';
112-
113-
export class WorkbenchContextKeysHandler extends Disposable {
114-
private inputFocusedContext: IContextKey<boolean>;
115-
@@ -77,7 +77,7 @@ export class WorkbenchContextKeysHandler
108+
@@ -80,7 +80,7 @@ export class WorkbenchContextKeysHandler
116109
@IContextKeyService private readonly contextKeyService: IContextKeyService,
117110
@IWorkspaceContextService private readonly contextService: IWorkspaceContextService,
118111
@IConfigurationService private readonly configurationService: IConfigurationService,
@@ -121,7 +114,7 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/contextkeys.ts
121114
@IProductService private readonly productService: IProductService,
122115
@IEditorService private readonly editorService: IEditorService,
123116
@IEditorResolverService private readonly editorResolverService: IEditorResolverService,
124-
@@ -205,6 +205,9 @@ export class WorkbenchContextKeysHandler
117+
@@ -210,6 +210,9 @@ export class WorkbenchContextKeysHandler
125118
this.auxiliaryBarVisibleContext = AuxiliaryBarVisibleContext.bindTo(this.contextKeyService);
126119
this.auxiliaryBarVisibleContext.set(this.layoutService.isVisible(Parts.AUXILIARYBAR_PART));
127120

@@ -144,7 +137,7 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/files/browser/fileActions
144137
import { IsWebContext } from 'vs/platform/contextkey/common/contextkeys';
145138
import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';
146139
import { ThemeIcon } from 'vs/base/common/themables';
147-
@@ -485,13 +485,16 @@ MenuRegistry.appendMenuItem(MenuId.Explo
140+
@@ -489,13 +489,16 @@ MenuRegistry.appendMenuItem(MenuId.Explo
148141
id: DOWNLOAD_COMMAND_ID,
149142
title: DOWNLOAD_LABEL
150143
},

patches/display-language.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Index: code-server/lib/vscode/src/vs/server/node/serverServices.ts
2121
===================================================================
2222
--- code-server.orig/lib/vscode/src/vs/server/node/serverServices.ts
2323
+++ code-server/lib/vscode/src/vs/server/node/serverServices.ts
24-
@@ -233,6 +233,9 @@ export async function setupServerService
24+
@@ -234,6 +234,9 @@ export async function setupServerService
2525
const channel = new ExtensionManagementChannel(extensionManagementService, (ctx: RemoteAgentConnectionContext) => getUriTransformer(ctx.remoteAuthority));
2626
socketServer.registerChannel('extensions', channel);
2727

0 commit comments

Comments
 (0)