Skip to content

Viperinius/vscode-ptxdist

Repository files navigation

VS Code PTXdist

Integrates PTXdist commands in VS Code.

This extension is still WIP.

Test status MIT license Current release

Features

Adds a new view to the side bar from which you can

  • change the selected PTXdist menuconfig, platformconfig and toolchain
  • execute common PTXdist commands such as images, clean or targetinstall

This extension also provides language features / syntax highlighting for PTXdist menu files (.in) as well as snippets for PTXdist rule files (.make).

Requirements

You need to have PTXdist installed... obviously. This also means that this extension is only supported on Linux.

Extension Settings

This extension contributes the following settings:

  • vscode-ptxdist.current.menuconfig: contains the currently selected PTXdist menuconfig
  • vscode-ptxdist.current.platformconfig: contains the currently selected PTXdist platformconfig
  • vscode-ptxdist.current.toolchain: contains the currently selected toolchain
  • vscode-ptxdist.workspaceRoot: base path of the workspace (to determine available configs)
  • vscode-ptxdist.search.configs.restrict: only search for PTXdist configs using the default path below the workspace root
  • vscode-ptxdist.presets.favouritePackages: add package names to this list to use them with PTXdist commands
  • vscode-ptxdist.presets.favouriteCommands: WIP, has no effect yet

Build

If you want to create an extension package to install it, follow these steps:

Install the packaging tool:

npm install -g @vscode/vsce

Inside the vscode-ptxdist directory, trigger a package build:

vsce package