Skip to content

code completion only works if a workspace is open #202

@red-rj

Description

@red-rj

whenever I don't have a work-space open, no auto-completion ever shows up for my configured file associations.

I have my settings like this:

"xml.fileAssociations": [
        {
            "pattern": "**/*.{mlt,kdenlive}",
            "systemId": "E:\\Users\\Pedro\\Programas\\kdenlive\\share\\mlt\\xml\\mlt-xml.dtd"
        }
    ],

Logs when hovering over an element:

[Trace - 16:12:04] Sending request 'textDocument/hover - (57)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Pedro/Documents/framecounter.mlt"
    },
    "position": {
        "line": 1,
        "character": 2
    }
}


[Trace - 16:12:04] Received response 'textDocument/hover - (57)' in 1ms.
No result returned.

--- ⬆ NO WORKSPACE | WORKSPACE ⬇ ---

[Trace - 16:13:05] Sending request 'textDocument/hover - (9)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Pedro/Documents/framecounter.mlt"
    },
    "position": {
        "line": 1,
        "character": 3
    }
}


[Trace - 16:13:05] Received response 'textDocument/hover - (9)' in 42ms.
Result: {
    "contents": {
        "kind": "markdown",
        "value": "Source: [mlt-xml.dtd](file:/E:/Users/Pedro/Programas/kdenlive/share/mlt/xml/mlt-xml.dtd)"
    },
    "range": {
        "start": {
            "line": 1,
            "character": 1
        },
        "end": {
            "line": 1,
            "character": 4
        }
    }
}


[Trace - 16:13:05] Sending request 'textDocument/hover - (10)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Pedro/Documents/framecounter.mlt"
    },
    "position": {
        "line": 1,
        "character": 1
    }
}


[Trace - 16:13:05] Received response 'textDocument/hover - (10)' in 2ms.
Result: {
    "contents": {
        "kind": "markdown",
        "value": "Source: [mlt-xml.dtd](file:/E:/Users/Pedro/Programas/kdenlive/share/mlt/xml/mlt-xml.dtd)"
    },
    "range": {
        "start": {
            "line": 1,
            "character": 1
        },
        "end": {
            "line": 1,
            "character": 4
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    DTDbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions