Add vsls to openers

For #136139
This commit is contained in:
Matt Bierner
2021-11-08 17:18:35 -08:00
parent d4f6110bbd
commit 2d271e5e73
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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;