About Monkey 2 › Forums › Monkey 2 Projects › Visual Studio Code plan
This topic contains 11 replies, has 6 voices, and was last updated by
Simon Armstrong 1 year, 6 months ago.
-
AuthorPosts
-
September 10, 2017 at 12:37 am #10379
Using the Microsoft Go Language plugin as a starting point (MIT license) I have started a vscode-monkey2 project here.
https://github.com/nitrologic/vscode-monkey2
Typescript is a bit new to me and I have had some experience with npm and node so having the project launch an instance of VSCode and let me debug the plugin as it tries to handle mouse hover on monkey2 documents was pretty painless.
Only tested on Windows using following local settings.json
XHTML123{"m2.path":"C:\\monkey2"}The only thing that works to date is the plugin identifying version of mx2cc and I only know that works as I stepped through the typescript in debugger.
September 11, 2017 at 6:31 am #10395AWESOME! Will check it out.
September 11, 2017 at 8:21 am #10396If this means monkey2 support for Visual Studio I am all for it. Not really for myself but it may attract more people to Monkey2
September 12, 2017 at 12:59 am #10417Nice job! I will try it. How to install it though?
I extracted the folder and placed it here: C:\Users\cocon\.vscode\extensions
Then I set the m2.path value in the settings.json.
When I open a file I see no syntax highlight, then when I try to debug a file I can see the Monkey2 build system, but when I select it I get this message: command ‘m2.debug.startSession’ not found
September 12, 2017 at 3:37 am #10423Sorry I should have been more clear, I have begun this project not completed it so no, it is not worth installing at this time.
It is a big job so I will need help, see README.
There is an install link at bottom of this doc
https://code.visualstudio.com/docs/extensions/debugging-extensions
September 12, 2017 at 8:41 pm #10435OK, thanks.
September 13, 2017 at 10:16 am #10445I’d really love to see Monkey2-Support for a 3rd party IDE/Editor like VS Code. But there is already a monkey 2 package for Atom, which is discussed here: http://monkeycoder.co.nz/forums/topic/atom-package-for-monkey2/
Since its a lot of work to get such a plugin off the ground it may be good idea to collaborate on the efforts already done here? Just my two cents…
September 13, 2017 at 8:21 pm #10450Canuto, it is a good / better idea for people to collaborate on an Atom plugin but as a big VS-Code fan I am more than happy doing my own thing.
October 6, 2017 at 11:27 am #11022How are things going on? Are you still working on this?
October 7, 2017 at 7:10 am #11029There is more than 3 solid weeks of work required so yeh, nah.
Also decided Ted2go wasn’t that bad even if author refuses to fix my issues with left right cursor keys.
It was very interesting to look under the hood of the golang plugin. All the syntax and linting duties are done by invoking utils written in go. Accordingly a monkey2 vscode plugin may take 3 solid weeks of coding based on same approach, but a lot of that would be writing monkey2 utilities in a similar manner to way the golang plugin works.
October 7, 2017 at 1:48 pm #11030Also decided Ted2go wasn’t that bad even if author refuses to fix my issues with left right cursor keys.
Please, explain it (again?) or create issue on github.
October 7, 2017 at 10:26 pm #11037#10545 – Due to my style of keyboard navigation (more left and right and not so much up and down) I end up with a lot of lines that say end when they should read End which I find annoying.
-
AuthorPosts
You must be logged in to reply to this topic.