Describe the bug
When using github-actions.use-enterprise: true with a configured github-enterprise.uri (e.g. https://my-company.ghe.com), the links generated for reusable workflows in the uses: clause incorrectly point to github.com instead of the Enterprise instance.
To Reproduce
Steps to reproduce the behavior:
- Configure settings:
\"github-enterprise.uri\": \"https://my-company.ghe.com\",
\"github-actions.use-enterprise\": true
- Open a workflow file.
- Add a reusable workflow reference:
uses: my-org/shared-workflows/.github/workflows/workflow.yml@v1
- Hover or Click the link on the
uses path.
Expected behavior
The link should open https://my-company.ghe.com/my-org/shared-workflows/blob/v1/.github/workflows/workflow.yml.
Actual behavior
The link opens https://github.com/my-org/shared-workflows/tree/v1/.github/workflows/workflow.yml.
Additional Context
The extension correctly passes gitHubApiUrl to the language server initializationOptions in src/workflow/languageServer.ts, but it appears the link generation logic in the language server defaults to github.com
Describe the bug
When using
github-actions.use-enterprise: truewith a configuredgithub-enterprise.uri(e.g.https://my-company.ghe.com), the links generated for reusable workflows in theuses:clause incorrectly point togithub.cominstead of the Enterprise instance.To Reproduce
Steps to reproduce the behavior:
usespath.Expected behavior
The link should open
https://my-company.ghe.com/my-org/shared-workflows/blob/v1/.github/workflows/workflow.yml.Actual behavior
The link opens
https://github.com/my-org/shared-workflows/tree/v1/.github/workflows/workflow.yml.Additional Context
The extension correctly passes
gitHubApiUrlto the language serverinitializationOptionsinsrc/workflow/languageServer.ts, but it appears the link generation logic in the language server defaults togithub.com