WIP Improper Typescript filesystem update #382
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current code changes works to fix issues relating to deleting all file content. Still have issues relating to initially having no file content. Most likely related to how we are handling our initial render and how the typescript VFS handles empty string file contents.
WIP:
On initial render the file system does not properly update with a blank file.
Steps to replicate:
In the following screenshot script.ts was originally blank and I tried to edit the file.
![image](https://private-user-images.githubusercontent.com/28715761/287398642-2167138a-8067-4e79-a072-32dec02d245f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1OTMwMDIsIm5iZiI6MTcyMTU5MjcwMiwicGF0aCI6Ii8yODcxNTc2MS8yODczOTg2NDItMjE2NzEzOGEtODA2Ny00ZTc5LWEwNzItMzJkZWMwMmQyNDVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDIwMTE0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY5ZGUzYjNjM2M3MzIyZDRkNjBhMmY2NjRlZmZmZjg0NmQ2ZTM2MWJmMmY3ZWE5NGZmZWEyMTg1MmFiZjY2OTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KODVdi6_NvtH74PBmrGAo5otVOZaq9q1G6n3j6eVsDU)