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

Don't reject whole batch of files because some of them failed to load… #66

Merged
merged 1 commit into from
Jul 15, 2017

Conversation

peacegiverman
Copy link

…. Fixes "Parse All Files" (issue #54).

As I mentioned in #54, when FileReader.readFileFromNames() failes to read any single file within a batch, it would reject it's Promise, spawning an error which led to valid files being discarded and OutputWriter having inconsistent state. This commit fixes that.

This does not fix the OutputWriter state management issues directly. They should still be dealt with in another patch.

While "Parse All Files" now works correctly, there is an issue with VS code that will make it spawn "Uncaught exception" errors whenever workspace.openTextDocument() fails to open a file. See microsoft/vscode#27809 and microsoft/vscode#28069 for details.

@mt40
Copy link
Owner

mt40 commented Jul 15, 2017

Nice! I didn't think about this 👍

@mt40 mt40 merged commit e850476 into mt40:master Jul 15, 2017
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.

2 participants