Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bilelmoussaoui/flatpak-vscode
Integrate Flatpak with VSCode
https://github.com/bilelmoussaoui/flatpak-vscode
flatpak flatpak-builder flatpak-vscode visual-studio-code-extension
Last synced: 14 days ago
JSON representation
Integrate Flatpak with VSCode
- Host: GitHub
- URL: https://github.com/bilelmoussaoui/flatpak-vscode
- Owner: bilelmoussaoui
- License: mit
- Created: 2020-10-31T14:17:46.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-18T18:27:49.000Z (3 months ago)
- Last Synced: 2024-10-13T08:08:19.228Z (28 days ago)
- Topics: flatpak, flatpak-builder, flatpak-vscode, visual-studio-code-extension
- Language: TypeScript
- Homepage:
- Size: 571 KB
- Stars: 91
- Watchers: 5
- Forks: 13
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- stars - bilelmoussaoui/flatpak-vscode
README
# VSCode + Flatpak Integration
![CI](https://github.com/bilelmoussaoui/flatpak-vscode/workflows/CI/badge.svg) ![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/bilelmoussaoui.flatpak-vscode)
[![Matrix Chat](https://img.shields.io/badge/Matrix-Chat-green)](https://matrix.to/#/#flatpak-vscode:gnome.org)A simple VSCode extension that detects a Flatpak manifest and offers various commands to build, run, and export a bundle.
## Download
- [Microsoft Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=bilelmoussaoui.flatpak-vscode)
- [Open VSX Registry](https://open-vsx.org/extension/bilelmoussaoui/flatpak-vscode)## Requirements
- `flatpak`
- `flatpak-builder`If you're using Fedora Silverblue, it is recommended to install `org.flatpak.Builder` through `flatpak install org.flatpak.Builder`. However, layering `flatpak-builder` through `rpm-ostree install flatpak-builder` is still possible. The extension would use the host `flatpak-builder` by default and fallback to the flatpak-installed `org.flatpak.Builder`.
## Commands
- Build: Initialize a Flatpak build, update the dependencies & build them. It also does a first build of the application.
- Build and Run: Build or rebuild the application then run it.
- Stop: Stop the currently running task.
- Run: Run the application.
- Update Dependencies: Download/Update the dependencies and builds them.
- Clean: Clean the Flatpak repo directory (`.flatpak/repo`) inside the current workspace.
- Runtime Terminal: Spawn a new terminal inside the specified SDK.
- Build Terminal: Spawn a new terminal inside the current build repository (Note that the SDKs used are automatically mounted and enabled as well).
- Show Output Terminal: Show the output terminal of the build and run commands.
- Show Data Directory: Show the data directory (`~/.var/app/`) for the active manifest.
- Select Manifest: Select or change the active manifest.## Integrations
Other extensions like `rust-analyzer` and `vala` mostly works better if it integrates with the
Flatpak runtime. Some integrations may prevent rebuilds or requiring to install dependencies in
the host. If you want to contribute on adding an integration, see [CONTRIBUTING](CONTRIBUTING.md).### [Meson Build](https://marketplace.visualstudio.com/items?itemName=mesonbuild.mesonbuild)
- Overrides `mesonbuild.configureOnOpen` to not ask to configure the build directory; this should be handled by Flatpak.
- Overrides `mesonbuild.buildFolder` to use the build directory used by Flatpak.
- Overrides `mesonbuild.mesonPath` to use the meson binary from the SDK.### [Rust Analyzer](https://marketplace.visualstudio.com/items?itemName=matklad.rust-analyzer)
- Overrides `rust-analyzer.server.path` and `rust-analyzer.runnables.command` to use the SDK's rust-analyzer and cargo binaries respectively. This is to avoid requiring build dependencies to be installed in the host.
- Overrides `rust-analyzer.files.excludeDirs` to set rust-analyzer to ignore `.flatpak` folder.### [Vala](https://marketplace.visualstudio.com/items?itemName=prince781.vala)
- Overrides `vala.languageServerPath` to use the SDK's Vala Language Server.
## Contributing
Click [here](CONTRIBUTING.md) to find out how to contribute.