提交 9c945464 编写于 作者: J Johannes Rieken

support to get a language id by filename/first line content

上级 2243e4df
......@@ -58,7 +58,8 @@ export interface IModeService {
getExtensions(alias: string): string[];
getMimeForMode(modeId: string): string;
getLanguageName(modeId:string): string;
getModeIdForLanguageName(alias:string): string;
getModeIdForLanguageName(alias: string): string;
getModeIdByFilenameOrFirstLine(filename: string, firstLine?: string): string;
getModeId(commaSeparatedMimetypesOrCommaSeparatedIds: string): string;
getConfigurationFiles(modeId: string): string[];
......
......@@ -55,6 +55,9 @@ export class MockModeService implements IModeService {
getModeIdForLanguageName(alias:string): string {
throw new Error('Not implemented');
}
getModeIdByFilenameOrFirstLine(filename: string, firstLine?: string): string {
throw new Error('Not implemented');
}
getModeId(commaSeparatedMimetypesOrCommaSeparatedIds: string): string {
throw new Error('Not implemented');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册