未验证 提交 625365b7 编写于 作者: J Jean Pierre 提交者: GitHub

Read file contents as stream in ChangeEncodingAction (#108052)

上级 fc5dd2f4
......@@ -1343,7 +1343,7 @@ export class ChangeEncodingAction extends Action {
let guessedEncoding: string | undefined = undefined;
if (this.fileService.canHandleResource(resource)) {
const content = await this.textFileService.read(resource, { autoGuessEncoding: true });
const content = await this.textFileService.readStream(resource, { autoGuessEncoding: true });
guessedEncoding = content.encoding;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册