zsome · 2022-02-23 07:27
Hi,
Is there anybody who can use intellisense in the angular html files ?
if I set the lsp-log-io then I see this:
`[Trace - 08:24:30 ] Sending request 'textDocument/definition - (108)'.`
`Params: {`
`"textDocument": {`
`"uri": "file:///home/ ... .component.html"`
`},`
`"position": {`
`"line": 21,`
`"character": 21`
`}`
`}`
`[Trace - 08:24:30 ] Received response 'textDocument/definition - (108)' in 24ms.`
`Result: null`
the html file is here:
`<li *ngFor="let courseType of category!.courseTypes"`
​
for this configuration the vscode give normal intellisense here ...
​
regards,
yyoncho · 2022-02-23 07:30
That is a definition request, you should look for `textDocument/completion`. You may force it with `M-x company-complete`
zsome · 2022-02-23 13:02
Yes, I tried to navigate to the variable...
zsome · 2022-02-23 13:03
I use the corfu, and the corfu-complete response is:
`[Trace - 02:01:01 ] Sending request 'textDocument/completion - (50)'.Params: { "textDocument": { "uri": "file:///home/ ... .component.html" }, "position": { "line": 25, "character": 44 }, "context": { "triggerKind": 3 }}[Trace - 02:01:01 ]`
`Received response 'textDocument/completion - (50)' in 24ms.Result: null`
yyoncho · 2022-02-23 14:28
so clearly the server is returning null here. To solve issues like that, I do the following:
1. Make sure that both vscode and emacs are using the same version of the server
2. Compare the logs in both
Sadly, ATM on lsp-mode side we don't have maintainer for these servers.
zsome · 2022-02-28 14:09
I could solve the problem, I had to install the nodejs 14.