mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-12 09:38:26 +01:00
@@ -96,6 +96,11 @@ export namespace Schemas {
|
||||
* Scheme used for temporary resources
|
||||
*/
|
||||
export const tmp = 'tmp';
|
||||
|
||||
/**
|
||||
* Scheme used vs live share
|
||||
*/
|
||||
export const vsls = 'vsls';
|
||||
}
|
||||
|
||||
class RemoteAuthoritiesImpl {
|
||||
|
||||
@@ -131,7 +131,7 @@ export class OpenerService implements IOpenerService {
|
||||
// Default opener: any external, maito, http(s), command, and catch-all-editors
|
||||
this._openers.push({
|
||||
open: async (target: URI | string, options?: OpenOptions) => {
|
||||
if (options?.openExternal || matchesScheme(target, Schemas.mailto) || matchesScheme(target, Schemas.http) || matchesScheme(target, Schemas.https)) {
|
||||
if (options?.openExternal || matchesScheme(target, Schemas.mailto) || matchesScheme(target, Schemas.http) || matchesScheme(target, Schemas.https) || matchesScheme(target, Schemas.vsls)) {
|
||||
// open externally
|
||||
await this._doOpenExternal(target, options);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user