Skip to content

Commit

Permalink
vscode: give focus back to Goals panel when navigating proofs
Browse files Browse the repository at this point in the history
Signed-off-by: Abdelghani ALIDRA <[email protected]>
  • Loading branch information
Alidra committed May 23, 2024
1 parent 5d1a523 commit a4ef607
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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

0 comments on commit a4ef607

Please sign in to comment.