File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6040,21 +6040,6 @@ declare module 'vscode' {
60406040 * @returns A promise indicating if open was successful.
60416041 */
60426042 export function openExternal ( target : Uri ) : Thenable < boolean > ;
6043-
6044- /**
6045- * Information about running remotely. When `undefined`, extensions are executed in the same
6046- * context (e.g. operating system or machine) in which the UI of the editor is executed.
6047- * If defined, extensions are running in a different context, for instance a remote machine.
6048- *
6049- * A remote [uri](#Uri) adheres to this format: `remote_scheme://auth_prefix+auth_rest/path` where
6050- * the `remote_scheme` is defined by the editor, `auth_prefix` and `auth_rest` are defined by extensions,
6051- * and `path` is defined by the user.
6052- *
6053- * Extensions contributing a remote are encouraged to use a stable `auth_prefix`-value,
6054- * e.g `remote_scheme://ssh+23/` and `remote_scheme://ssh+42`. Such prefix is exposed
6055- * in the `prefix`-property of the returned object.
6056- */
6057- export const remoteAuthority : { prefix : string } | undefined ;
60586043 }
60596044
60606045 /**
Original file line number Diff line number Diff line change @@ -256,21 +256,6 @@ export function createApiFactory(
256256 } ,
257257 openExternal ( uri : URI ) {
258258 return extHostWindow . openUri ( uri , { allowTunneling : ! ! initData . remoteAuthority } ) ;
259- } ,
260- get remoteAuthority ( ) {
261- const { remoteAuthority } = initData ;
262- if ( ! remoteAuthority ) {
263- return undefined ;
264- }
265- const idx = remoteAuthority . indexOf ( '+' ) ;
266- if ( idx < 0 ) {
267- console . warn ( `INVALID remote authority: ${ remoteAuthority } ` ) ;
268- return undefined ;
269- }
270- return {
271- prefix : remoteAuthority . substring ( 0 , idx ) ,
272- toString ( ) { return remoteAuthority ; } // compatiblity
273- } ;
274259 }
275260 } ) ;
276261
You can’t perform that action at this time.
0 commit comments