提交 aa921aa2 编写于 作者: C Christof Marti 提交者: Matt Bierner

Check for special URLs (fixes #27603) (#27781)

上级 b5a1ecb6
......@@ -613,7 +613,7 @@ class TypeScriptServiceClientHost implements ITypescriptServiceClientHost {
}
private findLanguage(file: string): Thenable<LanguageProvider | null> {
return workspace.openTextDocument(file).then((doc: TextDocument) => {
return workspace.openTextDocument(this.client.asUrl(file)).then((doc: TextDocument) => {
for (const language of this.languages) {
if (language.handles(file, doc)) {
return language;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册