提交 ca8bb6a8 编写于 作者: S Soo Jae Hwang 提交者: Matt Bierner

Enable click and open mailto links in Markdown preview (#36795)

上级 509630ff
......@@ -38,5 +38,7 @@ export namespace Schemas {
export const file: string = 'file';
export const mailto: string = 'mailto';
export const untitled: string = 'untitled';
}
......@@ -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 = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册