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

Diagnostics in untitled files in Visual Studio Code aren't being targeted to the untitled file #1924

Closed
ShamblesSM opened this issue Feb 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ShamblesSM
Copy link

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Diagnostics/Syntax Checking

Expected Behaviour

Untitled files should be given diagnostics just like saved files.

Actual Behaviour

Untitled files aren't getting the diagnostics. While the diagnostics themselves work, the "file" that the diagnostics are reporting point to a non-existent file.

Reproduction steps

  1. Create a new file.
  2. Type anything that would cause diagnostics to kick in (such as a syntax error).
  3. Notice the lack of squiggly lines.

Additional Notes

image

Log File

service.log

@sumneko sumneko added the bug Something isn't working label Feb 20, 2023
@sumneko sumneko closed this as completed in 2704d39 Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants