flathub / flathub/com.visualstudio.code

Can't use host shell with launch.json, which makes node debugging impossible

Abierto
#317 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Shell
Estrellas
217
Forks
82
Merge medio
1 d 7 h
PR fusionados (30 d)
1

Descripción

I have config keys below in settings.json

```json
"terminal.integrated.defaultProfile.linux": "toolbox",
"terminal.integrated.profiles.linux": {
"toolbox": {
"path": "/usr/bin/flatpak-spawn",
"args": ["--host", "toolbox", "enter"]
}
}
```

But these config won't be applied to debugging environment, seems VSCode ignored the change of default shell in launch.json. Without the toolbox environment, node debugging is impossible because there's no "node" in the PATH of VSCode flatpak and SDK.

![ANrw.jpg](http://fars.ee/ANrw.jpg)
*Tips: "没有那个文件或目录" means "No such file or directory" in English*

launch.json

```json
{
"configurations": [
{
"name": "Electron Main",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/dist/main.js",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron"
}
]
}
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.