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

Configuring worker language server #43

Open
tpluscode opened this issue Apr 28, 2021 · 1 comment
Open

Configuring worker language server #43

tpluscode opened this issue Apr 28, 2021 · 1 comment

Comments

@tpluscode
Copy link

tpluscode commented Apr 28, 2021

I'm experimenting with the sparql-language-server, combined with CodeMirror and qualified/lsps

It works out of the box, which is nice but I completely lack ways to customise the LSP

Specifically, at this moment I would like to add more namespaces/prefixed terms to the completion. I found the hardcoded getCommonCompletionItemsGivenNamespaces.

Is it possible to add more namespaces? Preferably async, to accommodate for large or numerous vocabularies

@maxwrlr
Copy link

maxwrlr commented Oct 2, 2021

Hi @tpluscode, it might not be the solution you're looking for, but with my sparql-language-server-dev package you could create your own worker script where you extend SparqlLanguageServer and override the completion methods. It's not out of the box anymore and quite hacky, especially when accessing private vars of SparqlLanguageServer, but should work.

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