@@ -494,9 +494,18 @@ index 0000000000000000000000000000000000000000..3fd94e050108d5c52ad8a104cb5e0484
494
494
+ ../../../../../../src/node/proxy_agent.ts
495
495
\ No newline at end of file
496
496
diff --git a/src/vs/code/browser/workbench/workbench.ts b/src/vs/code/browser/workbench/workbench.ts
497
- index 0ef8b9dc81419b53b27cf111fb206d72ba56bada..e490cf7449623f96c780a65d538fad72cf9306e4 100644
497
+ index 0ef8b9dc81419b53b27cf111fb206d72ba56bada..779971e2cc6e5394cdd4b079630238e80b352f33 100644
498
498
--- a/src/vs/code/browser/workbench/workbench.ts
499
499
+++ b/src/vs/code/browser/workbench/workbench.ts
500
+ @@ -3,7 +3,7 @@
501
+ * Licensed under the MIT License. See License.txt in the project root for license information.
502
+ *--------------------------------------------------------------------------------------------*/
503
+
504
+ - import { IWorkbenchConstructionOptions, create, ICredentialsProvider, IURLCallbackProvider, IWorkspaceProvider, IWorkspace, IWindowIndicator, IHomeIndicator, IProductQualityChangeHandler, ISettingsSyncOptions } from 'vs/workbench/workbench.web.api';
505
+ + import { IWorkbenchConstructionOptions, create, ICredentialsProvider, IURLCallbackProvider, IWorkspaceProvider, IWorkspace, IWindowIndicator, IProductQualityChangeHandler, ISettingsSyncOptions } from 'vs/workbench/workbench.web.api';
506
+ import { URI, UriComponents } from 'vs/base/common/uri';
507
+ import { Event, Emitter } from 'vs/base/common/event';
508
+ import { generateUuid } from 'vs/base/common/uuid';
500
509
@@ -17,6 +17,7 @@ import { isStandalone } from 'vs/base/browser/browser';
501
510
import { localize } from 'vs/nls';
502
511
import { Schemas } from 'vs/base/common/network';
@@ -592,6 +601,28 @@ index 0ef8b9dc81419b53b27cf111fb206d72ba56bada..e490cf7449623f96c780a65d538fad72
592
601
593
602
// If no workspace is provided through the URL, check for config attribute from server
594
603
if (!foundWorkspace) {
604
+ @@ -465,13 +454,6 @@ class WindowIndicator implements IWindowIndicator {
605
+ // Workspace Provider
606
+ const workspaceProvider = new WorkspaceProvider(workspace, payload);
607
+
608
+ - // Home Indicator
609
+ - const homeIndicator: IHomeIndicator = {
610
+ - href: 'https://github.com/microsoft/vscode',
611
+ - icon: 'code',
612
+ - title: localize('home', "Home")
613
+ - };
614
+ -
615
+ // Window indicator (unless connected to a remote)
616
+ let windowIndicator: WindowIndicator | undefined = undefined;
617
+ if (!workspaceProvider.hasRemote()) {
618
+ @@ -515,7 +497,6 @@ class WindowIndicator implements IWindowIndicator {
619
+ create(document.body, {
620
+ ...config,
621
+ settingsSyncOptions,
622
+ - homeIndicator,
623
+ windowIndicator,
624
+ productQualityChangeHandler,
625
+ workspaceProvider,
595
626
diff --git a/src/vs/platform/environment/common/argv.ts b/src/vs/platform/environment/common/argv.ts
596
627
index 409bb7e1960c9c06485a6f6d7f39b2efce451d56..f27b651c49ea3fc92b03e31eb64c1cf27c7e4433 100644
597
628
--- a/src/vs/platform/environment/common/argv.ts
@@ -1468,10 +1499,10 @@ index 0000000000000000000000000000000000000000..56331ff1fc32bbd82e769aaecb551e42
1468
1499
+ require('../../bootstrap-amd').load('vs/server/entry');
1469
1500
diff --git a/src/vs/server/ipc.d.ts b/src/vs/server/ipc.d.ts
1470
1501
new file mode 100644
1471
- index 0000000000000000000000000000000000000000..c8a613ac2db1ff154a49aa7b6da5f7d2af902ec7
1502
+ index 0000000000000000000000000000000000000000..bf45e75aaf0dc8953ee6fee97fe02149879d3d72
1472
1503
--- /dev/null
1473
1504
+++ b/src/vs/server/ipc.d.ts
1474
- @@ -0,0 +1,133 @@
1505
+ @@ -0,0 +1,139 @@
1475
1506
+ /**
1476
1507
+ * External interfaces for integration into code-server over IPC. No vs imports
1477
1508
+ * should be made in this file.
@@ -1544,6 +1575,7 @@ index 0000000000000000000000000000000000000000..c8a613ac2db1ff154a49aa7b6da5f7d2
1544
1575
+
1545
1576
+ log?: string;
1546
1577
+ verbose?: boolean;
1578
+ + home?: string;
1547
1579
+
1548
1580
+ _: string[];
1549
1581
+ }
@@ -1587,6 +1619,11 @@ index 0000000000000000000000000000000000000000..c8a613ac2db1ff154a49aa7b6da5f7d2
1587
1619
+ ['enableProposedApi', string],
1588
1620
+ ];
1589
1621
+ };
1622
+ + readonly homeIndicator?: {
1623
+ + href: string,
1624
+ + icon: string,
1625
+ + title: string,
1626
+ + },
1590
1627
+ };
1591
1628
+ readonly remoteUserDataUri: UriComponents;
1592
1629
+ readonly productConfiguration: {
@@ -3293,10 +3330,10 @@ index 0000000000000000000000000000000000000000..57213f92828fafefcab0e3c401a1e8ed
3293
3330
+ }
3294
3331
diff --git a/src/vs/server/node/server.ts b/src/vs/server/node/server.ts
3295
3332
new file mode 100644
3296
- index 0000000000000000000000000000000000000000..5521d51a92d1b1e3469e890bae41277b560d08a2
3333
+ index 0000000000000000000000000000000000000000..0f4d31a961be1c055163b0cf29d550d7af5146e6
3297
3334
--- /dev/null
3298
3335
+++ b/src/vs/server/node/server.ts
3299
- @@ -0,0 +1,302 @@
3336
+ @@ -0,0 +1,308 @@
3300
3337
+ import { field } from '@coder/logger';
3301
3338
+ import * as fs from 'fs';
3302
3339
+ import * as net from 'net';
@@ -3357,6 +3394,7 @@ index 0000000000000000000000000000000000000000..5521d51a92d1b1e3469e890bae41277b
3357
3394
+ import { REMOTE_TERMINAL_CHANNEL_NAME } from 'vs/workbench/contrib/terminal/common/remoteTerminalChannel';
3358
3395
+ import { REMOTE_FILE_SYSTEM_CHANNEL_NAME } from 'vs/workbench/services/remote/common/remoteAgentFileSystemChannel';
3359
3396
+ import { RemoteExtensionLogFileName } from 'vs/workbench/services/remote/common/remoteAgentService';
3397
+ + import { localize } from 'vs/nls';
3360
3398
+
3361
3399
+ export class Vscode {
3362
3400
+ public readonly _onDidClientConnect = new Emitter<ClientConnectionEvent>();
@@ -3405,6 +3443,11 @@ index 0000000000000000000000000000000000000000..5521d51a92d1b1e3469e890bae41277b
3405
3443
+ ['enableProposedApi', JSON.stringify(options.args['enable-proposed-api'] || [])]
3406
3444
+ ],
3407
3445
+ },
3446
+ + homeIndicator: {
3447
+ + href: options.args.home || 'https://github.com/cdr/code-server',
3448
+ + icon: 'code',
3449
+ + title: localize('home', "Home"),
3450
+ + },
3408
3451
+ },
3409
3452
+ remoteUserDataUri: transformer.transformOutgoing(URI.file(environment.userDataPath)),
3410
3453
+ productConfiguration: product,
@@ -3859,16 +3902,13 @@ index 021af6e0f8983c492f9cdd048ba2dcae7640bc1d..4474a93beba03365709c3cda98b68213
3859
3902
module = module.with({ path: ensureSuffix(module.path, '.js') });
3860
3903
const response = await fetch(module.toString(true));
3861
3904
diff --git a/src/vs/workbench/browser/actions/navigationActions.ts b/src/vs/workbench/browser/actions/navigationActions.ts
3862
- index 7344a3a29b32f7b370b99bf0cfdc79a322195ff8..dc21396e83e2f53914447d3460c2ee1103ecb28e 100644
3905
+ index 7344a3a29b32f7b370b99bf0cfdc79a322195ff8..46c900da7610d9ca6ddff4556b5d93b8dd58588c 100644
3863
3906
--- a/src/vs/workbench/browser/actions/navigationActions.ts
3864
3907
+++ b/src/vs/workbench/browser/actions/navigationActions.ts
3865
- @@ -310,4 +310,8 @@ actionsRegistry.registerWorkbenchAction(SyncActionDescriptor.from(FocusNextPart,
3866
- actionsRegistry.registerWorkbenchAction(SyncActionDescriptor.from(FocusPreviousPart, { primary: KeyMod.Shift | KeyCode.F6 }), 'View: Focus Previous Part', CATEGORIES.View.value);
3908
+ @@ -311,3 +311,6 @@ actionsRegistry.registerWorkbenchAction(SyncActionDescriptor.from(FocusPreviousP
3867
3909
3868
3910
const workbenchRegistry = Registry.as<IWorkbenchContributionsRegistry>(WorkbenchExtensions.Workbench);
3869
- - workbenchRegistry.registerWorkbenchContribution(GoHomeContributor, LifecyclePhase.Ready);
3870
- + // See https://github.com/cdr/code-server/issues/2328
3871
- + // workbenchRegistry.registerWorkbenchContribution(GoHomeContributor, LifecyclePhase.Ready);
3911
+ workbenchRegistry.registerWorkbenchContribution(GoHomeContributor, LifecyclePhase.Ready);
3872
3912
+ export const _1 = workbenchRegistry;
3873
3913
+ export const _2 = GoHomeContributor;
3874
3914
+ export const _3 = LifecyclePhase.Ready;
0 commit comments