www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Support for D in VSCode

reply bitwise <bitwise.pvt gmail.com> writes:
After receiving 1000+ votes on Visual Studio User Voice
[1], Microsoft has added D to their Wiki for requested VSCode 
extensions[2]. I'm not sure if support was initially available 
for adding custom extensions to VSCode, but it seems to be 
now[3]. I've been using VSCode for a couple of months now(C#) and 
it seems pretty good. I'm not sure how soon Microsoft will 
actually get around to implementing a D extension, but it doesn't 
seem like it would be very difficult to create one for someone 
who already has experience with this sort of thing[4].


[1] 
http://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7763160-support-the-d-programming-language
[2] https://github.com/Microsoft/vscode/wiki/Requested-Extensions
[3] https://code.visualstudio.com/Docs/extensions/overview
[4] https://code.visualstudio.com/Docs/customization/colorizer

     Bit
Feb 09 2016
parent reply WebFreak001 <janju007 web.de> writes:
On Tuesday, 9 February 2016 at 22:06:37 UTC, bitwise wrote:
 After receiving 1000+ votes on Visual Studio User Voice
 [1], Microsoft has added D to their Wiki for requested VSCode 
 extensions[2]. I'm not sure if support was initially available 
 for adding custom extensions to VSCode, but it seems to be 
 now[3]. I've been using VSCode for a couple of months now(C#) 
 and it seems pretty good. I'm not sure how soon Microsoft will 
 actually get around to implementing a D extension, but it 
 doesn't seem like it would be very difficult to create one for 
 someone who already has experience with this sort of thing[4].


 [1] 
 http://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7763160-support-the-d-programming-language
 [2] 
 https://github.com/Microsoft/vscode/wiki/Requested-Extensions
 [3] https://code.visualstudio.com/Docs/extensions/overview
 [4] https://code.visualstudio.com/Docs/customization/colorizer

     Bit
Sounds awesome for the community! But for me this will probably be a real downside as we put so much work into our vscode extension already. In case someone didn't know: me and Wild made a D extension for vscode supporting dub (build, run, linting) + dub.json completion, dfmt, dscanner, dcd, DlangUI Markup Language syntax + auto complete, SDL syntax, arsd.script syntax, jade syntax, upload to dpaste and D snippets: https://github.com/Pure-D/code-d
Feb 09 2016
next sibling parent reply Gerald <me me.com> writes:
On Tuesday, 9 February 2016 at 22:23:49 UTC, WebFreak001 wrote:
 Sounds awesome for the community! But for me this will probably 
 be a real downside as we put so much work into our vscode 
 extension already.

 In case someone didn't know: me and Wild made a D extension for 
 vscode supporting dub (build, run, linting) + dub.json 
 completion, dfmt, dscanner, dcd, DlangUI Markup Language syntax 
 + auto complete, SDL syntax, arsd.script syntax, jade syntax, 
 upload to dpaste and D snippets: 
 https://github.com/Pure-D/code-d
Maybe I'm reading this wrong, but all MS has done is move it to a wiki requesting an extension from the community for it. I don't see anything that indicates that they will do any work on this. You've already done what has been requested IMHO, it would be great if there was a way to update the issue/wiki to point to your extension. I've been using your extension for awhile now while and it's been great, I'm finding vscode coupled with code-d to be much more productive for me then other toolchains I've chained.
Feb 09 2016
parent Gerald <me me.com> writes:
On second blush maybe I am reading this wrong, as it is a 
"community requested extension" not "extension to be done by the 
community". Anyway, beyond adding a simple syntax highlighter, 
this would be a huge amount of work for MS to support fully and 
I'm not sure what it buys in comparison to the existing extension 
from WebFreak.
Feb 09 2016
prev sibling parent reply bitwise <bitwise.pvt gmail.com> writes:
On Tuesday, 9 February 2016 at 22:23:49 UTC, WebFreak001 wrote:
 On Tuesday, 9 February 2016 at 22:06:37 UTC, bitwise wrote:
     [...]
Sounds awesome for the community! But for me this will probably be a real downside as we put so much work into our vscode extension already. In case someone didn't know: me and Wild made a D extension for vscode supporting dub (build, run, linting) + dub.json completion, dfmt, dscanner, dcd, DlangUI Markup Language syntax + auto complete, SDL syntax, arsd.script syntax, jade syntax, upload to dpaste and D snippets: https://github.com/Pure-D/code-d
How did I not know about this!? Total awesomeness. You can add it here if you want: http://wiki.dlang.org/IDEs Also, can you create an install-wizard or zip/package with the extension and all dependencies? I don't really have time to figure out how to install everything separately. Thanks! Bit
Feb 09 2016
next sibling parent reply WebFreak001 <janju007 web.de> writes:
On Tuesday, 9 February 2016 at 23:17:48 UTC, bitwise wrote:
 You can add it here if you want:
 http://wiki.dlang.org/IDEs
Its already on http://wiki.dlang.org/List_of_Text_editors
 Also, can you create an install-wizard or zip/package with the 
 extension and all dependencies? I don't really have time to 
 figure out how to install everything separately.
Good idea, would make everything easier
Feb 09 2016
parent bitwise <bitwise.pvt gmail.com> writes:
On Tuesday, 9 February 2016 at 23:27:08 UTC, WebFreak001 wrote:
 On Tuesday, 9 February 2016 at 23:17:48 UTC, bitwise wrote:
 You can add it here if you want:
 http://wiki.dlang.org/IDEs
Its already on http://wiki.dlang.org/List_of_Text_editors
 Also, can you create an install-wizard or zip/package with the 
 extension and all dependencies? I don't really have time to 
 figure out how to install everything separately.
Good idea, would make everything easier
Awesome. Can't wait to try it out! It would be nice to have an editor that could deal with DMD properly(half C++, half D). I don't expect to be able to jump between symbols in different languages, but at least use "Go To Definition" for one language at a time, in the same editor. That would be awesome. Bit
Feb 09 2016
prev sibling parent reply WebFreak001 <janju007 web.de> writes:
On Tuesday, 9 February 2016 at 23:17:48 UTC, bitwise wrote:
 Also, can you create an install-wizard or zip/package with the 
 extension and all dependencies? I don't really have time to 
 figure out how to install everything separately.
Made a wizard which automatically clones, builds and copies all executables now: https://github.com/Pure-D/workspace-d-installer
Feb 10 2016
parent reply bitwise <bitwise.pvt gmail.com> writes:
On Wednesday, 10 February 2016 at 20:25:46 UTC, WebFreak001 wrote:
 On Tuesday, 9 February 2016 at 23:17:48 UTC, bitwise wrote:
 Also, can you create an install-wizard or zip/package with the 
 extension and all dependencies? I don't really have time to 
 figure out how to install everything separately.
Made a wizard which automatically clones, builds and copies all executables now: https://github.com/Pure-D/workspace-d-installer
Awesome, thanks =D I'll try it out this weekend. Not sure if this is an issue though, but VSCode was just updated, and the release log says there are breaking changes for extensions: https://code.visualstudio.com/updates#_extension-authoring Bit
Feb 11 2016
parent WebFreak001 <janju007 web.de> writes:
On Thursday, 11 February 2016 at 18:26:35 UTC, bitwise wrote:
 Awesome, thanks =D
 I'll try it out this weekend.

 Not sure if this is an issue though, but VSCode was just 
 updated, and the release log says there are breaking changes 
 for extensions:

 https://code.visualstudio.com/updates#_extension-authoring
That only happens if you upgrade the vscode dependency. Its very weird right now and I will wait for the next release before upgrading the extension because there isn't anything new that code-d needs.
Feb 11 2016