code-server icon indicating copy to clipboard operation
code-server copied to clipboard

Use file system access API to open local folders

Open renothing opened this issue 3 years ago • 9 comments

hi there, I found a good feature from vscode.dev

it can be used to open folder from my local computer. image

is there any plan to support it in code-server?

ref:https://web.dev/file-system-access/

renothing avatar Jan 10 '22 02:01 renothing

To make sure I'm hearing you right, you want to be able to access the local file system (i.e. if you run code-server in a remote VM, and then open on your laptop, you want to access the local laptop file system)?

That is a neat feature request! I wonder how difficult it would be to implement. @code-asher what do you think?

We'll add this to the Backlog Candidates and let other folks weigh in with a 👍

jsjoeio avatar Jan 10 '22 16:01 jsjoeio

This would be cool.

code-asher avatar Jan 10 '22 17:01 code-asher

I think vscode.dev does this? So maybe the code is already in place.

code-asher avatar Jan 10 '22 17:01 code-asher

To make sure I'm hearing you right, you want to be able to access the local file system (i.e. if you run code-server in a remote VM, and then open on your laptop, you want to access the local laptop file system)?

That is a neat feature request! I wonder how difficult it would be to implement. @code-asher what do you think?

We'll add this to the Backlog Candidates and let other folks weigh in with a +1

thank you all guys. yes, that's what I mean, it can be used by multiple users or just for a short work scene. currently code-server can be used to open local files but doesn't work for folders

image

renothing avatar Jan 11 '22 00:01 renothing

I think vscode.dev does this? So maybe the code is already in place.

currently it's vscode.dev feature only. but with some limitations, which has been mentioned by this issue: microsoft/vscode/issues/136486

renothing avatar Jan 18 '22 06:01 renothing

+1 for this

realsama avatar Jun 24 '22 22:06 realsama

+100 for this, really REALLY need this feature, currently trying a workaournd (iframe with attaching to the click event) waiting for update on it

yairyairyair avatar Oct 05 '22 23:10 yairyairyair

Was surprised to see this didn't work when I moved to code-server. Would be a really useful feature.

mdfederici avatar Nov 18 '22 19:11 mdfederici

Yeah, vscode.dev requires Web Extensions, that many existing extensions haven't supported yet, including ours, as they need to be implemented using browserify packages. If code-server supported the Filesystem API like vscode.dev does without requiring Web Extensions, it would be very cool.

david9991 avatar Jul 21 '23 12:07 david9991