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

[Merged by Bors] - fix(frontends/lean/builtin_cmds): use correct end pos for #check et al #744

Closed
wants to merge 1 commit into from

Conversation

digama0
Copy link
Member

@digama0 digama0 commented Jul 13, 2022

@digama0 digama0 changed the title fix(frontends/lean/builtin_cmds): use correct end pos for #check et al fix(frontends/lean/builtin_cmds): use correct end pos for #check et al Jul 13, 2022
@eric-wieser
Copy link
Member

This looks great!

image

@eric-wieser
Copy link
Member

bors merge

@gebner
Copy link
Member

gebner commented Jul 13, 2022

Ha, this was an easy fix!

@bors
Copy link

bors bot commented Jul 13, 2022

@bors bors bot changed the title fix(frontends/lean/builtin_cmds): use correct end pos for #check et al [Merged by Bors] - fix(frontends/lean/builtin_cmds): use correct end pos for #check et al Jul 13, 2022
@bors bors bot closed this Jul 13, 2022
@bors bors bot deleted the check_end_pos branch July 13, 2022 07:37
Julian added a commit to Julian/lean-client-js that referenced this pull request Jul 16, 2022
Parallels https://github.com/leanprover/vscode-lean/blob/9a5f32602a5089fe9985df631f1b24aa44965063/src/diagnostics.ts#L67-L75
meaning we now handle the first two cases of leanprover-community/lean#744 (comment).

The last one is where end_pos is undefined, and what vscode does is
instead use a word range -- we can implement that from within lean.nvim.

Refs: leanprover-community/lean#744
gebner pushed a commit to leanprover/lean-client-js that referenced this pull request Jul 17, 2022
Parallels https://github.com/leanprover/vscode-lean/blob/9a5f32602a5089fe9985df631f1b24aa44965063/src/diagnostics.ts#L67-L75
meaning we now handle the first two cases of leanprover-community/lean#744 (comment).

The last one is where end_pos is undefined, and what vscode does is
instead use a word range -- we can implement that from within lean.nvim.

Refs: leanprover-community/lean#744
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

3 participants