Read file contents as stream in ChangeEncodingAction (#108052)
This commit is contained in:
parent
fc5dd2f408
commit
625365b723
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue