3.4.2.2. ワークスペース設定を使用した VS Code 拡張の追加
前提条件
- Red Hat CodeReady Workspaces の実行中のインスタンス。Red Hat CodeReady Workspaces のインスタンスをインストールするには、OpenShift Container Platform への CodeReady Workspaces のインストール について参照してください。
- Red Hat CodeReady Workspaces https://access.redhat.com/documentation/en-us/red_hat_codeready_workspaces/2.4/html-single/end-user_guide/index#creating-and-configuring-a-new-workspace_crw のこのインスタンスで定義された既存のワークス ペース。
手順
ワークスペース設定を使用して VS Code 拡張機能を追加するには、以下を実行します。
- Dashboard の Workspaces タブをクリックして、プラグインを追加するワークスペースを選択します。Workspace <workspace-name> ウィンドウが開き、ワークスペースの詳細が表示されます。
- devfile タブをクリックします。
components セクションを見つけ、以下の構造で新規エントリーを追加します。
- type: chePlugin id:
- type: chePlugin id:1 Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- ID フォーマット: <publisher>/<plug-inName>/<plug-inVersion>
CodeReady Workspaces は、他のフィールドを新規コンポーネントに自動的に追加します。
または、専用の参照フィールドを使用して、GitHub でホストされる
meta.yamlファイルにリンクできます。- type: chePlugin reference:
- type: chePlugin reference:1 Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
https://raw.githubusercontent.com/<username>/<registryRepository>/v3/plugins/<publisher>/<plug-inName>/<plug-inVersion>/meta.yaml
- 変更を有効にするには、ワークスペースを再起動します。