Closed ssaavedra closed 5 years ago
Hi @ssaavedra
That sounds like a great addition. Would you mind opening a pull request for that? 🙂
Adding the setting should be possible by extending the Dafny Settings Interface and adding it to the package.json of the client part.
Thanks for the cue, I just opened #42 :wink:
I have no idea about VSCode extensions (I've using the editor for a couple of hours, have been using Emacs and still doing so), so please feel free to review any issues.
Also, it seems that configuration changes are not picked up automatically by the extension and that it instead needs to be reloaded (by means of > Reload window
). I suppose that is a different issue regarding the onDidChangeConfiguration event (from what I has just been reading).
Since you just opened #43 which is the only remaining question here (now that #42 is merged), I think this issue can be now closed :)
Great, thanks for your contribution! Your changes are included in the newest release (v0.16.0) which should be public in a couple of minutes 😊
I opened a new issue #43 to address the configuration reloading (seems that it was not properly implemented all along...)
It would be great to be able to configure at the editor's settings.json the parameters that are passed to DafnyServer on verify.
Currently this is implemented on
server/backend/dafny/dafnyServer.js
as:I'm manually changing on the extension code the
args: []
, in my case to addargs: ['/vcsLoad:1']
, but it would be great if that was exported to be user-configurable.