提交 0f477b0c 编写于 作者: S Sandeep Somavarapu

#59517 Use absolute path

上级 d801626d
......@@ -43,6 +43,7 @@ export class TextResourceConfigurationService extends Disposable implements ITex
if (model) {
return position ? this.modeService.getLanguageIdentifier(model.getLanguageIdAtPosition(position.lineNumber, position.column)).language : model.getLanguageIdentifier().language;
}
return this.modeService.getModeIdByFilenameOrFirstLine(basename(resource.path));
return this.modeService.getModeIdByFilenameOrFirstLine(resource.path);
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册