Skip to content

Commit

Permalink
dont show errors for other files
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed May 2, 2024
1 parent 8f54fe1 commit b726036
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/chpl-language-server/src/chpl-language-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,9 @@ def get_file_info(
)
self.file_infos[uri] = file_info

# filter out errors that are not related to the file
errors = [e for e in errors if e.location().path() == uri[len("file://") :]]

return (file_info, errors)

def build_diagnostics(self, uri: str) -> List[Diagnostic]:
Expand Down

0 comments on commit b726036

Please sign in to comment.