Visual Studio Code: Extensions to open a script file referred through "source" and show a diagram of them

Hello Friends

For simplicity purposes consider the following code for the child.sh file:

#! /bin/bash

# shellcheck source=/dev/null
source "$HOME/path/parent.sh"

something(){
 ...
}

...

For Visual Studio Code, according with your own experience and use, I need extensions to accomplish the following goals:

  • Open the parent.sh file is if done Ctrl + Click in the source "$HOME/path/parent.sh" line
  • Open a Dialog Window as a popup if is done Ctrl + mouse hover over the source "$HOME/path/parent.sh" line
  • Show a hierarchy diagram of the 2 script files involved

Thanks in advance

1 Like

Do you really have so many such situations that it’s worth writing your own extension for this? I cannot imagine, TBH.

Unfortunately, I cannot help. My advice I can give: Look at others and how they have solved similar things.

¡Mucha suerte!

2 Likes

TBH = to be honest.
For those who may not know the meaning, like me.

2 Likes

Strange, for someone that states being on board so long. :grinning_face:

https://www.computerhope.com/jargon/chat.htm

2 Likes

Do you really have so many such situations that it’s worth writing your own extension for this? I cannot imagine

I am not creating my own extensions, I am requesting if you (reader) knows the extensions (if exists) to accomplish the mentioned goals. That’s why in the former post is indicated: “according with your own experience and use”

Unfortunately, I cannot help. My advice I can give: Look at others and how they have solved similar things.

That’s why I created this post, I am assuming a member of this network uses the mentioned editor for bash and knows that extensions

¡Mucho suerte!

Thanks, BTW is: Mucha suerte

Best to all

2 Likes

Then I misunderstood it completely. Sorry for the inconvenience.

Nobody is perfect.

3 Likes

Yeah, long time user, but getting older and more forgetful. Been using the internet since the late 1990’s. I did not remember the meaning of TBH. Now I know after looking it up.

2 Likes

Do not worry …

Nobody is perfect.

Yes, So do I. The purpose is just to teach/correct you friendly…

Best to all

1 Like