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

HyperSnips doesn't work with Typst LSP extension. #488

Open
ploliver opened this issue May 2, 2024 · 2 comments
Open

HyperSnips doesn't work with Typst LSP extension. #488

ploliver opened this issue May 2, 2024 · 2 comments

Comments

@ploliver
Copy link

ploliver commented May 2, 2024

  • Component:
    • VSCode Extension
  • Extension version: v0.13.0
  • OS version and name: macOS 14.1.1

Issue

HyperSnips refuses to work when the Typst LSP extension is enabled. I created an all.hsnips file that applies to all files with a simple snippet. When a .typ file is open with the extension activated, this snippet will not activate. Upon disabling the extension, the snippet will work no problem. With the extension enabled, the snippet will work if I change the extension from .typ to .txt. No other extension is enabled.

The content of all.hsnips is, for reference.

snippet test "test" wA
this is a test
endsnippet

Hope this is the place to post this. EDIT: I believe this is related to #410, #375 and #312. My apologies if this is a duplicate.

@Myriad-Dreamin
Copy link
Collaborator

The vanilla hypersnips doesn't work, but this fork might be. https://github.com/OrangeX4/OrangeX4-HyperSnips

@ploliver
Copy link
Author

ploliver commented May 4, 2024

I have just tried it and it doesn't even work properly for me (expanding math-context only expressions in the middle of the text when using OrangeX4 latex.hsnips, which breaks my worflow writing LaTeX and breaks other snippets i have for other languages).

Maybe I'm doing something wrong, but in all honesty, as a normal user, I'd expect the original exetension to work with context (scopes) functionality, so I guess this is more of a feature request than a bug report after all.

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

No branches or pull requests

2 participants