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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode formatter #655

Open
pokey opened this issue Nov 29, 2023 · 3 comments
Open

VSCode formatter #655

pokey opened this issue Nov 29, 2023 · 3 comments

Comments

@pokey
Copy link

pokey commented Nov 29, 2023

Cool project! It would be great to be able to use topiary formatters for autoformatting in VSCode. See this guide for more, in case you haven't seen that one yet 馃槉

@Xophmeister
Copy link
Member

Thanks for your suggestion 馃檪

From this guide, it looks like native VSCode integration would be through an LSP. Topiary doesn't currently provide any LSP interface, nor is it on the radar. Can integration be done without resorting to an LSP? (@torhovland IIRC, you mentioned something about this many months ago; perhaps in the context of a VSCode extension.)

@torhovland
Copy link
Member

I haven't looked into it in detail, but in any case there needs to be an extension involved.

@pokey
Copy link
Author

pokey commented Nov 29, 2023

Yes it's possible to do it without resorting to an LSP; see the subsection called Direct Implementation underneath the section I linked in description

You might find it easiest to use a wasm rather than native code. We originally tried to build a native extension for Cursorless VSCode, and it was a nightmare to deal with the OS / arch matrix within electron context so switched to wasm and haven't looked back

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

3 participants