New VSCode extenstion using ConTeXt Language server
Hello All, I have published the new VSCode Extension for ConTeXt, that I presented during the 2022 ConTeXt meeting - https://wiki.contextgarden.net/VSCode You can install it manually in the VSCode (using the "Install from VSIX..." option). Documentation (for now) - https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf This supports ConTeXt markup and for any Lua code (within \startluacode & \stopluacode) it re-directs to the Lua Language Server (from Sumneko - https://github.com/sumneko/lua-language-server ) To Do - 1. Make the source code open-source 2. Add new features (like Hover & Tooltip) 3. Work with Taco to add MetaPost Language Server (this could be challenging and interesting) Do give this a try and give your feedback. Note that this does not contain *all* the macros but covers the vast majority of the ConTeXt commands. Thank you, best regards Ramkumar
Am 08.11.22 um 15:20 schrieb Ramkumar KB via ntg-context:
Hello All,
I have published the new VSCode Extension for ConTeXt, that I presented during the 2022 ConTeXt meeting -
Thank you! I spread the good news on Mastodon: https://fosstodon.org/@context/109308910662669923 Hraban
I cannot get it (vsix) to work on linux ubuntu with codium (the telematic-free version) There is probably a reason to it... On 08/11/2022 15:20, Ramkumar KB via ntg-context wrote:
Subject: [NTG-context] New VSCode extenstion using ConTeXt Language server From: Ramkumar KB via ntg-context
Date: 08/11/2022, 15:20 To: mailing list for ConTeXt users
CC: Ramkumar KB Hello All,
I have published the new VSCode Extension for ConTeXt, that I presented during the 2022 ConTeXt meeting -
https://wiki.contextgarden.net/VSCode https://wiki.contextgarden.net/VSCode
You can install it manually in the VSCode (using the "Install from VSIX..." option). Documentation (for now) - https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf
This supports ConTeXt markup and for any Lua code (within \startluacode & \stopluacode) it re-directs to the Lua Language Server (from Sumneko - https://github.com/sumneko/lua-language-server https://github.com/sumneko/lua-language-server )
To Do -
1. Make the source code open-source 2. Add new features (like Hover & Tooltip) 3. Work with Taco to add MetaPost Language Server (this could be challenging and interesting)
Do give this a try and give your feedback. Note that this does not contain *all* the macros but covers the vast majority of the ConTeXt commands.
Thank you,
best regards Ramkumar
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist :ntg-context@ntg.nl /https://www.ntg.nl/mailman/listinfo/ntg-context webpage :https://www.pragma-ade.nl /http://context.aanhet.net archive :https://bitbucket.org/phg/context-mirror/commits/ wiki :https://contextgarden.net ___________________________________________________________________________________
Floris, Can you please try with VSCode first in Ubuntu and see if this works? We have never tried with Codium (unfortunately) and therefore not sure how the Extension sytem works in Codium. Best. On Wed, Nov 9, 2022 at 12:03 AM Floris van Manen via ntg-context < ntg-context@ntg.nl> wrote:
I cannot get it (vsix) to work on linux ubuntu with codium (the telematic-free version) There is probably a reason to it...
On 08/11/2022 15:20, Ramkumar KB via ntg-context wrote:
Subject: [NTG-context] New VSCode extenstion using ConTeXt Language server From: Ramkumar KB via ntg-context
Date: 08/11/2022, 15:20 To: mailing list for ConTeXt users
CC: Ramkumar KB Hello All,
I have published the new VSCode Extension for ConTeXt, that I presented during the 2022 ConTeXt meeting -
https://wiki.contextgarden.net/VSCode https://wiki.contextgarden.net/VSCode
You can install it manually in the VSCode (using the "Install from VSIX..." option). Documentation (for now) - https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf <https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf
This supports ConTeXt markup and for any Lua code (within \startluacode & \stopluacode) it re-directs to the Lua Language Server (from Sumneko - https://github.com/sumneko/lua-language-server https://github.com/sumneko/lua-language-server )
To Do -
1. Make the source code open-source 2. Add new features (like Hover & Tooltip) 3. Work with Taco to add MetaPost Language Server (this could be challenging and interesting)
Do give this a try and give your feedback. Note that this does not contain *all* the macros but covers the vast majority of the ConTeXt commands.
Thank you,
best regards Ramkumar
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist :ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage :https://www.pragma-ade.nl /http://context.aanhet.net archive :https://bitbucket.org/phg/context-mirror/commits/ wiki :https://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net
___________________________________________________________________________________
On 09/11/2022 14:38, Ramkumar KB wrote:
Can you please try with VSCode first in Ubuntu and see if this works?
We have never tried with Codium (unfortunately) and therefore not sure how the Extension sytem works in Codium.
Not too eager to invite the telemetricks into my machine, so I'll rather opt to wait instead. No hurry. .F
Thanks. I’ve had a quick look.
One thing I’ve found is that it supports \start... commands, yet in some cases the corresponding \stop... commands seem to be missing.
[cid:image001.png@01D8F440.4954AD00]
Am I missing something ?
Best,
Denis
Von: ntg-context
Denis,
Thanks for the feedback.
No, you are not missing anything. The ConTeXt command list comes from a
file that Hans & Hraban maintain - to create the PDF version of the ConTeXt
commands guide that is available with the distribution -
https://wiki.contextgarden.net/Documentation (we convert that file into a
Typescript object and then use it in the Language Server).
Yes, this is an obvious improvement point that you have highlighted - I
will work with Hans & Hraban to improve it.
Best,
On Wed, Nov 9, 2022 at 8:36 PM
Thanks. I’ve had a quick look.
One thing I’ve found is that it supports \start... commands, yet in some cases the corresponding \stop... commands seem to be missing.
Am I missing something ?
Best,
Denis
*Von:* ntg-context
*Im Auftrag von *Ramkumar KB via ntg-context *Gesendet:* Dienstag, 8. November 2022 15:20 *An:* mailing list for ConTeXt users *Cc:* Ramkumar KB *Betreff:* [NTG-context] New VSCode extenstion using ConTeXt Language server Hello All,
I have published the new VSCode Extension for ConTeXt, that I presented during the 2022 ConTeXt meeting -
https://wiki.contextgarden.net/VSCode
You can install it manually in the VSCode (using the "Install from VSIX..." option).
Documentation (for now) - https://meeting.contextgarden.net/2022/talks/ramkumar/ramkumar-talk.pdf
This supports ConTeXt markup and for any Lua code (within \startluacode & \stopluacode) it re-directs to the Lua Language Server (from Sumneko - https://github.com/sumneko/lua-language-server )
To Do -
1. Make the source code open-source 2. Add new features (like Hover & Tooltip) 3. Work with Taco to add MetaPost Language Server (this could be challenging and interesting)
Do give this a try and give your feedback. Note that this does not contain *all* the macros but covers the vast majority of the ConTeXt commands.
Thank you,
best regards
Ramkumar
On Tue, 8 Nov 2022 22:20:10 +0800
Ramkumar KB via ntg-context
Hello All,
I have published the new VSCode Extension for ConTeXt, that I presented during the 2022 ConTeXt meeting -
Any plan to make it work with other editors which do support LSP? Sincerely, Saša -- In this endeavor there is no loss or diminution, and a little advancement on this path can protect one from the most dangerous type of fear.
On Tue, 8 Nov 2022 22:20:10 +0800
Ramkumar KB via ntg-context
Hello All,
I have published the new VSCode Extension for ConTeXt, that I presented during the 2022 ConTeXt meeting -
Any plan to make it work with other editors which do support LSP? Sincerely, Saša -- In this endeavor there is no loss or diminution, and a little advancement on this path can protect one from the most dangerous type of fear.
participants (5)
-
denis.maier@unibe.ch
-
Floris van Manen
-
Henning Hraban Ramm
-
Ramkumar KB
-
Saša Janiška