the VirtualTypeScriptEnvironment interface has two file-related functions createFile and updateFile, but seemingly no deleteFile.
|
createFile: (fileName: string, content: string) => void |
|
updateFile: (fileName: string, content: string, replaceTextSpan?: import("typescript").TextSpan) => void |
is this intended?
i've tried using the VirtualTypeScriptEnvironment.sys.deleteFile function, but it is undefined.
my current workaround is to set the file contents to a single-space string (completely empty strings currently throw errors as reported here: #2713).
it's not too big an issue for me right now since my virtual files are not directly visible and their names are auto-incremented, but i figured this would be worth posting here.
the VirtualTypeScriptEnvironment interface has two file-related functions
createFileandupdateFile, but seemingly nodeleteFile.TypeScript-Website/packages/typescript-vfs/src/index.ts
Lines 22 to 23 in b89d197
is this intended?
i've tried using the
VirtualTypeScriptEnvironment.sys.deleteFilefunction, but it is undefined.my current workaround is to set the file contents to a single-space string (completely empty strings currently throw errors as reported here: #2713).
it's not too big an issue for me right now since my virtual files are not directly visible and their names are auto-incremented, but i figured this would be worth posting here.