@@ -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
- @@ -267 ,6 +267 ,11 @@ export interface IWorkbenchConstructionO
15
+ @@ -271 ,6 +271 ,11 @@ export interface IWorkbenchConstructionO
16
16
*/
17
17
readonly userDataPath?: string
18
18
@@ -66,7 +66,7 @@ Index: code-server/lib/vscode/src/vs/server/node/serverEnvironmentService.ts
66
66
67
67
/* ----- server setup ----- */
68
68
69
- @@ -95 ,6 +96 ,7 @@ export interface ServerParsedArgs {
69
+ @@ -94 ,6 +95 ,7 @@ export interface ServerParsedArgs {
70
70
/* ----- code-server ----- */
71
71
'disable-update-check'?: boolean;
72
72
'auth'?: string
@@ -84,25 +84,25 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
84
84
userDataPath: this._environmentService.userDataPath,
85
85
+ isEnabledFileDownloads: !this._environmentService.args['disable-file-downloads'],
86
86
_wrapWebWorkerExtHostInIframe,
87
- developmentOptions: {
88
- enableSmokeTestDriver: this._environmentService.args['enable-smoke-test-driver '] ? true : undefined,
87
+ developmentOptions: { enableSmokeTestDriver: this._environmentService.args['enable-smoke-test-driver'] ? true : undefined, logLevel: this._logService.getLevel() },
88
+ settingsSyncOptions: ! this._environmentService.isBuilt && this._environmentService. args['enable-sync '] ? { enabled: true } : undefined,
89
89
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
93
@@ -7,12 +7,11 @@ 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, ProductQualityContext } 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, EditorTabsVisibleContext, IsCenteredLayoutContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorReadonlyContext, EditorAreaVisibleContext, ActiveEditorAvailableEditorIdsContext, DirtyWorkingCopiesContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, HasWebFileSystemAccess, IsFullscreenContext, OpenFolderWorkspaceSupportContext, RemoteNameContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, PanelPositionContext } from 'vs/workbench/common/contextkeys';
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';
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, 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, 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
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
102
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
103
103
- import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
104
104
import { IEditorService } from 'vs/workbench/services/editor/common/editorService';
105
- import { WorkbenchState, IWorkspaceContextService } from 'vs/platform/workspace/common/workspace';
105
+ import { WorkbenchState, IWorkspaceContextService, isTemporaryWorkspace } from 'vs/platform/workspace/common/workspace';
106
106
import { IWorkbenchLayoutService, Parts, positionToString } from 'vs/workbench/services/layout/browser/layoutService';
107
107
@@ -25,6 +24,7 @@ import { IPaneCompositePartService } fro
108
108
import { Schemas } from 'vs/base/common/network';
@@ -112,7 +112,7 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/contextkeys.ts
112
112
113
113
export class WorkbenchContextKeysHandler extends Disposable {
114
114
private inputFocusedContext: IContextKey<boolean>;
115
- @@ -76 ,7 +76 ,7 @@ export class WorkbenchContextKeysHandler
115
+ @@ -77 ,7 +77 ,7 @@ export class WorkbenchContextKeysHandler
116
116
@IContextKeyService private readonly contextKeyService: IContextKeyService,
117
117
@IWorkspaceContextService private readonly contextService: IWorkspaceContextService,
118
118
@IConfigurationService private readonly configurationService: IConfigurationService,
@@ -121,7 +121,7 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/contextkeys.ts
121
121
@IProductService private readonly productService: IProductService,
122
122
@IEditorService private readonly editorService: IEditorService,
123
123
@IEditorResolverService private readonly editorResolverService: IEditorResolverService,
124
- @@ -199 ,6 +199 ,9 @@ export class WorkbenchContextKeysHandler
124
+ @@ -202 ,6 +202 ,9 @@ export class WorkbenchContextKeysHandler
125
125
this.auxiliaryBarVisibleContext = AuxiliaryBarVisibleContext.bindTo(this.contextKeyService);
126
126
this.auxiliaryBarVisibleContext.set(this.layoutService.isVisible(Parts.AUXILIARYBAR_PART));
127
127
@@ -172,7 +172,7 @@ Index: code-server/lib/vscode/src/vs/workbench/common/contextkeys.ts
172
172
===================================================================
173
173
--- code-server.orig/lib/vscode/src/vs/workbench/common/contextkeys.ts
174
174
+++ code-server/lib/vscode/src/vs/workbench/common/contextkeys.ts
175
- @@ -30 ,6 +30 ,8 @@ export const IsFullscreenContext = new R
175
+ @@ -32 ,6 +32 ,8 @@ export const IsFullscreenContext = new R
176
176
177
177
export const HasWebFileSystemAccess = new RawContextKey<boolean>('hasWebFileSystemAccess', false, true); // Support for FileSystemAccess web APIs (https://wicg.github.io/file-system-access)
178
178
0 commit comments