Skip to content

ts server plugin #176

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
psteinroe opened this issue Jan 28, 2025 · 3 comments
Open

ts server plugin #176

psteinroe opened this issue Jan 28, 2025 · 3 comments

Comments

@psteinroe
Copy link
Collaborator

a tsserver plugin should allow us to add sql language features to template literals within a typescript / javascript file.

@psteinroe
Copy link
Collaborator Author

psteinroe commented Mar 7, 2025

after some research, I believe this must be solved on the editor side and not within tsserver.

For vscode, this should be possible via Request Forwarding. For Neovim, otter.nvim seems to be a good fit. we should try to make this as simple as possible.

But, since we are planning #177 anyways, we might as well look into the feasibility of running both tsserver and ours at the same time. Initial research suggests that this is not easily possible though.

@ThomAub
Copy link

ThomAub commented Apr 2, 2025

would this work for other language like in a python script ?

@reteps
Copy link

reteps commented May 9, 2025

Even if support was added for evaluating sql expressions within other languages, this extension would have a hard time expanding template literals without erroring. I created #396 to track support for templated expressions, which in my understanding is a prerequisite feature for supporting 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

No branches or pull requests

3 participants