drizzle-lab icon indicating copy to clipboard operation
drizzle-lab copied to clipboard

[DOCS]: How do i run the vscode extension?

Open Franciscorsil opened this issue 1 year ago • 4 comments

Enhancement hasn't been filed before.

  • [x] I have verified this enhancement I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I have no clue on how i can run the extension... I'd like to learn because this is something i really liked and it could help me understand and remove some of the abstraction in complex shemas. still i will try to figure it out

Franciscorsil avatar Feb 14 '25 17:02 Franciscorsil

Ok so, i managed to run the schema visualizer on the browser turns out i just needed to do npx drizzle-lab visualizer.

but now i wanted to run it on vscode itself, im not finding how to do that am i missing something?

Franciscorsil avatar Feb 14 '25 17:02 Franciscorsil

👋 Thanks for your interest on this project. I'm sorry for this bad onboarding experience :/

Developing on the VSCode extension is really not developer-friendly, you have to build before seeing any changes.

Inside the vscode-extension folder, every time you run npm run build, it will trigger turbo to build the drizzle-lab package and copy the build to an expected folder that the extension uses to run the CLI behind the scenes. Then, you have to open vscode-extension/src/extension.ts and start the debug mode (F5). It launches a new VS Code instance with the extension installed.

I'm currently rewriting the entire project (https://github.com/rphlmr/drizzle-lab/pull/52) to make it simpler to update and develop. The visualizer will be rebuilt with Vite, so it will be easy to run in dev mode as a standalone. It will also be updated to Tailwind 4, and its style and components will be isolated so they don't conflict with the end user's Tailwind styles or the other apps/packages in this repository.

Creating a monorepo like that was a terrible mistake once I decided to start publishing some parts 😵‍💫

rphlmr avatar Feb 14 '25 18:02 rphlmr

Hi @rphlmr! Thanks for the major rewrite work you're doing, it all sounds great. Do you have a rough timeline or any milestones planned?

ravenwits avatar Jun 11 '25 20:06 ravenwits

Thanks @ravenwits 🫡

It’s true that I’ve been so busy with work and my other open source projects lately that it’s difficult to finish this pull request 😅

I’d like to continue this summer (in July) so it’s almost ready for Drizzle v1.

I think it will be easier to have contributors with a cleaner code base 👀

rphlmr avatar Jun 12 '25 04:06 rphlmr