File tree 2 files changed +5
-19
lines changed
2 files changed +5
-19
lines changed Original file line number Diff line number Diff line change 1
1
diff --git a/src/vs/base/common/network.ts b/src/vs/base/common/network.ts
2
- index 6d41e85e42..f845d0bf9e 100644
2
+ index 6d41e85e42..64f39687a4 100644
3
3
--- a/src/vs/base/common/network.ts
4
4
+++ b/src/vs/base/common/network.ts
5
- @@ -48,7 +48,9 @@ export namespace Schemas {
6
-
7
- export const command: string = 'command';
8
-
9
- - export const vscodeRemote: string = 'vscode-remote';
10
- + // NOTE@coder: Changed this so it'll be reflected in the explorer to prevent
11
- + // confusion with vscode-remote itself.
12
- + export const vscodeRemote: string = 'code-server';
13
-
14
- export const vscodeRemoteResource: string = 'vscode-remote-resource';
15
-
16
- @@ -96,12 +98,12 @@ class RemoteAuthoritiesImpl {
5
+ @@ -96,12 +96,12 @@ class RemoteAuthoritiesImpl {
17
6
if (host && host.indexOf(':') !== -1) {
18
7
host = `[${host}]`;
19
8
}
Original file line number Diff line number Diff line change @@ -4,22 +4,19 @@ module.exports = (remoteAuthority) => {
4
4
return {
5
5
transformIncoming : ( uri ) => {
6
6
switch ( uri . scheme ) {
7
- case "code-server" : return { scheme : "file" , path : uri . path } ;
8
- case "file" : return { scheme : "code-server" , path : uri . path } ;
7
+ case "vscode-remote" : return { scheme : "file" , path : uri . path } ;
9
8
default : return uri ;
10
9
}
11
10
} ,
12
11
transformOutgoing : ( uri ) => {
13
12
switch ( uri . scheme ) {
14
- case "code-server" : return { scheme : "file" , path : uri . path } ;
15
- case "file" : return { scheme : "code-server" , authority : remoteAuthority , path : uri . path } ;
13
+ case "file" : return { scheme : "vscode-remote" , authority : remoteAuthority , path : uri . path } ;
16
14
default : return uri ;
17
15
}
18
16
} ,
19
17
transformOutgoingScheme : ( scheme ) => {
20
18
switch ( scheme ) {
21
- case "code-server" : return "file" ;
22
- case "file" : return "code-server" ;
19
+ case "file" : return "vscode-local" ;
23
20
default : return scheme ;
24
21
}
25
22
} ,
You can’t perform that action at this time.
0 commit comments