@@ -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
- @@ -250 ,6 +250 ,11 @@ export interface IWorkbenchConstructionO
15
+ @@ -267 ,6 +267 ,11 @@ export interface IWorkbenchConstructionO
16
16
*/
17
17
readonly userDataPath?: string
18
18
@@ -52,7 +52,7 @@ Index: code-server/lib/vscode/src/vs/workbench/services/environment/browser/envi
52
52
+ }
53
53
+
54
54
@memoize
55
- get settingsResource (): URI { return joinPath(this.userRoamingDataHome, 'settings .json'); }
55
+ get argvResource (): URI { return joinPath(this.userRoamingDataHome, 'argv .json'); }
56
56
57
57
Index: code-server/lib/vscode/src/vs/server/node/serverEnvironmentService.ts
58
58
===================================================================
@@ -66,7 +66,7 @@ Index: code-server/lib/vscode/src/vs/server/node/serverEnvironmentService.ts
66
66
67
67
/* ----- server setup ----- */
68
68
69
- @@ -94 ,6 +95 ,7 @@ export interface ServerParsedArgs {
69
+ @@ -95 ,6 +96 ,7 @@ export interface ServerParsedArgs {
70
70
/* ----- code-server ----- */
71
71
'disable-update-check'?: boolean;
72
72
'auth'?: string
@@ -78,7 +78,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
78
78
===================================================================
79
79
--- code-server.orig/lib/vscode/src/vs/server/node/webClientServer.ts
80
80
+++ code-server/lib/vscode/src/vs/server/node/webClientServer.ts
81
- @@ -300 ,6 +300 ,7 @@ export class WebClientServer {
81
+ @@ -297 ,6 +297 ,7 @@ export class WebClientServer {
82
82
remoteAuthority,
83
83
webviewEndpoint: vscodeBase + this._staticRoute + '/out/vs/workbench/contrib/webview/browser/pre',
84
84
userDataPath: this._environmentService.userDataPath,
@@ -90,47 +90,42 @@ 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,7 +7,7 @@ import { Event } from 'vs/base/common/ev
94
94
import { Disposable } from 'vs/base/common/lifecycle';
95
95
import { IContextKeyService, IContextKey } from 'vs/platform/contextkey/common/contextkey';
96
- import { InputFocusedContext, IsMacContext, IsLinuxContext, IsWindowsContext, IsWebContext, IsMacNativeContext, IsDevelopmentContext, IsIOSContext } from 'vs/platform/contextkey/common/contextkeys';
96
+ import { InputFocusedContext, IsMacContext, IsLinuxContext, IsWindowsContext, IsWebContext, IsMacNativeContext, IsDevelopmentContext, IsIOSContext, ProductQualityContext } from 'vs/platform/contextkey/common/contextkeys';
97
97
- import { SplitEditorsVertically, InEditorZenModeContext, ActiveEditorCanRevertContext, ActiveEditorGroupLockedContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, AuxiliaryBarVisibleContext, SideBarVisibleContext, PanelAlignmentContext, PanelMaximizedContext, PanelVisibleContext, ActiveEditorContext, EditorsVisibleContext, TextCompareEditorVisibleContext, TextCompareEditorActiveContext, ActiveEditorGroupEmptyContext, MultipleEditorGroupsContext, EditorTabsVisibleContext, IsCenteredLayoutContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorReadonlyContext, EditorAreaVisibleContext, ActiveEditorAvailableEditorIdsContext, DirtyWorkingCopiesContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, HasWebFileSystemAccess, IsFullscreenContext, OpenFolderWorkspaceSupportContext, RemoteNameContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, PanelPositionContext } from 'vs/workbench/common/contextkeys';
98
98
+import { SplitEditorsVertically, InEditorZenModeContext, ActiveEditorCanRevertContext, ActiveEditorGroupLockedContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, AuxiliaryBarVisibleContext, SideBarVisibleContext, PanelAlignmentContext, PanelMaximizedContext, PanelVisibleContext, ActiveEditorContext, EditorsVisibleContext, TextCompareEditorVisibleContext, TextCompareEditorActiveContext, ActiveEditorGroupEmptyContext, MultipleEditorGroupsContext, EditorTabsVisibleContext, IsCenteredLayoutContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorReadonlyContext, EditorAreaVisibleContext, ActiveEditorAvailableEditorIdsContext, DirtyWorkingCopiesContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, HasWebFileSystemAccess, IsFullscreenContext, OpenFolderWorkspaceSupportContext, RemoteNameContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, PanelPositionContext, IsEnabledFileDownloads } from 'vs/workbench/common/contextkeys';
99
99
import { TEXT_DIFF_EDITOR_ID, EditorInputCapabilities, SIDE_BY_SIDE_EDITOR_ID, DEFAULT_EDITOR_ASSOCIATION } 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
- import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
103
- - import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
104
- import { IEditorService } from 'vs/workbench/services/editor/common/editorService';
105
- import { WorkbenchState, IWorkspaceContextService } from 'vs/platform/workspace/common/workspace';
106
- import { IWorkbenchLayoutService, Parts, positionToString } from 'vs/workbench/services/layout/browser/layoutService';
107
- @@ -24,6 +23,7 @@ import { IEditorResolverService } from '
108
- import { IPaneCompositePartService } from 'vs/workbench/services/panecomposite/browser/panecomposite';
102
+ @@ -25,6 +25,7 @@ import { IPaneCompositePartService } fro
109
103
import { Schemas } from 'vs/base/common/network';
110
104
import { WebFileSystemAccess } from 'vs/platform/files/browser/webFileSystemAccess';
105
+ import { IProductService } from 'vs/platform/product/common/productService';
111
106
+ import { IBrowserWorkbenchEnvironmentService } from '../services/environment/browser/environmentService';
112
107
113
108
export class WorkbenchContextKeysHandler extends Disposable {
114
109
private inputFocusedContext: IContextKey<boolean>;
115
- @@ -75 ,7 +75 ,7 @@ export class WorkbenchContextKeysHandler
110
+ @@ -76 ,7 +77 ,7 @@ export class WorkbenchContextKeysHandler
116
111
@IContextKeyService private readonly contextKeyService: IContextKeyService,
117
112
@IWorkspaceContextService private readonly contextService: IWorkspaceContextService,
118
113
@IConfigurationService private readonly configurationService: IConfigurationService,
119
114
- @IWorkbenchEnvironmentService private readonly environmentService: IWorkbenchEnvironmentService,
120
115
+ @IBrowserWorkbenchEnvironmentService private readonly environmentService: IBrowserWorkbenchEnvironmentService,
116
+ @IProductService private readonly productService: IProductService,
121
117
@IEditorService private readonly editorService: IEditorService,
122
118
@IEditorResolverService private readonly editorResolverService: IEditorResolverService,
123
- @IEditorGroupsService private readonly editorGroupService: IEditorGroupsService,
124
- @@ -194,6 +194,9 @@ export class WorkbenchContextKeysHandler
119
+ @@ -198,6 +199,9 @@ export class WorkbenchContextKeysHandler
120
+ // Auxiliary Bar
125
121
this.auxiliaryBarVisibleContext = AuxiliaryBarVisibleContext.bindTo(this.contextKeyService);
126
122
this.auxiliaryBarVisibleContext.set(this.layoutService.isVisible(Parts.AUXILIARYBAR_PART));
127
-
123
+ +
128
124
+ // code-server
129
125
+ IsEnabledFileDownloads.bindTo(this.contextKeyService).set(this.environmentService.isEnabledFileDownloads ?? true)
130
- +
126
+
131
127
this.registerListeners();
132
128
}
133
-
134
129
Index: code-server/lib/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.ts
135
130
===================================================================
136
131
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.ts
0 commit comments