How to interact with typescript language server programetically?
I am trying to build an app for user searching queries through language server. Maybe later on that can be enhanced with chatgpt for converting inference data to natural text.
The issue I am stuck on is the search symbols api does not seem to be working at all.
( Check attached screenshot ).
Test case here: https://github.com/sansmoraxz/tambla/blob/main/test/lsp.test.ts
GitHub
tambla/test/lsp.test.ts at main · sansmoraxz/tambla
Contribute to sansmoraxz/tambla development by creating an account on GitHub.
Solution:Jump to solution
OK I figured it out, we have to pass all these stuff in initialization params:
```json
{
hostInfo: 'vscode',...
1 Reply
Solution
OK I figured it out, we have to pass all these stuff in initialization params:
Also we need to send open file notification before we can do anything with the file.