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

Give focus back to Goals panel when navigating proofs #722

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions editor/code/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# coq-lsp 0.1.8: Trick-or-treat
-------------------------------

- Give `Goals` panel focus back if it has lost it (in case of
multiple panels in the second viewColumn of Vscode) whenever
user navigates proofs
- Update VSCode client dependencies, should bring some performance
improvements to goal pretty printing (@ejgallego, #530)
- Update goal display colors for light mode so they are actually
Expand Down
4 changes: 4 additions & 0 deletions editor/code/src/goals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ export class InfoPanel {
ensurePanel() {
if (!this.panel) {
this.panelFactory();
} else {
if (!this.panel.active) {
this.panel.reveal(2, false);
}
}
}
postMessage({ method, params }: CoqMessagePayload) {
Expand Down
Loading