Skip to content

fix merging snippets #243255

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

superle3
Copy link

increase nesting level of the snippet based on how many snippets need to be merged instead an arbitrary value of 10.
Fixes #230149 and whatever duplicate it is of.
This doesn't adress the floating point issue that arises when more then 14 snippets are expanded.

Currentlty it is not possible to make a snippet for a 4x4 matrix in latex which uses atleast 16 tabstops, exceeding the 10 tabstop limit.

@superle3
Copy link
Author

superle3 commented Apr 7, 2025

any update on this?

@RedCMD
Copy link
Contributor

RedCMD commented Apr 8, 2025

@superle3 superle3 force-pushed the nested-tabstops-fix branch 2 times, most recently from eca170a to 7fa7674 Compare April 23, 2025 20:46
@superle3
Copy link
Author

@microsoft-github-policy-service agree

@superle3 superle3 force-pushed the nested-tabstops-fix branch from 7fa7674 to d3e3310 Compare April 24, 2025 06:09
@superle3
Copy link
Author

Also fixed the floating point issue.
Before:

broken_vscode_snippetsv2.mp4

After:

fixed_vscode_snippetsv2.mp4

The testing snippets are just to show the problem, without anything distracting.

I think the floating point problem is from #87226.

increase nesting level of the snippet based on how many snippets need to be merged instead an arbitrary value of 10 and reorder the indexes afterwards to avoid floating point problems where nestinglevel< 1e-15 would be added upon index > 1, where the index then wouldn't change.
@superle3 superle3 force-pushed the nested-tabstops-fix branch from d3e3310 to c84c37c Compare April 24, 2025 17:09
@superle3
Copy link
Author

@jrieken any update on this?

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.

nested tabstop breaks when over 10 placed
3 participants