Visual Studio Code plan

Home Forums Monkey 2 Projects Visual Studio Code plan

This topic contains 11 replies, has 6 voices, and was last updated by  Simon Armstrong 1 month, 1 week ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #10379

    Simon Armstrong
    Participant

    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

     

    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.

    #10395

    Voidwalker
    Participant

    AWESOME! Will check it out.

    #10396

    Playniax
    Participant

    If this means monkey2 support for Visual Studio I am all for it. Not really for myself but it may attract more people to Monkey2

    #10417

    cocon
    Participant

    Nice 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

    #10423

    Simon Armstrong
    Participant

    Sorry 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

    #10435

    cocon
    Participant

    OK, thanks.

    #10445

    Canuto
    Participant

    I’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… 😉

    #10450

    Simon Armstrong
    Participant

    Canuto, 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.

    #11022

    Voidwalker
    Participant

    How are things going on? Are you still working on this? 🙂

    #11029

    Simon Armstrong
    Participant

    There 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.

    #11030

    nerobot
    Participant

    Also 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.

    #11037

    Simon Armstrong
    Participant

    #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.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.