Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code completion only works if a workspace is open #202

Closed
rehdi93 opened this issue Dec 4, 2019 · 1 comment
Closed

code completion only works if a workspace is open #202

rehdi93 opened this issue Dec 4, 2019 · 1 comment
Labels
bug Something isn't working DTD
Milestone

Comments

@rehdi93
Copy link

rehdi93 commented Dec 4, 2019

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
        }
    }
}
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Dec 10, 2019
Fixes #redhat-developer/vscode-xml/issues/202

Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
xorye pushed a commit to eclipse/lemminx that referenced this issue Dec 13, 2019
Fixes #redhat-developer/vscode-xml/issues/202

Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
@fbricon fbricon added this to the 0.10.0 milestone Dec 13, 2019
@fbricon
Copy link
Collaborator

fbricon commented Dec 13, 2019

fixed by eclipse/lemminx#598

@fbricon fbricon closed this as completed Dec 13, 2019
@fbricon fbricon added bug Something isn't working DTD labels Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DTD
Projects
None yet
Development

No branches or pull requests

2 participants