You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add this feature to this project but have no idea how and where to start.
My initial thought is to add a rule to the URL parser in the patch, once the URL matched, execute "git clone" and then open.
But later I realized this feature requires git, would it be better to implement this feature as an extension? If yes, use UriHandler API?
or any other better solution?
This would be cool. I don't think we'd need to patch anything to get it working. Maybe if the ?folder parameter is something like git://github.com/cdr/code-server URL we clone before starting VS Code. We need to fix #1294 first though.
Hmm, it might make sense to do this right after the call to
`getFirstValidPath`. You can do the clone then change `startPath` to the
directory of the clone.
Activity
code-asher commentedon Feb 12, 2020
This would be cool. I don't think we'd need to patch anything to get it working. Maybe if the
?folderparameter is something likegit://github.com/cdr/code-serverURL we clone before starting VS Code. We need to fix #1294 first though.JalinWang commentedon Feb 14, 2020
Is it a good way to execute "git clone" in server.preHandleRequest() and then modify MainServer.handleRequest() to call getRoot() with proper path?
Pass a repo link in a form like http://code-server-domain.com/github?xxxxx
P.S.:
class Server and class MainServer refer to the ones in https://github.com/cdr/code-server/blob/master/src/node/server.ts
code-asher commentedon Feb 14, 2020
dougnukem commentedon Mar 11, 2020
Sail by coder supports this use case with the browser extension:
kylecarbs commentedon Apr 14, 2020
Closing for now.
We don't have immediate plans for this within code-server.