Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/vs/base/common/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@ export namespace Schemas {

export const file: string = 'file';

export const mailto: string = 'mailto';

export const untitled: string = 'untitled';
}
6 changes: 3 additions & 3 deletions src/vs/platform/opener/browser/openerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ export class OpenerService implements IOpenerService {

const { scheme, path, query, fragment } = resource;
let promise: TPromise<any>;
if (scheme === Schemas.http || scheme === Schemas.https) {
// open http
dom.windowOpenNoOpener(resource.toString(true));

if (scheme === Schemas.http || scheme === Schemas.https || scheme === Schemas.mailto) {
// open http or default mail application
dom.windowOpenNoOpener(resource.toString(true));
} else if (scheme === 'command' && CommandsRegistry.getCommand(path)) {
// execute as command
let args: any = [];
Expand Down