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

Ability to open class file by clicking on class reference #743

Open
voiprodrigo opened this issue Apr 19, 2021 · 2 comments
Open

Ability to open class file by clicking on class reference #743

voiprodrigo opened this issue Apr 19, 2021 · 2 comments

Comments

@voiprodrigo
Copy link

Hi,

One of the things I'm missing the most productivity-wise is the ability to click on a class name to open the class file. With a large repo with a lot of modules, it would save a lot of scrolling and searching.
I tried to check if this would be possible somehow, but without success.

Thanks.

@jpogran
Copy link
Contributor

jpogran commented Apr 20, 2021

Hi @voiprodrigo , can you check that the following is true for the session you are trying to do this in:

  • You must be opening a Folder (aka workspace) in VSCode, not a single file
  • You must be opening a Folder either at the root of, or inside of, the control repo. Not outside of it.
  • The control repo must contain an environment.conf
  • The control repo must NOT contain a metadata,json file. If you have both, the extension will assume it's inside a module (not a control repo)

@voiprodrigo
Copy link
Author

Hi @jpogran

What would a "control repo" need to be for this to work?

I'm not using control repo "r10k" style. It's a monolithic repo and there is no Puppetfile. Structure is git root folder / puppet / {manifests,modules}

I can surely add an environment.conf file at the root or in /puppet/. Even a Puppetfile.

What do you think could work for my case?

Btw, should I configure vs code for puppet agent or for PDK?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants