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

Switch to teal-language-server (tea leaves) #71

Open
Hedwig7s opened this issue Sep 19, 2024 · 4 comments
Open

Switch to teal-language-server (tea leaves) #71

Hedwig7s opened this issue Sep 19, 2024 · 4 comments

Comments

@Hedwig7s
Copy link

Hedwig7s commented Sep 19, 2024

Right now this uses its own internal lsp. Since tea leaves was recently made official (rendering #49 likely broken) it would make sense to use it as the lsp of vscode-teal for consistency and so stuff doesn't have to get updated twice by seperate people
I am making this issue as while there was work on this it seems to have been abandoned years ago and I'd like to restart the conversation

@pdesaulniers
Copy link
Member

pdesaulniers commented Sep 19, 2024

Hello! I updated the branch, in case you want to try it out: #72

I also enabled verbose logging --verbose=true --log-mode=by_proj_path. This causes the language server to create log files in <Home directory>/.cache/teal-language-server.

You currently need to install teal-language-server separately, using luarocks.

Also, it seems LSP features won't be enabled unless you create a tlconfig.lua file in your project.

@Hedwig7s
Copy link
Author

I would try it out, but I don't exactly know how to

@pdesaulniers
Copy link
Member

pdesaulniers commented Sep 20, 2024

Oh, sorry! Something like this should work (you need to install npm if you don't have it already):

git clone https://github.com/teal-language/vscode-teal.git
cd vscode-teal
git checkout teal-language-server-v2
npm install
code .

Then, press F5 while in vscode to start the language client.

Instead of opening vscode and pressing F5, you can also run npm run package. This will generate a .vsix file which you can install in the extensions tab.

As mentioned earlier, you also need to install teal-language-server.

luarocks install teal-language-server

Just let me know if it's not working :)

@Hedwig7s
Copy link
Author

I'll leave issues I find under the PR

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