firefox-devtools / firefox-devtools/vscode-firefox-debug
pathMapping does not work when launch configuration in user settings.json and project in devcontainer
- 主要言語
- TypeScript
- スター
- 447
- フォーク
- 76
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
This finds `pathMapping` when defined in `launch.json`. However it does not work, when I place it under the `launch` key in my user `settings.json`:
```
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Firefox Debugger",
"type": "firefox",
"request": "launch",
"reAttach": true,
"profile": "dev",
"keepProfileChanges": true,
"url": "http://localhost:8080/",
"skipFiles": [
"${workspaceFolder}/app/node_modules/**"
],
"pathMappings": [
{
"url": "webpack:///src",
"path": "${workspaceFolder}/app/src"
}
]
}
]
}
```
The extension offers to do a `pathMapping` like the following. This actually works, but it is not generic.
```
{
"url": "webpack:///src/components/Component.vue",
"path": "vscode-remote://dev-container%2B2f686f6d652f6272616e64732f7265706f732f626574612d617070/project/app/src/components/Component.vue"
},
```
### Expected
The launch configuration should also work in `settings.json`.
コントリビューションガイド
調査の方向性
ユーザー設定の settings.json に起動構成を指定し、プロジェクトを devcontainer に配置して問題を再現し、動作する launch.json のケースと比較します。pathMappings がどのように読み込まれ、解決されるかを追跡し、生成された vscode-remote パスなしで汎用マッピングが機能することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript, vscode
- 領域
- developer-experience, devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100