File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 3
3
"displayName" : " Gitpod" ,
4
4
"description" : " Gitpod Support" ,
5
5
"publisher" : " gitpod" ,
6
- "version" : " 0.0.174 " ,
6
+ "version" : " 0.0.175 " ,
7
7
"license" : " MIT" ,
8
8
"icon" : " resources/gitpod.png" ,
9
9
"repository" : {
Original file line number Diff line number Diff line change @@ -47,6 +47,21 @@ export async function activate(context: vscode.ExtensionContext) {
47
47
48
48
if ( isGitpodFlexRemoteWindow ( ) ) {
49
49
vscode . commands . executeCommand ( 'setContext' , 'gitpod.inGitpodFlexRemoteWindow' , true ) ;
50
+ context . subscriptions . push ( vscode . window . registerUriHandler ( {
51
+ handleUri ( uri : vscode . Uri ) {
52
+ try {
53
+ const params : SSHConnectionParams = JSON . parse ( uri . query ) ;
54
+ const openNewWindow = 'Use New Window' ;
55
+ vscode . window . showInformationMessage ( `We cannot open Gitpod workspace on ${ params . gitpodHost } from a Gitpod Flex environment window.` , openNewWindow )
56
+ . then ( action => {
57
+ if ( action === openNewWindow ) {
58
+ vscode . commands . executeCommand ( 'vscode.newWindow' , { remoteAuthority : null } ) ;
59
+ }
60
+ } ) ;
61
+ } catch {
62
+ }
63
+ }
64
+ } ) ) ;
50
65
return ;
51
66
}
52
67
You can’t perform that action at this time.
0 commit comments