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

Question - How to enable linking to views with docker container and vscode editor? #1731

Open
carbtest opened this issue Feb 12, 2025 · 5 comments

Comments

@carbtest
Copy link

.env file

DEBUGBAR_LOCAL_SITES_PATH='~/home/username/sites/project'
DEBUGBAR_OPEN_STORAGE=true
DEBUGBAR_EDITOR='vscode'

when i click on link for a view in the debugbar nothing loads in vscode

Note the url for the link is vscode://file/~%2Fhome%2Fusername%2Fsites%2Fproject%2Fresources%2Fviews%2Factions%2Fedit.blade.php:1

Not sure if i missed something

@parallels999
Copy link
Contributor

That is not an issue, and you should read the vscode documentation, or ask for support there, all IDEs handle it differently

@carbtest
Copy link
Author

am i approaching adding the path correctly?

@parallels999
Copy link
Contributor

If it is an absolute path, yes

@horaciod
Copy link

horaciod commented Mar 7, 2025

During a wifi outage vscode informed me that it could not save the file with the full URL.
so I was able to detect the full link to add to .env and thus get opening files from that link to work at last.
the syntax (in my case) is :
vscode-remote://dev-container+7b226...7d7d@ssh-remote+i9/var/www/html/resources/views/front/microsites/list.blade.php
(where 7b... is the container_id and "i9" is my ssh remote server )

My problem now is to know where that ID comes from (7b...) to be able to do it without having to cut the network...
Important: the id does not change when closing the session so I estimate that it is in my local vscode ...

@horaciod
Copy link

horaciod commented Mar 7, 2025

During a wifi outage vscode informed me that it could not save the file with the full URL. so I was able to detect the full link to add to .env and thus get opening files from that link to work at last. the syntax (in my case) is : vscode-remote://dev-container+7b226...7d7d@ssh-remote+i9/var/www/html/resources/views/front/microsites/list.blade.php (where 7b... is the container_id and "i9" is my ssh remote server )

My problem now is to know where that ID comes from (7b...) to be able to do it without having to cut the network... Important: the id does not change when closing the session so I estimate that it is in my local vscode ...

the only way I found to get the id --- was searching in the log of the "terminal" in vscode

Image

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

3 participants