Skip to content

Crash in adjusting positions for folding ranges #3384

@DanielRosenwasser

Description

@DanielRosenwasser

Since #3365, this is the only failure coming from LineAndCharacterToPosition.

internal/ls/lsconv.(*Converters).LineAndCharacterToPosition()
	internal/ls/lsconv/converters.go:175
internal/ls.(*LanguageService).adjustFoldingEnd()
	internal/ls/folding.go:43
internal/ls.(*LanguageService).ProvideFoldingRange()
	internal/ls/folding.go:23
internal/lsp.(*Server).handleFoldingRange()
	internal/lsp/server.go:1267
internal/lsp.init.func1.registerLanguageServiceDocumentRequestHandler[...].28.1()
	internal/lsp/server.go:798
internal/lsp.(*Server).handleRequestOrNotification.func1()
	internal/lsp/server.go:655
internal/lsp.(*Server).dispatchLoop.func3()
	internal/lsp/server.go:523
internal/lsp.(*Server).dispatchLoop
	internal/lsp/server.go:522

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions