Skip to content
代码片段 群组 项目
未验证 提交 c5b98f59 编辑于 作者: Brendan Lynch's avatar Brendan Lynch 提交者: GitLab
浏览文件

Merge branch 'ch_407-yaml-extension' into 'master'

Add YAML extension schema setup to Web IDE docs

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/183961



Merged-by: default avatarBrendan Lynch <blynch@gitlab.com>
Approved-by: default avatarBrendan Lynch <blynch@gitlab.com>
Reviewed-by: default avatarBrendan Lynch <blynch@gitlab.com>
Co-authored-by: default avatarCindy Halim <chalim@gitlab.com>
No related branches found
No related tags found
2 合并请求!3031Merge per-main-jh to main-jh by luzhiyuan,!3030Merge per-main-jh to main-jh
......@@ -295,6 +295,28 @@ To uninstall an extension in the Web IDE:
1. From the list of installed extensions, select the extension you want to uninstall.
1. Select **Uninstall**.
### Extension setup
Web IDE extensions may require additional configuration to work with your projects.
#### YAML language support extension
To validate YAML files that match specified patterns, use
the Red Hat [YAML](https://open-vsx.org/extension/redhat/vscode-yaml) extension.
1. [Install the YAML extension](#install-an-extension).
1. Configure your schema:
1. On the top menu bar, select **File > Preferences > Settings**, or press
<kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> and enter `Preferences: Open Settings (JSON)`.
1. In the `settings.json` file, add your schema configuration. For local schema paths, add the following prefix: `gitlab-web-ide://~/`. For example:
```json
"yaml.schemas": {
"gitlab-web-ide://~/<path-to-local-schema>.json": ["*.yaml", "*.yml"]
}
```
## Related topics
- [GitLab Duo Chat in the Web IDE](../../gitlab_duo_chat/_index.md#use-gitlab-duo-chat-in-the-web-ide)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册