Code Monkey home page Code Monkey logo

flatpak-vscode's Introduction

VSCode + Flatpak Integration

CI Visual Studio Marketplace Installs Matrix Chat

A simple VSCode extension that detects a Flatpak manifest and offers various commands to build, run, and export a bundle.

Download

Requirements

  • flatpak

  • flatpak-builder

    If you're using Fedora Silverblue, you will have to layer flatpak-builder as it is no longer part of the base image. You can use something like rpm-ostree install 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.
  • 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.

  • 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.
  • Overrides rust-analyzer.server.path and rust-analyzer.runnables.overrideCargo 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.runnables.cargoExtraArgs to set cargo's --target-dir to _build/src. Identical target directory must be set on your build system to prevent rebuilding when running rust-analyzer runnables.
  • Overrides rust-analyzer.files.excludeDirs to set rust-analyzer to ignore .flatpak folder.
  • Overrides vls.languageServerPath to use the SDK's Vala Language Server.

Contributing

Click here to find out how to contribute.

flatpak-vscode's People

Contributors

bilelmoussaoui avatar seadve avatar hofer-julian avatar burniintree avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.