Skip to content

feat: enable forwarded ports using built-in proxy #5673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 24, 2022
Prev Previous commit
Next Next commit
fixup!: remove comment
  • Loading branch information
jsjoeio committed Oct 21, 2022
commit cbd59a85c6b4fde23b480af39993a858b66233c5
3 changes: 1 addition & 2 deletions patches/proxy-uri.diff
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench.ts

interface ICredential {
service: string;
@@ -511,6 +512,39 @@ function doCreateUri(path: string, query
@@ -511,6 +512,38 @@ function doCreateUri(path: string, query
} : undefined,
workspaceProvider: WorkspaceProvider.create(config),
urlCallbackProvider: new LocalStorageURLCallbackProvider(config.callbackRoute),
Expand All @@ -153,7 +153,6 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench.ts
+ let isDisposed = false;
+ return Promise.resolve({
+ remoteAddress: tunnelOptions.remoteAddress,
+ //The complete local address(ex. localhost:1234)
+ localAddress: `localhost:${tunnelOptions.remoteAddress.port}`,
+ onDidDispose: onDidDispose.event,
+ dispose: () => {
Expand Down