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

Add widget effect support for specifying location of text to insert. #234

Merged
merged 2 commits into from
Jan 2, 2021

Conversation

EdAyers
Copy link
Contributor

@EdAyers EdAyers commented Nov 15, 2020

See leanprover-community/lean#501
and https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/paste.20the.20goal.20at.20the.20cursor

This commit allows insert_text effects to include position information. An insert_text effect now has two extra fields:

{ "kind": "insert_text"
, "line": number // the line number to insert at, can be negative for relative line_type
, "column"?: number
, "file_name"?: string
, "insert_type": "absolute" | "relative" // whether line property is relative to cursor or absolute
, "text": string
}

src/infoview.ts Outdated Show resolved Hide resolved
@gebner gebner merged commit 03c9fec into leanprover:master Jan 2, 2021
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.

3 participants