File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 14
14
* | file | vscode-local |
15
15
* --------------------------------
16
16
* ```
17
+ * @typedef { import('../base/common/uriIpc').IRawURITransformer } IRawURITransformer
18
+ * @typedef { import('../base/common/uriIpc').UriParts } UriParts
19
+ * @typedef { import('../base/common/uri').UriComponents } UriComponents
20
+ * @param {string } remoteAuthority
21
+ * @returns {IRawURITransformer }
17
22
*/
18
23
module . exports = function ( remoteAuthority ) {
19
24
return {
25
+ /**
26
+ * @param {UriParts } uri
27
+ * @returns {UriParts }
28
+ */
20
29
transformIncoming : ( uri ) => {
21
30
if ( uri . scheme === 'vscode-remote' ) {
22
31
return { scheme : 'file' , path : uri . path } ;
@@ -26,7 +35,10 @@ module.exports = function(remoteAuthority) {
26
35
}
27
36
return uri ;
28
37
} ,
29
-
38
+ /**
39
+ * @param {UriParts } uri
40
+ * @returns {UriParts }
41
+ */
30
42
transformOutgoing : ( uri ) => {
31
43
if ( uri . scheme === 'file' ) {
32
44
return { scheme : 'vscode-remote' , authority : remoteAuthority , path : uri . path } ;
@@ -36,7 +48,10 @@ module.exports = function(remoteAuthority) {
36
48
}
37
49
return uri ;
38
50
} ,
39
-
51
+ /**
52
+ * @param {string } scheme
53
+ * @returns {string }
54
+ */
40
55
transformOutgoingScheme : ( scheme ) => {
41
56
if ( scheme === 'file' ) {
42
57
return 'vscode-remote' ;
You can’t perform that action at this time.
0 commit comments