Skip to content

Commit 1b5d431

Browse files
committed
feat: enable ports panel in proxy-uri patch
This makes the forwarded ports panel enabled by default.
1 parent efce005 commit 1b5d431

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

patches/proxy-uri.diff

+15
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ For the `asExternalUri` changes, you'll need to test manually by:
1919
Do the same thing but set `VSCODE_PROXY_URI: "https://{{port}}-main-workspace-name-user-name.coder.com"`
2020
and the output should replace `{{port}}` with port used in input url.
2121

22+
This also enables the forwared ports view panel by default.
23+
2224
Index: code-server/lib/vscode/src/vs/base/common/product.ts
2325
===================================================================
2426
--- code-server.orig/lib/vscode/src/vs/base/common/product.ts
@@ -142,3 +144,16 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench.ts
142144
+ }
143145
});
144146
})();
147+
Index: code-server/lib/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.ts
148+
===================================================================
149+
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.ts
150+
+++ code-server/lib/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.ts
151+
@@ -73,7 +73,7 @@ export class ForwardedPortsView extends
152+
this.contextKeyListener = undefined;
153+
}
154+
155+
- const viewEnabled: boolean = !!forwardedPortsViewEnabled.getValue(this.contextKeyService);
156+
+ const viewEnabled: boolean = true;
157+
158+
if (this.environmentService.remoteAuthority && viewEnabled) {
159+
const viewContainer = await this.getViewContainer();

0 commit comments

Comments
 (0)