提交 353f3481 编写于 作者: S Sandeep Somavarapu

Do not show schema for untitled files #19627

上级 becf0b55
......@@ -39,6 +39,8 @@ export namespace Schemas {
export const https: string = 'https';
export const file: string = 'file';
export const untitled: string = 'untitled';
}
export interface IXHROptions {
......
......@@ -91,7 +91,7 @@ export class Renderer implements IRenderer {
public getTemplateId(tree: ITree, element: any): string {
if (element instanceof Resource) {
if ((<Resource>element).uri.scheme === network.Schemas.file) {
if ((<Resource>element).uri.scheme === network.Schemas.file || (<Resource>element).uri.scheme === network.Schemas.untitled) {
return Renderer.FILE_RESOURCE_TEMPLATE_ID;
} else {
return Renderer.RESOURCE_TEMPLATE_ID;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册