glutinum-org / Glutinum

MIT License
35 stars 3 forks source link

fsautocomplete go to source #15

Open joprice opened 3 months ago

joprice commented 3 months ago

Is it possible to have jump to source working for the generated source via fsautocomplete (via sourcelink integration?)? Currently, if I try to jump to definition when hovering over a type like Glutinum.ExpressServeStaticCore.Router, I get an error like:

ionide: -32603: Range for nonexistent file found, no ident found: /some/local/directory/C:\Users\Maxime\Documents\Wor
kspace\Github\MangelMaxime\Fable.Express\glues\ExpressServeStaticCore\src\Glutinum.ExpressServeStaticCore.fs
MangelMaxime commented 3 months ago

I believe this is because I didn't include some rules when packaging the package for NuGet.

I will have a look to update to Fable.Packages.SDK which should fix this issue and allows navigating the code.

https://github.com/fable-compiler/Fable.Package.SDK/blob/131c17c2d1e3ee3f802e53aaf1f1bcf8d6b5f12e/src/build/Fable.Package.SDK.props#L8-L19