1) The first thing you will probably want to do is turn yarn.runInTerminal
to true, so that it executes commands in the Terminal view instead of the console.
2) Next, you could keep the package.json file in question open when executing yarn start
– which should force it to work on the active file. Alternatively, you could use the yarn.packageJson
preference – set it to the location of your package.json file, relative to the project root.
To change settings, go to the Preferences > CodeMix > User Settings page.
Please see https://github.com/gamunu/vscode-yarn#settings for more of the settings you can make for the yarn extension. I must admit that I tried the yarn.packageJson
setting myself, but for some reason with my test project, it didn’t seem to work – let me know if you have better luck with this setting.