mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
09b766c502
* daml visualize with lsp * Working command execution with ide * Have to call visual now * Split function * Wrong constuctions of world or the module * Working almost * Have to gather all modules * Now works end to end. Considers all the daml files in workspace * removing unused code * removing unused dependency * Removing unused JS code and better error message * Function re-arrange * Removing us of heaad, instead handling error * Format and rearranging * Removing unused assignment * Formating everything * missed dependency * Generating visual only for the file that is open * Using modules from generated pkg, error messages * Bringing back the commands * Names and formating * consitent error message * Removing Just pattern match using _use now * package * Moving visual to a different module * Function simple * Removing Rule as it increases memeory consumption * TODO LSP error * White space * Fmt things * Handling if command was executed for a non daml files * Better error message * debugging * Fix executeCommand * Adding tests to execute command. Thanks moritz * Unwanted lines * Spaces and comment * 3rd time ? * Spaces are white * assert equal instead of assert bool |
||
---|---|---|
.. | ||
images | ||
snippets | ||
src | ||
syntaxes | ||
test | ||
.gitignore | ||
.vscodeignore | ||
BUILD.bazel | ||
ci-tests.sh | ||
daml12.configuration.json | ||
daml.configuration.json | ||
exclude-list.txt | ||
extension_guide.md | ||
Makefile | ||
package.json | ||
README.md | ||
tsconfig.json | ||
vsc-extension-quickstart.md | ||
yarn.lock |
DAML Studio
DAML Studio extends Visual Studio Code with the following DAML-specific features:
- DAML syntax highlighting
- Real-time feedback on parse, name resolution, type-checking and Scenario interpretation errors and viewer for the resulting ledger
- Jumping to and peeking at the definition of referenced toplevel functions
- Type-information on hover
- Renaming of symbols
- DAML snippet support
- Command to generate visualization for DAML project via command palette ctrl + p.
Please note that this will only install the VSCode extension. Full use of the above features will also require that you have a working DAML SDK installed, which you can get with:
curl -s https://get.daml.com | sh
To see graphs from daml.visualize
command please install Graphivz plugin.
For more information on DAML please see docs.daml.com.
Troubleshooting
The DAML language server log output is available under the "Output" panel (View->Output). Select "DAML Language Server" from the dropdown in the panel to see the log.
Debugging
Run make
then open this directory in Visual Studio Code. Then click Debug ->
Start Debugging to run the extension in Debugging mode.