[error] panic handling request textDocument/definition: bad line number. Line: 14, lineMap length: 14
goroutine 6717536 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x5e
github.com/microsoft/typescript-go/internal/lsp.(*Server).recover(0x42a32ed1508, 0x42afe2d0b40)
github.com/microsoft/typescript-go/internal/lsp/server.go:873 +0x47
panic({0xc7f8a0?, 0x42a7c49af70?})
runtime/panic.go:860 +0x13a
github.com/microsoft/typescript-go/internal/ls/lsconv.(*Converters).LineAndCharacterToPosition(0x42d50167aa0, {0x107dde8, 0x42afbc56a88}, {0xc6831888?, 0x42a?})
github.com/microsoft/typescript-go/internal/ls/lsconv/converters.go:153 +0x2d4
github.com/microsoft/typescript-go/internal/ls.(*LanguageService).ProvideDefinition(0x42a89d263c0, {0x1080998, 0x42afbc627e0}, {0x42c6af56080, 0x7a}, {0xe?, 0x4d?})
github.com/microsoft/typescript-go/internal/ls/definition.go:26 +0x138
github.com/microsoft/typescript-go/internal/lsp.(*Server).handleDefinition(0x42d3ab75e98?, {0x1080998?, 0x42afbc627e0?}, 0x0?, 0x1080998?)
github.com/microsoft/typescript-go/internal/lsp/server.go:1189 +0x35
github.com/microsoft/typescript-go/internal/lsp.init.func1.registerLanguageServiceDocumentRequestHandler[...].14.1()
github.com/microsoft/typescript-go/internal/lsp/server.go:750 +0xb4
github.com/microsoft/typescript-go/internal/lsp.(*Server).handleRequestOrNotification.func1()
github.com/microsoft/typescript-go/internal/lsp/server.go:613 +0x95
github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop.func3()
github.com/microsoft/typescript-go/internal/lsp/server.go:488 +0x2c
created by github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop in goroutine 23
github.com/microsoft/typescript-go/internal/lsp/server.go:487 +0x4ac
Stack trace
Steps to reproduce