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

Fix GitHub 1401, diagnostics relative to workspace folder #3780

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fargies
Copy link

@fargies fargies commented May 20, 2024

This change addresses item #1401

This changes how relative filepath in diagnostics are resolved

The following changes are proposed:

  • relative diagnostics files are searched in build_dir and src_dir, first existing file is returned
  • defaults to old behavior : path.resolve(build_dir, file)
  • resolveDiagnostics has been made async to not slow down IDE when testing files

The purpose of this change

Depending on tools, compiler and CMake invocation, diagnostics paths may be relative, but either to source directory or build directory.

This is a try and guess approach, with a preference for old behavior (returning build_dir/file).

Other Notes/Information

@fargies fargies marked this pull request as ready for review May 20, 2024 21:06
@fargies
Copy link
Author

fargies commented May 20, 2024

@microsoft-github-policy-service agree company="CERN"

 - relative diagnostics files are searched in build_dir and src_dir,
   first existing file is returned
 - defaults to old behavior : `path.resolve(build_dir, file)`
 - `resolveDiagnostics` has been made async to not slow down IDE when
   testing files
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