microsoft / microsoft/TypeScript
Preserve more context in cross-project stack traces
- Langage dominant
- Go
- Étoiles
- 111k
- Forks
- 14.3k
- Merge moyen
- 2 j 4 h
- PR mergées (30 j)
- 132
Description
Today, if a `codeLens/resolve` request fails, we end up with a stack trace like
```
internal/ls.handleCrossProject[...]()
internal/ls/crossproject.go:210
internal/ls.(*LanguageService).ProvideReferences()
internal/ls/findallreferences.go:659
internal/ls.(*LanguageService).ResolveCodeLens()
internal/ls/codelens.go:65
internal/lsp.(*Server).handleCodeLensResolve()
internal/lsp/server.go:1590
internal/lsp.init.func1.registerRequestHandler[...].43()
internal/lsp/server.go:787
internal/lsp.(*Server).handleRequestOrNotification()
internal/lsp/server.go:648
internal/lsp.(*Server).dispatchLoop()
internal/lsp/server.go:527
```
`handleCrossProject` swallows up the rest of the context so we don't know the actual problem. We need a way to preserve the "real" stack.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.