MVVS: MV Basic for Visual Studio

 View Only
  • 1.  Rocket-mvbasic and Sftp extension

    PARTNER
    Posted 06-03-2021 05:19
    Hi,

    I'll share our experience to edit the BASIC code locally with vscode/rocket-mvbasic.
    Simply, we combine the rocket-mvbasic with sftp extension sftp sync extension for VS Code
    - setup a ssh service on your db-server c.f. ssh.com/academy
    - setup the two extensions under vscode.
    - create a local directory 'local-source'
    - inside the local-source, create a sub-directory named like your account you will edit the code
    - start vscode on local-source\myaccount
    - save a workspace on local-source\myaccount (to receive .vscode and .rmv settings)
    - start CommandPalett > Sftp: Config (which create a sub-dir .vscode and a sftp.json file you edit)
    {
        "name": "the name of the profile",
        "host": "servername",
        "protocol": "sftp",
        "port": 22,
        "username": "userid",
        "password": "password",
        "remotePath": "/path/to.myaccount",
        "uploadOnSave": true,
        "downloadOnOpen": true,
        "ignore": [
            ".DS_Store", ".git", ".vscode", ".mvx-ide", ".hs_debuginfo", ".rnd", ".rmv",
            "&COMO&", "&HOLD&", "&PH&", ...
            you list all the files which are not BASIC sources
            ]
    }
    ​
    - save the sftp.json file
    - start CommandPalett > Sftp: Download Project (SFTP will download all files/directories into the folder)

    From that point, you can edit your basic code,
    - if sftp.uploadOnSave is true, the sync upload to the server is done when you save the item. 
    - there is Sftp command to 'compare with remote', 'force upload', 'force download' ... c.f. commandPalett Sftp: ... 

    if you add files.associations "**/local-source/**" with rocket-mvbasic, the rocket-mvbasic extension start autmatically. 
    "settings":{
        "files.associations": {
            "**/BP/*": "rocket-mvbasic",
            "**/*BASIC/*": "rocket-mvbasic",
            "**/*INCLUDE/*": "rocket-mvbasic"
        }
    }
    ​


    enjoy vscode!



    ------------------------------
    Manu Fernandes
    ------------------------------


  • 2.  RE: Rocket-mvbasic and Sftp extension

    ROCKETEER
    Posted 06-04-2021 07:54
    Nice. Had a play with the upload and it works :)

    ------------------------------
    Christian Bristow
    Rocket Software
    ------------------------------