Search code examples
typescriptwebpackvisual-studio-codevscode-extensionsrollup

VSCode Extension won't run after packaging


I am working a simple VSCode extension that scan the currently active open file for any comments containing "//TODO: " and displays a list in a webview sidebar tab with all TODO comments in a file.

I have a working prototype which works as it should when I run it using the debugger in VSCode but as soon as I try to package it using vsce package and then install the .vsix file the sidebar icon appears and opens the sidebar but it does not scan the file ( or maybe it does but just doesn't show it) since I'm installing the extension and not debugging it, there is no way for me to track what it is doing.

Source code is in a github repo: https://github.com/bibaswan-bhawal/VSCode-TODO-List

I should mention I have confirmed all NodeJS dependency packages are installed.

output of vsce package command enter image description here


Solution

  • Found the error! Even though all the files were being compiled the svelte files were being compiled to out/compiled and .vscodeignore by default ignores anything in the the out folder so removing it from the file worked.