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

Remove file prop from BsDiagnostic #1248

Open
wants to merge 5 commits into
base: release-1.0.0
Choose a base branch
from

Conversation

markwpearce
Copy link
Collaborator

All diagnostics internal to Brighterscript now use a location: Location prop instead of file: BscFile

This has a few good points:

  • Diagnostics no longer have a reference to a file, so no circular references to remove
  • Aligns better with the change to use Location for Tokens and AstNodes

One thing to note is that sometimes we need to back-convert a URI to a path for finding the files that a diagnostic applies to.
There might be some inconsistencies between Operating Systems (Mac vs. Windows, etc) that should be dealt with the URI namespace from vscode-uri, but I'm not entirely sure.

Addresses: #1155

@markwpearce markwpearce added this to the v1.0.0 milestone Jul 12, 2024
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.

None yet

1 participant