Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions website/docs/en/guide/ide-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ To recommend the extension to team members who open the repository, add it to th
}
```

### Custom installation path

By default, the extension looks for `rstack` in the workspace folder’s `node_modules` and then searches parent directories. If the `rstack` package is installed elsewhere, use `rstack.rstackCli.packagePath` to specify its location. For example:

```json title=".vscode/settings.json"
{
"rstack.rstackCli.packagePath": "infra/node_modules/rstack"
}
```

Set the path to the `rstack` package directory or its `package.json` file. Relative paths are resolved from the workspace folder. Absolute paths and the `${workspaceFolder}` placeholder are also supported.

## Features

### Linting
Expand Down
12 changes: 12 additions & 0 deletions website/docs/zh/guide/ide-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ Rstack 目前通过 [Rstack 扩展](https://github.com/rstackjs/rstack-editor)
}
```

### 自定义安装路径 \{#custom-installation-path}

默认情况下,扩展会先在工作区目录的 `node_modules` 中查找 `rstack`,然后向父目录逐级查找。如果 `rstack` 包安装在其他位置,可以通过 `rstack.rstackCli.packagePath` 指定安装路径,例如:

```json title=".vscode/settings.json"
{
"rstack.rstackCli.packagePath": "infra/node_modules/rstack"
}
```

路径可以指向 `rstack` 包目录或其中的 `package.json` 文件。相对路径以工作区目录为基准,也支持绝对路径和 `${workspaceFolder}` 占位符。

## 支持能力 \{#features}

### 代码检查 \{#linting}
Expand Down
Loading