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

Gracefully fail if file is not written to disk #1641

Merged

Conversation

mskelton
Copy link
Contributor

Re-opening #1560 after the discussion in microsoft/language-server-protocol#1679.


When using the ESLint language server in Neovim, creating a new unwritten buffer will cause the language server to crash due to fs.realpathSync.native throwing an exception since the file does not exist. This change simply ignores errors from fs.realpathSync.native falling back to the original URI for the file.

@dbaeumer dbaeumer merged commit d821444 into microsoft:main Apr 24, 2023
@mskelton mskelton deleted the gracefully-handle-non-existant-files branch April 26, 2023 02:17
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.

3 participants