Skip to content

Commit 0e7f504

Browse files
committed
chore: generate new patch
1 parent b42d04b commit 0e7f504

File tree

1 file changed

+66
-31
lines changed

1 file changed

+66
-31
lines changed

ci/dev/vscode.patch

+66-31
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ index 0000000000000000000000000000000000000000..3fd94e050108d5c52ad8a104cb5e0484
494494
+../../../../../../src/node/proxy_agent.ts
495495
\ No newline at end of file
496496
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..86ccef66fd689a511786867eafe4b39bd633c1c3 100644
498498
--- a/src/vs/code/browser/workbench/workbench.ts
499499
+++ b/src/vs/code/browser/workbench/workbench.ts
500500
@@ -17,6 +17,7 @@ import { isStandalone } from 'vs/base/browser/browser';
@@ -592,6 +592,28 @@ index 0ef8b9dc81419b53b27cf111fb206d72ba56bada..e490cf7449623f96c780a65d538fad72
592592

593593
// If no workspace is provided through the URL, check for config attribute from server
594594
if (!foundWorkspace) {
595+
@@ -465,13 +454,6 @@ class WindowIndicator implements IWindowIndicator {
596+
// Workspace Provider
597+
const workspaceProvider = new WorkspaceProvider(workspace, payload);
598+
599+
- // Home Indicator
600+
- const homeIndicator: IHomeIndicator = {
601+
- href: 'https://github.com/microsoft/vscode',
602+
- icon: 'code',
603+
- title: localize('home', "Home")
604+
- };
605+
-
606+
// Window indicator (unless connected to a remote)
607+
let windowIndicator: WindowIndicator | undefined = undefined;
608+
if (!workspaceProvider.hasRemote()) {
609+
@@ -515,7 +497,6 @@ class WindowIndicator implements IWindowIndicator {
610+
create(document.body, {
611+
...config,
612+
settingsSyncOptions,
613+
- homeIndicator,
614+
windowIndicator,
615+
productQualityChangeHandler,
616+
workspaceProvider,
595617
diff --git a/src/vs/platform/environment/common/argv.ts b/src/vs/platform/environment/common/argv.ts
596618
index 409bb7e1960c9c06485a6f6d7f39b2efce451d56..f27b651c49ea3fc92b03e31eb64c1cf27c7e4433 100644
597619
--- a/src/vs/platform/environment/common/argv.ts
@@ -1468,10 +1490,10 @@ index 0000000000000000000000000000000000000000..56331ff1fc32bbd82e769aaecb551e42
14681490
+require('../../bootstrap-amd').load('vs/server/entry');
14691491
diff --git a/src/vs/server/ipc.d.ts b/src/vs/server/ipc.d.ts
14701492
new file mode 100644
1471-
index 0000000000000000000000000000000000000000..c8a613ac2db1ff154a49aa7b6da5f7d2af902ec7
1493+
index 0000000000000000000000000000000000000000..bf45e75aaf0dc8953ee6fee97fe02149879d3d72
14721494
--- /dev/null
14731495
+++ b/src/vs/server/ipc.d.ts
1474-
@@ -0,0 +1,133 @@
1496+
@@ -0,0 +1,139 @@
14751497
+/**
14761498
+ * External interfaces for integration into code-server over IPC. No vs imports
14771499
+ * should be made in this file.
@@ -1544,6 +1566,7 @@ index 0000000000000000000000000000000000000000..c8a613ac2db1ff154a49aa7b6da5f7d2
15441566
+
15451567
+ log?: string;
15461568
+ verbose?: boolean;
1569+
+ home?: string;
15471570
+
15481571
+ _: string[];
15491572
+}
@@ -1587,6 +1610,11 @@ index 0000000000000000000000000000000000000000..c8a613ac2db1ff154a49aa7b6da5f7d2
15871610
+ ['enableProposedApi', string],
15881611
+ ];
15891612
+ };
1613+
+ readonly homeIndicator?: {
1614+
+ href: string,
1615+
+ icon: string,
1616+
+ title: string,
1617+
+ },
15901618
+ };
15911619
+ readonly remoteUserDataUri: UriComponents;
15921620
+ readonly productConfiguration: {
@@ -3293,10 +3321,10 @@ index 0000000000000000000000000000000000000000..57213f92828fafefcab0e3c401a1e8ed
32933321
+}
32943322
diff --git a/src/vs/server/node/server.ts b/src/vs/server/node/server.ts
32953323
new file mode 100644
3296-
index 0000000000000000000000000000000000000000..5521d51a92d1b1e3469e890bae41277b560d08a2
3324+
index 0000000000000000000000000000000000000000..04e56c907774a96453fded9254c70f7844917d76
32973325
--- /dev/null
32983326
+++ b/src/vs/server/node/server.ts
3299-
@@ -0,0 +1,302 @@
3327+
@@ -0,0 +1,308 @@
33003328
+import { field } from '@coder/logger';
33013329
+import * as fs from 'fs';
33023330
+import * as net from 'net';
@@ -3357,6 +3385,7 @@ index 0000000000000000000000000000000000000000..5521d51a92d1b1e3469e890bae41277b
33573385
+import { REMOTE_TERMINAL_CHANNEL_NAME } from 'vs/workbench/contrib/terminal/common/remoteTerminalChannel';
33583386
+import { REMOTE_FILE_SYSTEM_CHANNEL_NAME } from 'vs/workbench/services/remote/common/remoteAgentFileSystemChannel';
33593387
+import { RemoteExtensionLogFileName } from 'vs/workbench/services/remote/common/remoteAgentService';
3388+
+import { localize } from 'vs/nls';
33603389
+
33613390
+export class Vscode {
33623391
+ public readonly _onDidClientConnect = new Emitter<ClientConnectionEvent>();
@@ -3405,6 +3434,11 @@ index 0000000000000000000000000000000000000000..5521d51a92d1b1e3469e890bae41277b
34053434
+ ['enableProposedApi', JSON.stringify(options.args['enable-proposed-api'] || [])]
34063435
+ ],
34073436
+ },
3437+
+ homeIndicator: {
3438+
+ href: options.args.home || "https://github.com/cdr/code-server",
3439+
+ icon: 'code',
3440+
+ title: localize('home', "Home"),
3441+
+ },
34083442
+ },
34093443
+ remoteUserDataUri: transformer.transformOutgoing(URI.file(environment.userDataPath)),
34103444
+ productConfiguration: product,
@@ -3859,16 +3893,13 @@ index 021af6e0f8983c492f9cdd048ba2dcae7640bc1d..4474a93beba03365709c3cda98b68213
38593893
module = module.with({ path: ensureSuffix(module.path, '.js') });
38603894
const response = await fetch(module.toString(true));
38613895
diff --git a/src/vs/workbench/browser/actions/navigationActions.ts b/src/vs/workbench/browser/actions/navigationActions.ts
3862-
index 7344a3a29b32f7b370b99bf0cfdc79a322195ff8..dc21396e83e2f53914447d3460c2ee1103ecb28e 100644
3896+
index 7344a3a29b32f7b370b99bf0cfdc79a322195ff8..46c900da7610d9ca6ddff4556b5d93b8dd58588c 100644
38633897
--- a/src/vs/workbench/browser/actions/navigationActions.ts
38643898
+++ 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);
3899+
@@ -311,3 +311,6 @@ actionsRegistry.registerWorkbenchAction(SyncActionDescriptor.from(FocusPreviousP
38673900

38683901
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);
3902+
workbenchRegistry.registerWorkbenchContribution(GoHomeContributor, LifecyclePhase.Ready);
38723903
+export const _1 = workbenchRegistry;
38733904
+export const _2 = GoHomeContributor;
38743905
+export const _3 = LifecyclePhase.Ready;
@@ -4706,44 +4737,48 @@ index ff358cb6a10984868ed5a5aed5729ac6eb8ebeb7..c73be6d8e9f9b213aeee2b4c22b53fc5
47064737
nice-try@^1.0.4:
47074738
version "1.0.4"
47084739
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.4.tgz#d93962f6c52f2c1558c0fbda6d512819f1efe1c4"
4709-
@@ -6581,6 +6705,18 @@ optimist@^0.6.1:
4740+
@@ -6581,29 +6705,29 @@ optimist@^0.6.1:
47104741
minimist "~0.0.1"
47114742
wordwrap "~0.0.2"
47124743

4744+
-optionator@^0.8.2:
4745+
- version "0.8.2"
4746+
- resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64"
4747+
- integrity sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=
47134748
+optionator@^0.8.1, optionator@^0.8.3:
47144749
+ version "0.8.3"
47154750
+ resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495"
47164751
+ integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==
4717-
+ dependencies:
4718-
+ deep-is "~0.1.3"
4752+
dependencies:
4753+
deep-is "~0.1.3"
4754+
- fast-levenshtein "~2.0.4"
47194755
+ fast-levenshtein "~2.0.6"
4720-
+ levn "~0.3.0"
4721-
+ prelude-ls "~1.1.2"
4722-
+ type-check "~0.3.2"
4723-
+ word-wrap "~1.2.3"
4724-
+
4725-
optionator@^0.8.2:
4726-
version "0.8.2"
4727-
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64"
4728-
@@ -6593,18 +6729,6 @@ optionator@^0.8.2:
4756+
levn "~0.3.0"
4757+
prelude-ls "~1.1.2"
47294758
type-check "~0.3.2"
4730-
wordwrap "~1.0.0"
4759+
- wordwrap "~1.0.0"
4760+
+ word-wrap "~1.2.3"
47314761

47324762
-optionator@^0.8.3:
47334763
- version "0.8.3"
47344764
- resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495"
47354765
- integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==
4736-
- dependencies:
4737-
- deep-is "~0.1.3"
4766+
+optionator@^0.8.2:
4767+
+ version "0.8.2"
4768+
+ resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64"
4769+
+ integrity sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=
4770+
dependencies:
4771+
deep-is "~0.1.3"
47384772
- fast-levenshtein "~2.0.6"
4739-
- levn "~0.3.0"
4740-
- prelude-ls "~1.1.2"
4741-
- type-check "~0.3.2"
4773+
+ fast-levenshtein "~2.0.4"
4774+
levn "~0.3.0"
4775+
prelude-ls "~1.1.2"
4776+
type-check "~0.3.2"
47424777
- word-wrap "~1.2.3"
4743-
-
4778+
+ wordwrap "~1.0.0"
4779+
47444780
ordered-read-streams@^0.3.0:
47454781
version "0.3.0"
4746-
resolved "https://registry.yarnpkg.com/ordered-read-streams/-/ordered-read-streams-0.3.0.tgz#7137e69b3298bb342247a1bbee3881c80e2fd78b"
47474782
@@ -6744,6 +6868,35 @@ p-try@^2.0.0:
47484783
resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.0.0.tgz#85080bb87c64688fa47996fe8f7dfbe8211760b1"
47494784
integrity sha512-hMp0onDKIajHfIkdRk3P4CdCmErkYAxxDtP3Wx/4nZ3aGlau2VKh3mZpcuFkH27WQkL/3WBCPOktzA9ZOAnMQQ==

0 commit comments

Comments
 (0)