Skip to content

Commit 30b3716

Browse files
committed
[supervisor] add new .gitpod.yml on-port option ignore-completely
1 parent 6385d6f commit 30b3716

File tree

6 files changed

+231
-210
lines changed

6 files changed

+231
-210
lines changed

components/gitpod-protocol/data/gitpod-schema.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
"open-browser",
2525
"open-preview",
2626
"notify",
27-
"ignore"
27+
"ignore",
28+
"ignore-completely"
2829
],
29-
"description": "What to do when a service on this port was detected. 'notify' (default) will show a notification asking the user what to do. 'open-browser' will open a new browser tab. 'open-preview' will open in the preview on the right of the IDE. 'ignore' will do nothing."
30+
"description": "What to do when a service on this port was detected. 'notify' (default) will show a notification asking the user what to do. 'open-browser' will open a new browser tab. 'open-preview' will open in the preview on the right of the IDE. 'ignore' will do nothing. 'ignore-completely' will do nothing and prevent port forwarding."
3031
},
3132
"visibility": {
3233
"type": "string",

components/gitpod-protocol/src/protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ export interface PrebuiltWorkspaceUpdatable {
10011001
contextUrl?: string;
10021002
}
10031003

1004-
export type PortOnOpen = "open-browser" | "open-preview" | "notify" | "ignore";
1004+
export type PortOnOpen = "open-browser" | "open-preview" | "notify" | "ignore" | "ignore-completely";
10051005

10061006
export interface PortConfig {
10071007
port: number;

0 commit comments

Comments
 (0)