Skip to content

Making TM_SELECTED_TEXT snippet variable work with overtyped text#105220

Closed
n-gist wants to merge 152 commits intomicrosoft:masterfrom
n-gist:feature-snippets-overtyping
Closed

Making TM_SELECTED_TEXT snippet variable work with overtyped text#105220
n-gist wants to merge 152 commits intomicrosoft:masterfrom
n-gist:feature-snippets-overtyping

Conversation

@n-gist
Copy link
Copy Markdown
Contributor

@n-gist n-gist commented Aug 22, 2020

I connected it to undo edit stack.
Fixes #62907

overtyping_showcase

I added a separate variable TM_OVERTYPED_TEXT first. But then decided to combine with TM_SELECTED_TEXT with simply "if there is no selected text, try to get overtyped text from undo". This does not break the previous behavior, so existing snippets should get this option.

sandy081 and others added 25 commits August 26, 2020 10:34
* load tas-client async (fix #105343)

* use import type
* Load 'node-pty' async (fix #105345)

* Use import type to prevent accidentally code import

Co-authored-by: Daniel Imms <daimms@microsoft.com>
@n-gist
Copy link
Copy Markdown
Contributor Author

n-gist commented Aug 26, 2020

Wow, sorry, I didn't want that. Will dig how to fix it.

@n-gist n-gist closed this Aug 26, 2020
@n-gist n-gist deleted the feature-snippets-overtyping branch August 26, 2020 16:07
@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preserve Current Selection when using snippet with TM_SELECTED_TEXT variable