Closed ItalyPaleAle closed 5 months ago
For the second issue, it seems that the extension is being loaded from the dist
folder, but tsc is configured to output the extension to out
.
But just changing the output directory in the tsconfig isn't enough because it doesn't go through webpack.
I'm trying to build the extension locally to run some debugging (and see if I can contribute with fixes to the issues I've raised, plus a few more), but I can't get that to work.
First, I clone the repo then launch that in VS Code, then install deps with
npm install
.npm run watch
then fails with these errors:Looks like the issue is that
estree-walker
,magic-string
andlocate-character
are dependencies ofsvelte
but are marked asdevDependency
in svelte's package.json, so they're not installed. At least in the latest version of NPM that I'm using, there doesn't seem a way (anymore) to install devDependencies of dependencies.So a first fix was to add this to CodeSwing's
devDependencies
(using the same versions of deps that are listed for Svelte):Then with
npm install
I can finally build the extension..However, it's not done yet. Now
npm run watch
works, but the extension still isn't loaded in VS Code.This is what happens in VS Code's debug console:
I'm not sure how to fix this :(