Open pisv opened 2 weeks ago
After the file is renamed, vscode.workspace.openTextDocument
is called as a result of a call to UpdateImportsOnFileRenameHandler.getJsTsFileBeingMoved
in typescript-language-features
.
This eventually triggers the following code in Theia, which shows the dialog box:
In VS Code, the call to vscode.workspace.openTextDocument
just throws an error in this case.
Bug Description:
After a binary file is renamed, a dialog box 'The file is either binary or uses an unsupported text encoding' appears out of the blue, if
typescript-language-features
is active:Steps to Reproduce:
typescript-language-features
is active, e.g. by opening a.ts
file..jpg
file.The dialog box is opened immediately after the file is successfully renamed. Nothing happens after choosing either 'Yes' or 'No' in the dialog.
Additional Information