firefox-devtools / firefox-devtools/vscode-firefox-debug
pathMapping does not work when launch configuration in user settings.json and project in devcontainer
- Ngôn ngữ chính
- TypeScript
- Star
- 447
- Fork
- 76
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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`.
Hướng dẫn đóng góp
Hướng nghiên cứu
Tái hiện vấn đề với một cấu hình khởi chạy trong settings.json của cài đặt người dùng và dự án trong một devcontainer, sau đó so sánh với trường hợp launch.json hoạt động. Theo dõi cách pathMappings được tải và phân giải, đồng thời xác minh rằng ánh xạ chung hoạt động mà không cần đường dẫn vscode-remote được tạo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript, vscode
- Lĩnh vực
- developer-experience, devtools
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100