zazuko / vscode-sparql-notebook

Visual Studio Code SPARQL Notebook Extension
https://marketplace.visualstudio.com/items?itemName=Zazuko.sparql-notebook
Other
26 stars 8 forks source link

Collapse prefixes #8

Closed kvistgaard closed 1 year ago

kvistgaard commented 2 years ago

Like it is e.g. at https://yasgui.triply.cc

BenjaminHofstetter commented 2 years ago

Yes that is a desired functionality. But not a notebook feature. Code cells in our case SPARQL have the same functionality as a normal VSCode "language" editor. That mean if i have the stardog sparql extension or my sparql-snippet extension the it's available in a code cell. That great feature you propose is implemented by a language server for SPARQL. To have the everywhere in VSCode. If you know an extension for that then let me know.

BenjaminHofstetter commented 2 years ago

Just discovered that one https://marketplace.visualstudio.com/items?itemName=Fireblossom.sparql-auto-completion

Install that extension and you have your desired prefix support

kvistgaard commented 2 years ago

I have all Stardog plugins and prefix collapse works for .rq and .sparql files but not for .sparqlbook files. Installed the suggested extension. No change.

BenjaminHofstetter commented 2 years ago

This is clearly desirable but it's out of scope for the notebook and should be done with a SPARQL LSP.