Skip to content

Commit

Permalink
Update docs on vscode workspace settings (#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
muzimuzhi authored Nov 8, 2024
1 parent 6f0413a commit 003f4d6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
4 changes: 1 addition & 3 deletions runtime/getting_started/setup_your_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ following configuration:

```json
{
"deno.enable": true,
"deno.lint": true,
"deno.unstable": true
"deno.enable": true
}
```

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed runtime/reference/images/workspace_folder_config.png
Binary file not shown.
15 changes: 6 additions & 9 deletions runtime/reference/vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,17 @@ most direct way to do this is to use the **Deno: Initialize Workspace
Configuration** from the VS Code
[command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette).

![screenshot of the command palette with Deno: Initialize Workspace Configuration](./images/command_palette.png)]
![screenshot of the command palette with Deno: Initialize Workspace Configuration](./images/command_palette.png)

This will activate a helper which will ask if you want to enable linting and the
Deno unstable APIs for the project. This command will instruct VS Code to store
these settings in the workspace configuration (your workspace root
`.vscode/settings.json`). Once the helper is finished, you will get a
notification that Deno is setup for the project.
This command will add `"deno.enable": true` to the workspace configuration (your
workspace root `.vscode/settings.json`). Once the command is finished, you will
get a notification that Deno workspace is initialized.

![screenshot of the .vscode/setting.json configured as a workspace folder](./images/workspace_folder_config.png)
![screenshot of the notification 'Deno workspace initialized'](./images/vscode_workspace_initialized.png)

These settings (and other settings) are available via the VS Code
[settings](https://code.visualstudio.com/docs/getstarted/userinterface#_settings)
panel. In the panel the setting is **Deno: Enable** and when manually editing
the JSON, the setting is `deno.enable`.
panel. In the panel the setting is **Deno: Enable**.

:::note

Expand Down

0 comments on commit 003f4d6

Please sign in to comment.