Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect file paths and correctly link/reference target #559

Open
siegenthalerroger opened this issue Jul 19, 2021 · 1 comment
Open

Detect file paths and correctly link/reference target #559

siegenthalerroger opened this issue Jul 19, 2021 · 1 comment

Comments

@siegenthalerroger
Copy link

Is your enhancement related to a problem? Please describe.

I am frustrated when I am referencing a file in a yaml and I cannot verify if the path is correct by cmd+click-ing on the path to be taken to target. Further in complex k8s deployments it would be useful to be able to jump between nested folders using the defined kustomize resources.

Describe the solution you would like

If I define a string value as file:// vscode correctly references and links to the target resource. I would expect that when a Schema is known, vscode-yaml would also link a path, even without the file:// URI-prefix.

Describe alternatives you have considered

I have explored explicitely defining a file:// prefix, however this is not compatible with k8s kustomize and would add a large overhead to every file.

Additional context

image

https://github.com/kubernetes/kubectl/blob/master/docs/book/pages/reference/kustomize.md#resources

@jdfm
Copy link

jdfm commented Aug 31, 2021

I can confirm that this is an issue with .gitlab-ci.yml files as well, even though the values in the schema are defined with format: uri-reference (link) and some of the files being referenced are available locally, I'm not able to cmd + click (on macos) to navigate to those files at all within VS Code + vscode-yaml.

bleach31 pushed a commit to bleach31/vscode-yaml that referenced this issue Jan 25, 2022
it helps to discover this functionality on yaml files which doesn't have
a schema

Signed-off-by: Aurélien Pupier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants