eclipse / lsp4mp

Technology lsp4mp
Eclipse Public License 2.0
21 stars 27 forks source link

Remove unnecessary fields in properties file completion result #411

Closed JessicaJHee closed 11 months ago

JessicaJHee commented 11 months ago

Fixes #410

These are the supported fields for itemDefaults in vscode:

                "completionList": {
                    "itemDefaults": [
                        "commitCharacters",
                        "editRange",
                        "insertTextFormat",
                        "insertTextMode"
                    ]
                }

Here is an example of the completion item result after the change:

        {
            "label": "quarkus.cache.enabled",
            "kind": 10,
            "textEditText": "quarkus.cache.enabled=${1|false,true|}",
            "data": {
                "uri": "file:///home/jhe/Projects/test_files/quarkus-quickstarts/cache-quickstart/src/main/resources/application.properties"
            }
        },
angelozerr commented 11 months ago

It works like a charm @JessicaJHee , good job!