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

Default to error from current line if command is invoked manually #5

Open
nikomatsakis opened this issue Jun 9, 2024 · 0 comments
Open

Comments

@nikomatsakis
Copy link
Collaborator

nikomatsakis commented Jun 9, 2024

If you invoke the explainErrors command via the command palette, right now it will supply no error messages at all:

https://github.com/nikomatsakis/intorust.vscode/blob/ffff983688652133fe4a5fc80221fba683a6e6f5/src/extension.ts#L32-L34

It should really go looking at the current diagnostics to find whatever error(s) are on the current line. The codelens code is probably a good starting point:

https://github.com/nikomatsakis/intorust.vscode/blob/ffff983688652133fe4a5fc80221fba683a6e6f5/src/codelens.ts#L25

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

No branches or pull requests

1 participant