You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is problematic since the user will inevitably change their configuration file throughout the course of working on a project.
(Optional): Suggest A Solution
We should probably load the configuration every time we use it or use a file watcher like chokidar in order to update our configuration in memory every time flow.json changes.
However, I am strongly in favour of leaving the flow.json parsing to the language server side of things as we don't really need to be using it in the client at all (See #313). If this were done, this issue would be irrelevant.
(Optional): Context
Issues when changing flow.json keys/accounts & trying to restart emulator.
The text was updated successfully, but these errors were encountered:
Instructions
Issue To Be Solved
The configuration is only read from the disk the first time the
loadConfig
is called and then stored globally.vscode-cadence/extension/src/emulator/local/flowConfig.ts
Lines 56 to 68 in 67ce760
This is problematic since the user will inevitably change their configuration file throughout the course of working on a project.
(Optional): Suggest A Solution
We should probably load the configuration every time we use it or use a file watcher like
chokidar
in order to update our configuration in memory every timeflow.json
changes.However, I am strongly in favour of leaving the
flow.json
parsing to the language server side of things as we don't really need to be using it in the client at all (See #313). If this were done, this issue would be irrelevant.(Optional): Context
Issues when changing flow.json keys/accounts & trying to restart emulator.
The text was updated successfully, but these errors were encountered: