Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Improper Typescript filesystem update #382

Merged
merged 3 commits into from
Dec 3, 2023

Conversation

EvWhymark
Copy link
Collaborator

@EvWhymark EvWhymark commented Dec 1, 2023

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:

  • Launch local server
  • Have a blank (no file content) .ts or .js file and open it
  • Attempt to update file

In the following screenshot script.ts was originally blank and I tried to edit the file.
image

@EvWhymark EvWhymark changed the title Improper Typescript filesystem update WIP Improper Typescript filesystem update Dec 1, 2023
@EvWhymark EvWhymark linked an issue Dec 1, 2023 that may be closed by this pull request
Copy link
Contributor

@curran curran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

src/client/useTypeScript/worker.ts Outdated Show resolved Hide resolved
src/client/useTypeScript/worker.ts Outdated Show resolved Hide resolved
@curran curran marked this pull request as ready for review December 3, 2023 03:00
@curran curran merged commit 2c45275 into main Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typescript Filesystem Improperly Updating
2 participants