Skip to content

Commit

Permalink
Merge pull request #649 from coq-community/vim-compat
Browse files Browse the repository at this point in the history
Fix compatibility with vim extenion
  • Loading branch information
rtetley authored Oct 3, 2023
2 parents 92eeb56 + ba2a8ab commit 1a99fd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 8 additions & 4 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,23 +276,27 @@
"command": "extension.coq.interpretToPoint",
"category": "Coq",
"title": "Interpret to point",
"description": "Interprets the current coq file until the given point"
"description": "Interprets the current coq file until the given point",
"enablement": "config.vscoq.proof.mode == 0"
},
{
"command": "extension.coq.interpretToEnd",
"category": "Coq",
"title": "Interpret to end",
"description": "Interprets the current coq file until the end"
"description": "Interprets the current coq file until the end",
"enablement": "config.vscoq.proof.mode == 0"
},
{
"command": "extension.coq.stepForward",
"title": "Step Forward",
"category": "Coq"
"category": "Coq",
"enablement": "config.vscoq.proof.mode == 0"
},
{
"command": "extension.coq.stepBackward",
"title": "Step Backward",
"category": "Coq"
"category": "Coq",
"enablement": "config.vscoq.proof.mode == 0"
},
{
"command": "extension.coq.documentState",
Expand Down
5 changes: 2 additions & 3 deletions client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,8 @@ export function activate(context: ExtensionContext) {

let goalsHook = window.onDidChangeTextEditorSelection(
(evt: TextEditorSelectionChangeEvent) => {
if (evt.textEditor.document.languageId === "coq"
&& workspace.getConfiguration('vscoq.proof').mode === 1
&& isMouseOrKeyboardEvent(evt))
if (evt.textEditor.document.languageId === "coq"
&& workspace.getConfiguration('vscoq.proof').mode === 1)
{
sendInterpretToPoint(evt.textEditor, client);
}
Expand Down

0 comments on commit 1a99fd5

Please sign in to comment.