News for hackers. Stuff that matters.
Re:CodeSandbox by fulyscentedking on Tuesday August 21, 2018 @09:01PM (#17815324)
VSCode IS running inside a browser.
Re:CodeSandbox by mchahn on Tuesday August 21, 2018 @10:27PM (#17815789)
> VSCode IS running inside a browser.

I used to be a major contributor and follower of Atom. People commonly asked why Atom couldn't run in the browser. The answer was simple, node and a browser are totally different things. Imagine a browser opening files, starting processes, running arbitrary C-code, etc.

No, VSCode does not normally run in a browser.

Re:CodeSandbox by joelhooks on Wednesday August 22, 2018 @01:33AM (#17816544)
Ives said it was relatively easy to swap out the node bits.
Re:CodeSandbox by Vinnl on Wednesday August 22, 2018 @04:00AM (#17817123)
He also said that the reason for that was the way the VSCode team structured the code, not because it's "running in a browser already": https://twitter.com/CompuIves/status/1031932607326371843
Re:CodeSandbox by jeswin on Tuesday August 21, 2018 @10:16PM (#17815735)
What everyone else has been doing is embedding Monaco (the barebones text editor component) into their shell. The shell implements things like searches, key bindings, a file explorer tree view, top menu, fake-console etc.

What the creator is saying is that he got the actual VSCode project running in the browser. This means that the vast plugin ecosystem will run inside the browser. I suppose he'd have replaced all the nodejs dependencies with browser versions; for example an "fs" module that keeps files in-memory (or maybe using indexeddb) etc.

Further down that tweet, he says that the code is very easy to get started with. That's been my experience looking at it briefly; VSCode just seems like it was written by a team with deep expertise in IDE-making and PLs.