ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-gh-actions

by sublimelsp ST4

GitHub Actions workflows language server provided through @actions/languageserver

Details

Installs

  • Total 43
  • Win 7
  • Mac 25
  • Linux 11
Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23
Windows 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1
Linux 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

LSP-gh-actions

GitHub Actions workflows language server provided through @actions/languageserver.

It provides schema validation for the workflow and action files (like LSP-yaml) but also, quoting from actions/languageservice:

  • value providers which can dynamically add values to the schema, for example, the list of available labels for a repository when validating runs-on.
  • context providers which can dynamically provide available contexts used in expressions. For example, the contents of the github.event context for a given workflow file.

Installation

  • Install LSP and LSP-gh-actions from Package Control.
  • Install YamlPipelines package. It provides dedicated syntaxes for GitHub workflows that this server depends on by targeting views with source.yaml.pipeline.github-actions scope.
  • Restart Sublime.

[!NOTE] Package expects the gh CLI utility to be available on the PATH to get a GitHub token from. Without it some functionality won't work.

Configuration

If you have LSP-yaml installed, you don't want it running for GitHub workflows if you are using LSP-gh-actions. To achieve that, open Preferences: LSP-yaml Settings from the Command Palette and modify the selector to exclude source.yaml.pipeline.github-actions scope. For example:

@@ -61 +61 @@
-       "selector": "(source.yml | source.yaml) - (source.yaml.go | source.yaml.helm | source.yaml.esphome)",
+       "selector": "(source.yml | source.yaml) - (source.yaml.go | source.yaml.helm | source.yaml.esphome | source.yaml.pipeline.github-actions)",

Open configuration file using command palette with Preferences: LSP-gh-actions Settings command or opening it from the Sublime menu (Preferences > Package Settings > LSP > Servers > LSP-gh-actions).