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

Add feature to jump to the .ql file referenced by a .qlref #815

Merged
merged 2 commits into from
Apr 9, 2021

Conversation

edoardopirovano
Copy link
Contributor

@edoardopirovano edoardopirovano commented Mar 29, 2021

This PR adds an option to jump from a .qlref file to the .ql file it references. Note that it should not be merged yet, as it relies on a new CLI call resolve qlref which is not released yet.

Closes #654

Copy link
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Let's get the related PR in semmle-code merged and then we can merge this one.

extensions/ql-vscode/src/cli.ts Outdated Show resolved Hide resolved
extensions/ql-vscode/src/extension.ts Outdated Show resolved Hide resolved
@edoardopirovano edoardopirovano marked this pull request as ready for review April 1, 2021 09:04
@edoardopirovano
Copy link
Contributor Author

Updated to account for the minor CLI changes in the internal PR, which has now been merged. This is now ready for merging, although doing so will mean we should not release a new version of the extension until the new CLI is released.

Copy link
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good and can is ready to be merged, but I think you're right that we should hold off for now until cli v2.5.1 is released. It would be annoying if you got this message and had no way of upgrading to a sufficient version.

helpers.showAndLogErrorMessage(
'Jumping from a .qlref file to the .ql file it references is not '
+ 'supported with the CLI version you are running.\n'
+ 'Please upgrade your CLI to use this feature.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to include the minimum cli version here. Something like:

Suggested change
+ 'Please upgrade your CLI to use this feature.');
+ `Please upgrade your CLI to version ${CLI_VERSION_WITH_RESOLVE_QLREF} or later to use this feature.`);

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.

Feature request: jump to source from .qlref files
2 participants