Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/owtaylor/toolbox-vscode
Toolbox Visual Studio Code integration
https://github.com/owtaylor/toolbox-vscode
Last synced: 5 days ago
JSON representation
Toolbox Visual Studio Code integration
- Host: GitHub
- URL: https://github.com/owtaylor/toolbox-vscode
- Owner: owtaylor
- License: apache-2.0
- Created: 2021-03-15T16:01:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-03T20:29:56.000Z (4 months ago)
- Last Synced: 2024-08-01T13:17:44.027Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 69.3 KB
- Stars: 281
- Watchers: 11
- Forks: 22
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: COPYING
Awesome Lists containing this project
- awesome_atomic - Toolbox Visual Studio Code Integration - Toolbox Visual Studio Code integration (Integration Resources)
README
Toolbox Visual Studio Code integration
======================================This repository is intended for scripts and hooks to integrate [Toolbox](https://github.com/containers/toolbox) with [Visual Studio Code](https://code.visualstudio.com).
In particular, it provides a `code.sh` script that:
* If necessary, prompts to install the Flatpak of Visual Studio Code
* If necessary, configures the current toolbox container to work with the [Remote Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) Visual Studio Code extension.
* Opens a VSCode window using the remaining command line argumentsInstallation
------------```
git clone https://github.com/owtaylor/toolbox-vscode.git
cd toolbox-vscode
[ -d ~/.local/bin ] || mkdir ~/.local/bin
ln -s "$PWD/code.sh" ~/.local/bin/code
```Usage
-----```
toolbox enter
cd ~/Source/myproject
code .
```To recreate the container configuration (perhaps after updating this repository)
```
code --toolbox-reset-configuration .
```Credits
-------
The configuration that `code.sh` sets up was largely figured out by Laércio de Sousa ([lbssousa](https://github.com/lbssousa))Related issues
-----
* Request for Visual Studio Code support in Toolbox [containers/toolbox#628](https://github.com/containers/toolbox/issues/628)
* podman/docker should work out of the box in the Flatpak: [flathub/com.visualstudio.code#203](https://github.com/flathub/com.visualstudio.code/issues/203)
* Multiple invocations of the Flatpak should share a process without hacks: [flathub/com.visualstudio.code#210](https://github.com/flathub/com.visualstudio.code/issues/210)
* Ability customize the container name in the Visual Studio Code UI: [microsoft/vscode-remote-release#4053](https://github.com/microsoft/vscode-remote-release/issues/4053)