aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/gh_actions_ls.lua
Commit message (Collapse)AuthorAgeFilesLines
* feat(gh_actions_ls): handle "actions/readFile" request #4046Julio GarcĂ­a2025-09-011-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/lttb/gh-actions-language-server/issues/5 Implement a custom handler for the "actions/readFile" request in the gh_actions_ls config. This handler reads the requested file from disk and returns its contents if the file is readable. This improves integration with the GitHub Actions language server by supporting file content requests. Here is how the vscode github actions extension sets the handler: https://github.com/github/vscode-github-actions/blob/main/src/workflow/languageServer.ts#L68 TODO: We could also provide an implementation for populating the init_options properly, docs currently suggest an empty table. For the lsp to work properly, it should be populated with this "shape": init_options = { sessionToken = session_token, repos = { { id = 1008200293, owner = org_name, name = repo_name, workspaceUri = "file://" .. vim.fn.getcwd(), organizationOwned = true, }, }, },
* fix: separate type annotation from `@brief` docstring #4017Igor Lacerda2025-08-191-0/+1
|
* chore: add type annotation for configsIgor2025-08-181-0/+1
|
* fix(gh_actions_ls): use `root_dir`, add `init_options` #3857Chris Grieser2025-05-211-7/+14
| | | | | 1. Replace `root_markers` and `workspace_required = true` with a `root_dir` function that checks the file is located in the correct location. This prevents some edge cases where the LSP would still attach to non-workflow files. This also makes unnecessary to use a `yaml.github` filetype, [as the readme of the lsp describes](https://github.com/lttb/gh-actions-language-server?tab=readme-ov-file#add-yamlgithub-filetype-detection). 2. add an empty `init_options` table, since such a table is apparently needed by the LSP: https://github.com/neovim/nvim-lspconfig/pull/3713#issuecomment-2857394868
* docs: cleanupJustin M. Keyes2025-04-181-14/+14
| | | | | - brief should live at the top of each file - fix indentation for some docs
* fix(gh_actions_ls): workspace_required=true #3722Chris Grieser2025-04-141-1/+3
| | | | see https://github.com/neovim/nvim-lspconfig/pull/3713#issuecomment-2801407962 (Note that `workspace_required` requires nightly or the upcoming nvim 0.11.1)
* feat(gh_actions_ls): add `vim.lsp.config` support #3713Chris Grieser2025-04-131-0/+31