Skip to content

Commit

Permalink
chore: release vscode extension 1.7.1 (#1093)
Browse files Browse the repository at this point in the history
* chore: upgrade lsp vscode extension dependencies

* chore: update vscode extension description, keywords and readme
  • Loading branch information
hugocaillard authored Jul 20, 2023
1 parent b28d5e9 commit f0295f6
Show file tree
Hide file tree
Showing 9 changed files with 343 additions and 351 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/clarinet-files/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bitcoin = { version = "0.29.2", optional = true }

# wasm
js-sys = { version = "0.3", optional = true }
serde-wasm-bindgen = { version = "0.4", optional = true }
serde-wasm-bindgen = { version = "0.5", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
wasm-bindgen-futures = { version = "0.4", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion components/clarity-lsp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ clarinet-deployments = { path = "../clarinet-deployments", default-features = fa
# WASM
console_error_panic_hook = { version = "0.1", optional = true }
js-sys = { version = "0.3", optional = true }
serde-wasm-bindgen = { version = "0.4", optional = true }
serde-wasm-bindgen = { version = "0.5", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
wasm-bindgen-futures = { version = "0.4", optional = true }
web-sys = { version = "0.3", features = ["console"], optional = true }
Expand Down
16 changes: 15 additions & 1 deletion components/clarity-vscode/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Clarity for Visual Studio Code

Clarity is a **decidable** Smart Contract language that optimizes for predictability and security. This VS Code extension brings essential features to write safe and clean Clarity code: auto-completion, linting, safety checks, debugger and more.
Clarity is a **decidable** Smart Contract language that optimizes for predictability and security. It's used on the Stacks blockchain to build decentralized applications on Bitcoin.

This VS Code extension brings essential features to write safe and clean Clarity code: auto-completion, documentation, go-to definition, linting, safety checks, debugger and more.

![screenshot](https://raw.githubusercontent.com/hirosystems/clarinet/develop/components/clarity-vscode/docs/images/screenshot.png)

Expand All @@ -10,13 +12,25 @@ You can install the latest release of the extension directly from VS Code or fro

## Features

### Documentation on hover

Access all of Clarity documentation right in your editor by hovering functions and keywords.

![documentation screenshot](https://raw.githubusercontent.com/hirosystems/clarinet/develop/components/clarity-vscode/docs/images/documentation.png)

### Auto Complete Functions

This feature enables you to start typing a function name, and then have the editor automatically suggest auto-completion with the documentation related to the suggestion.
When you select a function, the extension adds the necessary parentheses around it and puts placeholders in the arguments of the function.

![autocomplete gif](https://raw.githubusercontent.com/hirosystems/clarinet/develop/components/clarity-vscode/docs/images/autocomplete.gif)

### Go-to definition

Easily find functions, constants and variables declarations in the same contract or in contract calls.

![go-to definition screenshot](https://raw.githubusercontent.com/hirosystems/clarinet/develop/components/clarity-vscode/docs/images/documentation.png)

### Resolve contract-call targeting local contracts

The extension auto-completes local contract calls as well.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f0295f6

Please sign in to comment.