question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

textDocument/completion feature not working properly

See original GitHub issue

the completions function is called on every change in the document, regardless of the trigger_characters list sent inside the CompletionOptions object to the ls.feature(...) decorator

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
misdocumenocommented, Apr 27, 2021

seems to be working fine now, thanks for the help

0reactions
danixeeecommented, Apr 21, 2021

I just updated npm packages in the json-extension example in #175. ~Please checkout danixeee/json-example-npm-updates and try again.~

EDIT: It’s merged, so checkout the master branch.

Here’s my output:

Daniels-MBP:json-extension daniel$ node --version
v14.15.1
Daniels-MBP:json-extension daniel$ npm --version
7.10.0
Daniels-MBP:json-extension daniel$ npm i

added 174 packages, and audited 175 packages in 2s

found 0 vulnerabilities

For the server, as you already know, you need to create a new python virtual env, install pygls, and add a python path to the settings.json:

{
    "python.pythonPath": "......../bin/python",
}

After that, just open json-extension in a new VS Code window or add it as a workspace folder, and start debugging (Server + Client).

Let me know if completions are working well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

lsp not working properly · Issue #3411 · emacs-lsp/lsp-mode
Specifically, it appears that LSP client doesn't register its capabilities correctly. For example, completion and and semantic highlighting are ...
Read more >
VS Code API | Visual Studio Code Extension API
The completion item provider interface defines the contract between extensions and IntelliSense. Providers can delay the computation of the detail and ...
Read more >
Code completion not working for Xtext language server
In the xxx.xtext.ide plugin's srg-gen folder, I see xxx.ide.contentassist.antlr package (which I assume provides the code completion feature).
Read more >
Integrating Code Completion in Visual Studio Code
Our objective is to build a working VSCode extension that will showcase a limited form of code completion for the Kotlin language. Our...
Read more >
pygls Documentation
Set a breakpoint inside completion function and go back to opened json file in your editor. Now press ctrl + space (control +...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found