daml/compiler/daml-extension
Moritz Kiefer 25c0052bce
Fix VSCode extension (#2117)
There were two issues:

1. VSCode changed their packaging so we now need to depend on
`@types/vscode`. This broke `yarn run compile`. I have no idea why
this did not cause an error in the Bazel build. Presumably the giant
tsconfig that it generates was doing something different.

2. We excluded src/webview.js in .vscodeignore which means that it was
not included in `vsce package` and thereby also not in the extension
included in the marketplace.
2019-07-12 11:09:37 +02:00
..
images Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
snippets Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
src Report progress in VSCode (#2112) 2019-07-11 17:49:23 +02:00
syntaxes Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
test Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02: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 Fix VSCode extension (#2117) 2019-07-12 11:09:37 +02:00
check-json.py Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
ci-tests.sh Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02: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 Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
Makefile Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02:00
package.json Fix VSCode extension (#2117) 2019-07-12 11:09:37 +02:00
README.md Move code in daml-tools outside of daml-foundations (#2033) 2019-07-08 11:40:48 +02: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 Fix VSCode extension (#2117) 2019-07-12 11:09:37 +02: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

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

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.