Skip to content

Commit

Permalink
docs: update README about usages
Browse files Browse the repository at this point in the history
  • Loading branch information
strozw committed Sep 24, 2024
1 parent 2783c64 commit 337a04c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ local lspconfig = require("lspconfig")

lspconfig.github_actions.setup({
--@see https://github.com/actions/languageservices/blob/main/languageserver/src/initializationOptions.ts#L4-L31
init_params = {
sessionToken = "Your GitHub PAT (needed scopes is repo & workflow)",
logLevel = 3 -- Debug: 0, Info: 1, Warn: 2, Error: 3, Default: nil
}
init_params = {}
})
```

> [!CAUTION]
> At this time, we have not investigated how to obtain the `settionToken` and `repos` to be passed to `init_params`, so if you use the default values, auto-completion will not work for global `env` and `vars`, and for custom action `args` etc.
## Credits

- [@actions/languageserver](https://github.com/actions/languageservices/tree/main/languageserver)
Expand Down

0 comments on commit 337a04c

Please sign in to comment.