Skip to content

LSPRange contains method is not inclusive at the start #34

@tothambrus11

Description

@tothambrus11

There should be probably a >= relation between position and start. According to the specification, LSP range is start inclusive, end exclusive: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#range

	public func contains(_ position: Position) -> Bool {
		return position > start && position < end
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions