Skip to content

Commit

Permalink
Add vsls to openers
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Nov 9, 2021
1 parent d4f6110 commit 2d271e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/vs/base/common/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/vs/editor/browser/services/openerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d271e5

Please sign in to comment.