daml/compiler/daml-extension
Sofia Faro 14b062ce40
Syntax highlighting for exceptions. (#9318)
* Syntax highlighting for exceptions.

* Add `exception`, `try`, and `catch` as keywords.
* Add `throw` as function name.

changelog_begin
changelog_end

* Updated wrong language definition.

* Add 'message'
2021-04-06 09:45:12 +01:00
..
images Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
snippets Remove version header from vscode snippet (#7452) 2020-09-21 16:59:47 +02:00
src Daml case and logo (#8433) 2021-01-08 12:50:15 +00:00
syntaxes Syntax highlighting for exceptions. (#9318) 2021-04-06 09:45:12 +01:00
test update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01: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 update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01:00
ci-tests.sh update copyright notices for 2021 (#8257) 2021-01-01 19:49:51 +01: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 rename master to main (#8245) 2020-12-27 14:19:07 +01:00
README.md Daml case and logo (#8433) 2021-01-08 12:50:15 +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 Bump node-fetch from 2.6.0 to 2.6.1 in /compiler/daml-extension (#7389) 2020-09-14 11:44:15 +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.

Debugging

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