Add source mappings for serialized properties with available declaration
fixes https://github.com/microsoft/TypeScript/issues/60004
Status?
@Andarist @jakebailey is this progressing?
sorry for tagging @Andarist, is this pr going to be merged?
Is there any chance for this to be merged soon? This is blocking go-to navigation in monorepos, and degrades DX quite a bit.
This needs main merged into it, for one thing.
The other thing I'm wondering is how trivial this is to port over to the Go codebase, just to make sure that this sticks.
Should there be an issue opened in the native repo to track this for the go port? We recently switched to go but would like for this to stick.
@jakebailey I synced this with main. I also don't see any reason why this would be hard to port to the Go codebase. I could prepare a porting PR there but I don't know of the top of my head if you already have test infra there that would be able to test it.
We have declaration map tests and go to def baselining, so theoretically it should all be there.
But, I don't know what the equivalent to projectReferencesSourcemap.ts is in the Go codebase; maybe @sheetalkamat knows.
you should be able to add fourslash test. https://github.com/microsoft/typescript-go/blob/main/internal/fourslash/tests/statedeclarationmaps_test.go
...