daml/compiler/daml-extension
Moisés Ackerman 9fb7f11316
Replace more instances of 'scenario' with 'script' (#13651)
* Replace more instances of 'scenario' with 'script'

changelog_begin
* Remove Daml Studio 'scenario' snippet
* Add Daml Studio 'script' snippet
* Update documentation for 'daml test' command
changelog_end

* remove 'test' snippet

changelog_begin
* Remove Daml Studio 'test' snippet
changelog_end
2022-04-27 17:49:32 +02:00
..
images Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
snippets Replace more instances of 'scenario' with 'script' (#13651) 2022-04-27 17:49:32 +02:00
src Handle absence of table view in Daml Studio (#13245) 2022-03-10 11:56:06 +01:00
syntaxes Replace more instances of 'scenario' with 'script' (#13651) 2022-04-27 17:49:32 +02:00
test Add autoformatting to ts bindings & navigator frontend (#12693) 2022-02-11 11:44:52 +00:00
.gitignore Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
.vscodeignore Fix VSCode extension (#2117) 2019-07-12 11:09:37 +02:00
BUILD.bazel Upgrade vsce and markdown-it (#12431) 2022-01-17 13:40:42 +00:00
ci-tests.sh update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
daml12.configuration.json Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
daml.configuration.json Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
exclude-list.txt Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
extension_guide.md Daml case and logo (#8433) 2021-01-08 12:50:15 +00:00
Makefile Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
package.json Address remaining issues about CVE-2021-44906 (#13382) 2022-03-23 11:06:31 +00:00
README.md Extend VSCode extension troubleshooting section (#12154) 2021-12-15 13:56:30 +00:00
tsconfig.json Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
vsc-extension-quickstart.md Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
yarn.lock Address remaining issues about CVE-2021-44906 (#13382) 2022-03-23 11:06:31 +00:00

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.

To see the LSP messages sent from and to the client (the vscode extension) change your VSCode workspace settings in .vscode/settings.json to the following:

{
   "daml-language-server.trace.server": "verbose"
}

The logs are then included in the Daml Language Server logs.

Debugging

Run make then open this directory in Visual Studio Code. Then click Debug -> Start Debugging to run the extension in Debugging mode.