@@ -12,7 +12,7 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/web.api.ts
12
12
===================================================================
13
13
--- code-server.orig/lib/vscode/src/vs/workbench/browser/web.api.ts
14
14
+++ 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
16
16
*/
17
17
readonly userDataPath?: string
18
18
@@ -28,19 +28,19 @@ Index: code-server/lib/vscode/src/vs/workbench/services/environment/browser/envi
28
28
===================================================================
29
29
--- code-server.orig/lib/vscode/src/vs/workbench/services/environment/browser/environmentService.ts
30
30
+++ 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
34
32
readonly options?: IWorkbenchConstructionOptions;
35
- +
36
- + /**
33
+
34
+ /**
37
35
+ * Enable downloading files via menu actions.
38
36
+ */
39
37
+ 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
44
44
return this.options.userDataPath;
45
45
}
46
46
@@ -90,29 +90,22 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/contextkeys.ts
90
90
===================================================================
91
91
--- code-server.orig/lib/vscode/src/vs/workbench/browser/contextkeys.ts
92
92
+++ 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
94
94
import { Disposable } from 'vs/base/common/lifecycle';
95
95
import { IContextKeyService, IContextKey, setConstant as setConstantContextKey } from 'vs/platform/contextkey/common/contextkey';
96
96
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';
100
100
import { trackFocus, addDisposableListener, EventType } from 'vs/base/browser/dom';
101
101
import { preferredSideBySideGroupDirection, GroupDirection, IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService';
102
102
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
103
103
- import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
104
+ + import { IBrowserWorkbenchEnvironmentService } from 'vs/workbench/services/environment/browser/environmentService';
104
105
import { IEditorService } from 'vs/workbench/services/editor/common/editorService';
105
106
import { WorkbenchState, IWorkspaceContextService, isTemporaryWorkspace } from 'vs/platform/workspace/common/workspace';
106
107
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
116
109
@IContextKeyService private readonly contextKeyService: IContextKeyService,
117
110
@IWorkspaceContextService private readonly contextService: IWorkspaceContextService,
118
111
@IConfigurationService private readonly configurationService: IConfigurationService,
@@ -121,7 +114,7 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/contextkeys.ts
121
114
@IProductService private readonly productService: IProductService,
122
115
@IEditorService private readonly editorService: IEditorService,
123
116
@IEditorResolverService private readonly editorResolverService: IEditorResolverService,
124
- @@ -205 ,6 +205 ,9 @@ export class WorkbenchContextKeysHandler
117
+ @@ -210 ,6 +210 ,9 @@ export class WorkbenchContextKeysHandler
125
118
this.auxiliaryBarVisibleContext = AuxiliaryBarVisibleContext.bindTo(this.contextKeyService);
126
119
this.auxiliaryBarVisibleContext.set(this.layoutService.isVisible(Parts.AUXILIARYBAR_PART));
127
120
@@ -144,7 +137,7 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/files/browser/fileActions
144
137
import { IsWebContext } from 'vs/platform/contextkey/common/contextkeys';
145
138
import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';
146
139
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
148
141
id: DOWNLOAD_COMMAND_ID,
149
142
title: DOWNLOAD_LABEL
150
143
},
0 commit comments