-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Programatically Set Folder to Open #816
Comments
@code-asher @nhooyr @kylecarbs @sr229 Any kind words on this issue would be appreciated. |
Or can you people please add some functionality to pass required directory path in query parameters. And by using those parameters code-server automatically change opened folder. |
When should I expect any response on this? |
At the moment I don't think we support changing the project directory programmatically. You might be able to write an extension for this or create a proxy that relaunches code-server in the correct directory. |
Any idea on how proxy would work in my scenario would be really helpful. But actually I don't wanna relaunch code-server everytime. |
This isn't a very robust solution, but the proxy would just look at the URL query parameters to check which folder it should be using, then just relaunch code-server when the query parameters change. |
Isn't it a good and quick feature to add in code-server to read query parameter let's say |
@abubakar-bilal hi, how to set default folder for landing ? That will meet my needs. |
@xmpilot there is no such coded feature yet in code-server. |
@sr229 thanks your feedback, i got the solution by vs code. |
@xmpilot - Can you past here the solution? Need a similar thing! |
|
Once #857 is merged you can have a |
Here is my case. I'm on mysite.com and I wanna redirect my user to code-server URL in new tab but I want that user to be landed on a particular directory. This is the same as we do with file > Open folder. but I need it to be done programatically.
Is there any way to achieve this?
CC: @deansheather
The text was updated successfully, but these errors were encountered: