formulahendry / vscode-node-red

Node-RED for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.vscode-node-red
MIT License
19 stars 14 forks source link

"Projects" capability. #1

Closed Grendel61 closed 6 years ago

Grendel61 commented 6 years ago

I have the Node Red "Projects" editor theme running. Settings.js = editorTheme: { projects: { enabled: true

I brought up the vscode-node-red, and it is defaulting to how Node-Red works without projects. It seems like it overrode the settings.js. Otherwise everything is loaded properly. Any thoughts on a hack? https://nodered.org/docs/user-guide/projects/

Grendel61 commented 6 years ago

Any thoughts on a work around.?

BartNetJS commented 6 years ago

I have a similar issue. I've opened vs-vode in a node-red folder, and the node-red extension shows my last flow instead of the one in the folder with a settings.js file

formulahendry commented 6 years ago

Hi @Grendel61 @BartNetJS , thanks for your feedback! Since we embed Node-RED in VS Code as a Node.js application, it seems not respect settings.js directly. I have release a new version to support config those settings as settings.js file. You could go to File->Preferences->Settings to config like below:

"vscode-node-red.settings.js": {
        "editorTheme": {
            "projects": {
                "enabled": true
            }
        }
    }
Grendel61 commented 6 years ago

Thanks for the change.