Post AcWUWKKGF3bLHmJVdA by nmoo@mas.to
(DIR) More posts by nmoo@mas.to
(DIR) Post #AcWUWKKGF3bLHmJVdA by nmoo@mas.to
2023-12-06T00:55:16Z
0 likes, 2 repeats
The new Dev Toolbar in @astro 4.0 is a great example of what makes open source so special.🧡 #svelte has had built-in accessibility rules for ages. We adapted the audit logic from their compiler to provide the basis of Astro's in-browser tooling.💚 @nuxt has their own awesome DevTools project! We took a different approach, but we've loved watching their feature evolve over the past year.💛 @vite has an amazing `/__open-in-editor` feature that powers our click to open functionality.
(DIR) Post #AcWUWMTCGnwBw4Vfpw by nmoo@mas.to
2023-12-06T00:59:30Z
0 likes, 0 repeats
@astro @nuxt @vite Huge thanks to everyone working on these projects for their inspiration! When projects are able to openly collaborate and take inspiration from each other, we're all empowered to build better tools.
(DIR) Post #AcWWgI3RjzQn2uKMaG by teleclimber@social.tchncs.de
2023-12-06T01:13:17Z
0 likes, 0 repeats
@nmoo @vite What is this __open-in-editor thing in Vite? I can't seem to find anything in the docs or elsewhere. Thanks.
(DIR) Post #AcWWgJGbEZXwnzUNiy by nmoo@mas.to
2023-12-06T01:24:39Z
0 likes, 0 repeats
@teleclimber @vite I’m not sure where it’s documented, honestly! The Vite dev server automatically handles requests to that endpoint. You can send a request on the client to that path with a specific file path and location, and Vite will open the file in the user’s preferred editor.It’s very lovely that we didn’t have to implement it ourselves!
(DIR) Post #AcWWgK2oLK6xDW2ss4 by erika@m.webtoo.ls
2023-12-06T02:24:14Z
0 likes, 0 repeats
@nmoo @teleclimber @vite It's not documented! The only reason I found it was because when I made the Astro error overlay I found it in the Vite error overlay code. Watch out if you're trying to use it, it's quite finicky and if you don't give it exactly the format of filepath it's looking for, it'll fail silently.
(DIR) Post #AcWWgKsDGDEBmw5vzU by patak@m.webtoo.ls
2023-12-06T05:59:29Z
0 likes, 0 repeats
@erika @nmoo @teleclimber @vite We should properly document the __open-in-editor route! There are a lot of projects using it now, it is de facto part of the stable API