Skip to content

Handle dot segments in URIs #3104

Closed
Closed
@amiralies

Description

It seems coc doesn't handle relative dot segments in uri so a response like this would fail

Result: {
    "changes": {
        "file:///home/user/rescript/././src/Main.res": [
            {
                "range": {
                    "start": {
                        "line": 0,
                        "character": 22
                    },
                    "end": {
                        "line": 0,
                        "character": 23
                    }
                },
                "newText": "y"
            }
        ],
        "file:///home/user/rescript/./src/AnotherModule.res": [
            {
                "range": {
                    "start": {
                        "line": 0,
                        "character": 4
                    },
                    "end": {
                        "line": 0,
                        "character": 5
                    }
                },
                "newText": "y"
            }
        ]
    }
}

this is a response to a rename request.

system info:
OS: Linux
node: 12
vim: vim 8.2
coc: 0.0.80

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions