How to develop vs-code extension on nixos? (with codium)

Hey Guys,

Maybe someone of you already developed vscode extension for/on nixos?

I’ve been following this tutorial on how to create a first extension:
https://code.visualstudio.com/api/get-started/your-first-extension

But got stuck on the “Hello World” example ^^.

I am using vscodium. (Maybe extension development only works with the unfree version?)

After pressing “F5” to run the extension in debugger i got this error:

Could not read source map for file:///nix/store/z77ia1y296wfl5cl72fh0f3991wk7kz5-vscodium-1.73.1.22314/lib/vscode/resources/app/out/bootstrap-fork.js: ENOENT: no such file or directory, open '/home/johannes/git/vs-extension/nix-doc-types/sourcemaps/14f2d26367b7e8f03ff2352516ba27d6302dd7b1/core/bootstrap-fork.js.map'
Could not read source map for file:///nix/store/z77ia1y296wfl5cl72fh0f3991wk7kz5-vscodium-1.73.1.22314/lib/vscode/resources/app/out/vs/base/common/performance.js: ENOENT: no such file or directory, open '/home/johannes/git/vs-extension/nix-doc-types/sourcemaps/14f2d26367b7e8f03ff2352516ba27d6302dd7b1/core/vs/base/common/performance.js.map'
.... <shortened>

Thanks for your help :wink:

1 Like

Mystery solved. It seems that is indeed not possible to build a vscode extension on codium.
Just if somebody else runs into it.

How did you come to your conclusion? I’m trying to get it to work using the vscodium.fhs package but no luck yet. What alternative solution did you turn to in the end?