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

Enable code completion for syntax server #1463

Merged
merged 2 commits into from
Jun 8, 2020

Conversation

testforstephen
Copy link
Contributor

Signed-off-by: Jinbo Wang jinbwan@microsoft.com

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Copy link
Contributor

@fbricon fbricon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's weird that, when typing List, List - java.util is displayed last, should be 1st:

Screen Shot 2020-06-06 at 12 44 55 AM

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
@testforstephen
Copy link
Contributor Author

When i tried, List is placed at 1st. See the screencast below:
codecompletion

Could you share the LSP log for completion response? I want to confirm whether there is problem for the sortText field.

@fbricon
Copy link
Contributor

fbricon commented Jun 8, 2020

Still have the same issue, testing vscode-insiders:

Completion response [Trace - 2:01:02 PM] Sending request 'textDocument/completion - (60)'. Params: { "textDocument": { "uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java" }, "position": { "line": 22, "character": 12 }, "context": { "triggerKind": 1 } }

[Trace - 2:01:02 PM] Received notification 'window/logMessage'.
Params: {
"type": 3,
"message": "8-Jun-2020 2:01:02 PM >> document/completion"
}

[Info - 2:01:02 PM] 8-Jun-2020 2:01:02 PM >> document/completion
[Trace - 2:01:02 PM] Received notification 'window/logMessage'.
Params: {
"type": 3,
"message": "8-Jun-2020 2:01:02 PM Search engine disabled, searching directly."
}

[Info - 2:01:02 PM] 8-Jun-2020 2:01:02 PM Search engine disabled, searching directly.
[Trace - 2:01:02 PM] Received notification 'window/logMessage'.
Params: {
"type": 3,
"message": "8-Jun-2020 2:01:02 PM Completion request completed"
}

[Info - 2:01:02 PM] 8-Jun-2020 2:01:02 PM Completion request completed
[Trace - 2:01:02 PM] Received response 'textDocument/completion - (60)' in 88ms.
Result: {
"isIncomplete": false,
"items": [
{
"label": "List - java.util",
"kind": 7,
"detail": "java.util.List",
"sortText": "999999148",
"filterText": "java.util.List",
"insertText": "List",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "java.util.List"
},
"data": {
"decl_signature": "Ljava.util.List;",
"pid": "0",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListIterator - java.util",
"kind": 7,
"detail": "java.util.ListIterator",
"sortText": "999999212",
"filterText": "ListIterator",
"insertText": "ListIterator",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListIterator"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport java.util.ListIterator;\n\n"
}
],
"data": {
"decl_signature": "Ljava.util.ListIterator;",
"pid": "1",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListResourceBundle - java.util",
"kind": 7,
"detail": "java.util.ListResourceBundle",
"sortText": "999999212",
"filterText": "ListResourceBundle",
"insertText": "ListResourceBundle",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListResourceBundle"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport java.util.ListResourceBundle;\n\n"
}
],
"data": {
"decl_signature": "Ljava.util.ListResourceBundle;",
"pid": "2",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListBinding - javafx.beans.binding",
"kind": 7,
"detail": "javafx.beans.binding.ListBinding",
"sortText": "999999212",
"filterText": "ListBinding",
"insertText": "ListBinding",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListBinding"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.beans.binding.ListBinding;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.beans.binding.ListBinding;",
"pid": "3",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListExpression - javafx.beans.binding",
"kind": 7,
"detail": "javafx.beans.binding.ListExpression",
"sortText": "999999212",
"filterText": "ListExpression",
"insertText": "ListExpression",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListExpression"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.beans.binding.ListExpression;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.beans.binding.ListExpression;",
"pid": "4",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListPropertyBase - javafx.beans.property",
"kind": 7,
"detail": "javafx.beans.property.ListPropertyBase",
"sortText": "999999212",
"filterText": "ListPropertyBase",
"insertText": "ListPropertyBase",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListPropertyBase"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.beans.property.ListPropertyBase;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.beans.property.ListPropertyBase;",
"pid": "5",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListProperty - javafx.beans.property",
"kind": 7,
"detail": "javafx.beans.property.ListProperty",
"sortText": "999999212",
"filterText": "ListProperty",
"insertText": "ListProperty",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListProperty"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.beans.property.ListProperty;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.beans.property.ListProperty;",
"pid": "6",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "Listener - javafx.beans.property",
"kind": 7,
"detail": "javafx.beans.property.Listener",
"sortText": "999999212",
"filterText": "Listener",
"insertText": "Listener",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "Listener"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.beans.property.Listener;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.beans.property.Listener;",
"pid": "7",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListChangeBuilder - javafx.collections",
"kind": 7,
"detail": "javafx.collections.ListChangeBuilder",
"sortText": "999999212",
"filterText": "ListChangeBuilder",
"insertText": "ListChangeBuilder",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListChangeBuilder"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.collections.ListChangeBuilder;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.collections.ListChangeBuilder;",
"pid": "8",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListChangeListener - javafx.collections",
"kind": 7,
"detail": "javafx.collections.ListChangeListener",
"sortText": "999999212",
"filterText": "ListChangeListener",
"insertText": "ListChangeListener",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListChangeListener"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.collections.ListChangeListener;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.collections.ListChangeListener;",
"pid": "9",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListCellBuilder - javafx.scene.control",
"kind": 7,
"detail": "javafx.scene.control.ListCellBuilder",
"sortText": "999999212",
"filterText": "ListCellBuilder",
"insertText": "ListCellBuilder",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListCellBuilder"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.scene.control.ListCellBuilder;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.scene.control.ListCellBuilder;",
"pid": "10",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListCell - javafx.scene.control",
"kind": 7,
"detail": "javafx.scene.control.ListCell",
"sortText": "999999212",
"filterText": "ListCell",
"insertText": "ListCell",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListCell"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.scene.control.ListCell;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.scene.control.ListCell;",
"pid": "11",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListViewBitSetSelectionModel - javafx.scene.control",
"kind": 7,
"detail": "javafx.scene.control.ListViewBitSetSelectionModel",
"sortText": "999999212",
"filterText": "ListViewBitSetSelectionModel",
"insertText": "ListViewBitSetSelectionModel",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListViewBitSetSelectionModel"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.scene.control.ListViewBitSetSelectionModel;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.scene.control.ListViewBitSetSelectionModel;",
"pid": "12",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListViewBuilder - javafx.scene.control",
"kind": 7,
"detail": "javafx.scene.control.ListViewBuilder",
"sortText": "999999212",
"filterText": "ListViewBuilder",
"insertText": "ListViewBuilder",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListViewBuilder"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.scene.control.ListViewBuilder;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.scene.control.ListViewBuilder;",
"pid": "13",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListViewFocusModel - javafx.scene.control",
"kind": 7,
"detail": "javafx.scene.control.ListViewFocusModel",
"sortText": "999999212",
"filterText": "ListViewFocusModel",
"insertText": "ListViewFocusModel",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListViewFocusModel"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.scene.control.ListViewFocusModel;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.scene.control.ListViewFocusModel;",
"pid": "14",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListView - javafx.scene.control",
"kind": 7,
"detail": "javafx.scene.control.ListView",
"sortText": "999999212",
"filterText": "ListView",
"insertText": "ListView",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListView"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.scene.control.ListView;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.scene.control.ListView;",
"pid": "15",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListenerNotFoundException - javax.management",
"kind": 7,
"detail": "javax.management.ListenerNotFoundException",
"sortText": "999999212",
"filterText": "ListenerNotFoundException",
"insertText": "ListenerNotFoundException",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListenerNotFoundException"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.management.ListenerNotFoundException;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.management.ListenerNotFoundException;",
"pid": "16",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListCellRenderer - javax.swing",
"kind": 7,
"detail": "javax.swing.ListCellRenderer",
"sortText": "999999212",
"filterText": "ListCellRenderer",
"insertText": "ListCellRenderer",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListCellRenderer"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.swing.ListCellRenderer;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.swing.ListCellRenderer;",
"pid": "17",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListModel - javax.swing",
"kind": 7,
"detail": "javax.swing.ListModel",
"sortText": "999999212",
"filterText": "ListModel",
"insertText": "ListModel",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListModel"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.swing.ListModel;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.swing.ListModel;",
"pid": "18",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListSelectionModel - javax.swing",
"kind": 7,
"detail": "javax.swing.ListSelectionModel",
"sortText": "999999212",
"filterText": "ListSelectionModel",
"insertText": "ListSelectionModel",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListSelectionModel"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.swing.ListSelectionModel;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.swing.ListSelectionModel;",
"pid": "19",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListDataEvent - javax.swing.event",
"kind": 7,
"detail": "javax.swing.event.ListDataEvent",
"sortText": "999999212",
"filterText": "ListDataEvent",
"insertText": "ListDataEvent",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListDataEvent"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.swing.event.ListDataEvent;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.swing.event.ListDataEvent;",
"pid": "20",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListDataListener - javax.swing.event",
"kind": 7,
"detail": "javax.swing.event.ListDataListener",
"sortText": "999999212",
"filterText": "ListDataListener",
"insertText": "ListDataListener",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListDataListener"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.swing.event.ListDataListener;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.swing.event.ListDataListener;",
"pid": "21",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListSelectionEvent - javax.swing.event",
"kind": 7,
"detail": "javax.swing.event.ListSelectionEvent",
"sortText": "999999212",
"filterText": "ListSelectionEvent",
"insertText": "ListSelectionEvent",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListSelectionEvent"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.swing.event.ListSelectionEvent;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.swing.event.ListSelectionEvent;",
"pid": "22",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListSelectionListener - javax.swing.event",
"kind": 7,
"detail": "javax.swing.event.ListSelectionListener",
"sortText": "999999212",
"filterText": "ListSelectionListener",
"insertText": "ListSelectionListener",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListSelectionListener"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.swing.event.ListSelectionListener;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.swing.event.ListSelectionListener;",
"pid": "23",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListUI - javax.swing.plaf",
"kind": 7,
"detail": "javax.swing.plaf.ListUI",
"sortText": "999999212",
"filterText": "ListUI",
"insertText": "ListUI",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListUI"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.swing.plaf.ListUI;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.swing.plaf.ListUI;",
"pid": "24",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListView - javax.swing.text.html",
"kind": 7,
"detail": "javax.swing.text.html.ListView",
"sortText": "999999212",
"filterText": "ListView",
"insertText": "ListView",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListView"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.swing.text.html.ListView;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.swing.text.html.ListView;",
"pid": "25",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "ListAdapter - jdk.nashorn.internal.runtime",
"kind": 7,
"detail": "jdk.nashorn.internal.runtime.ListAdapter",
"sortText": "999999212",
"filterText": "ListAdapter",
"insertText": "ListAdapter",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListAdapter"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport jdk.nashorn.internal.runtime.ListAdapter;\n\n"
}
],
"data": {
"decl_signature": "Ljdk.nashorn.internal.runtime.ListAdapter;",
"pid": "26",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
}
]
}

[Trace - 2:01:02 PM] Sending request 'completionItem/resolve - (61)'.
Params: {
"label": "ListAdapter - jdk.nashorn.internal.runtime",
"detail": "jdk.nashorn.internal.runtime.ListAdapter",
"filterText": "ListAdapter",
"insertTextFormat": 2,
"textEdit": {
"newText": "ListAdapter",
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
}
},
"kind": 7,
"sortText": "999999212",
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport jdk.nashorn.internal.runtime.ListAdapter;\n\n"
}
],
"data": {
"decl_signature": "Ljdk.nashorn.internal.runtime.ListAdapter;",
"pid": "26",
"rid": "8",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
}

[Trace - 2:01:02 PM] Received notification 'window/logMessage'.
Params: {
"type": 3,
"message": "8-Jun-2020 2:01:02 PM >> document/resolveCompletionItem"
}

[Info - 2:01:02 PM] 8-Jun-2020 2:01:02 PM >> document/resolveCompletionItem
[Trace - 2:01:02 PM] Received response 'completionItem/resolve - (61)' in 20ms.
Result: {
"label": "ListAdapter - jdk.nashorn.internal.runtime",
"kind": 7,
"detail": "jdk.nashorn.internal.runtime.ListAdapter",
"sortText": "999999212",
"filterText": "ListAdapter",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 12
}
},
"newText": "ListAdapter"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport jdk.nashorn.internal.runtime.ListAdapter;\n\n"
}
]
}

sortText has lower value, so should be displayed 1st. Maybe a vscode-insiders issue.

@fbricon
Copy link
Contributor

fbricon commented Jun 8, 2020

When trying with String, sort works as expected (still with a lower sortText value).

Completion response [Trace - 2:06:34 PM] Sending request 'textDocument/completion - (73)'. Params: { "textDocument": { "uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java" }, "position": { "line": 22, "character": 14 }, "context": { "triggerKind": 1 } }

[Trace - 2:06:34 PM] Received notification 'window/logMessage'.
Params: {
"type": 3,
"message": "8-Jun-2020 2:06:34 PM >> document/completion"
}

[Info - 2:06:34 PM] 8-Jun-2020 2:06:34 PM >> document/completion
[Trace - 2:06:34 PM] Received notification 'window/logMessage'.
Params: {
"type": 3,
"message": "8-Jun-2020 2:06:34 PM Search engine disabled, searching directly."
}

[Info - 2:06:34 PM] 8-Jun-2020 2:06:34 PM Search engine disabled, searching directly.
[Trace - 2:06:34 PM] Received notification 'window/logMessage'.
Params: {
"type": 3,
"message": "8-Jun-2020 2:06:34 PM Completion request completed"
}

[Info - 2:06:34 PM] 8-Jun-2020 2:06:34 PM Completion request completed
[Trace - 2:06:34 PM] Received response 'textDocument/completion - (73)' in 134ms.
Result: {
"isIncomplete": false,
"items": [
{
"label": "String - java.lang",
"kind": 7,
"detail": "java.lang.String",
"sortText": "999999100",
"filterText": "String",
"insertText": "String",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "String"
},
"data": {
"decl_signature": "Ljava.lang.String;",
"pid": "0",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringBuffer - java.lang",
"kind": 7,
"detail": "java.lang.StringBuffer",
"sortText": "999999164",
"filterText": "StringBuffer",
"insertText": "StringBuffer",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringBuffer"
},
"data": {
"decl_signature": "Ljava.lang.StringBuffer;",
"pid": "1",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringBuilder - java.lang",
"kind": 7,
"detail": "java.lang.StringBuilder",
"sortText": "999999164",
"filterText": "StringBuilder",
"insertText": "StringBuilder",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringBuilder"
},
"data": {
"decl_signature": "Ljava.lang.StringBuilder;",
"pid": "2",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringCoding - java.lang",
"kind": 7,
"detail": "java.lang.StringCoding",
"sortText": "999999164",
"filterText": "StringCoding",
"insertText": "StringCoding",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringCoding"
},
"data": {
"decl_signature": "Ljava.lang.StringCoding;",
"pid": "3",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringDecoder - java.lang",
"kind": 7,
"detail": "java.lang.StringDecoder",
"sortText": "999999164",
"filterText": "StringDecoder",
"insertText": "StringDecoder",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringDecoder"
},
"data": {
"decl_signature": "Ljava.lang.StringDecoder;",
"pid": "4",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringEncoder - java.lang",
"kind": 7,
"detail": "java.lang.StringEncoder",
"sortText": "999999164",
"filterText": "StringEncoder",
"insertText": "StringEncoder",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringEncoder"
},
"data": {
"decl_signature": "Ljava.lang.StringEncoder;",
"pid": "5",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringIndexOutOfBoundsException - java.lang",
"kind": 7,
"detail": "java.lang.StringIndexOutOfBoundsException",
"sortText": "999999164",
"filterText": "StringIndexOutOfBoundsException",
"insertText": "StringIndexOutOfBoundsException",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringIndexOutOfBoundsException"
},
"data": {
"decl_signature": "Ljava.lang.StringIndexOutOfBoundsException;",
"pid": "6",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringBufferInputStream - java.io",
"kind": 7,
"detail": "java.io.StringBufferInputStream",
"sortText": "999999212",
"filterText": "StringBufferInputStream",
"insertText": "StringBufferInputStream",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringBufferInputStream"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport java.io.StringBufferInputStream;\n\n"
}
],
"data": {
"decl_signature": "Ljava.io.StringBufferInputStream;",
"pid": "7",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringReader - java.io",
"kind": 7,
"detail": "java.io.StringReader",
"sortText": "999999212",
"filterText": "StringReader",
"insertText": "StringReader",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringReader"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport java.io.StringReader;\n\n"
}
],
"data": {
"decl_signature": "Ljava.io.StringReader;",
"pid": "8",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringWriter - java.io",
"kind": 7,
"detail": "java.io.StringWriter",
"sortText": "999999212",
"filterText": "StringWriter",
"insertText": "StringWriter",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringWriter"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport java.io.StringWriter;\n\n"
}
],
"data": {
"decl_signature": "Ljava.io.StringWriter;",
"pid": "9",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringCharBuffer - java.nio",
"kind": 7,
"detail": "java.nio.StringCharBuffer",
"sortText": "999999212",
"filterText": "StringCharBuffer",
"insertText": "StringCharBuffer",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringCharBuffer"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport java.nio.StringCharBuffer;\n\n"
}
],
"data": {
"decl_signature": "Ljava.nio.StringCharBuffer;",
"pid": "10",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringCharacterIterator - java.text",
"kind": 7,
"detail": "java.text.StringCharacterIterator",
"sortText": "999999212",
"filterText": "StringCharacterIterator",
"insertText": "StringCharacterIterator",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringCharacterIterator"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport java.text.StringCharacterIterator;\n\n"
}
],
"data": {
"decl_signature": "Ljava.text.StringCharacterIterator;",
"pid": "11",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringJoiner - java.util",
"kind": 7,
"detail": "java.util.StringJoiner",
"sortText": "999999212",
"filterText": "StringJoiner",
"insertText": "StringJoiner",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringJoiner"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport java.util.StringJoiner;\n\n"
}
],
"data": {
"decl_signature": "Ljava.util.StringJoiner;",
"pid": "12",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringTokenizer - java.util",
"kind": 7,
"detail": "java.util.StringTokenizer",
"sortText": "999999212",
"filterText": "StringTokenizer",
"insertText": "StringTokenizer",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringTokenizer"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport java.util.StringTokenizer;\n\n"
}
],
"data": {
"decl_signature": "Ljava.util.StringTokenizer;",
"pid": "13",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringBinding - javafx.beans.binding",
"kind": 7,
"detail": "javafx.beans.binding.StringBinding",
"sortText": "999999212",
"filterText": "StringBinding",
"insertText": "StringBinding",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringBinding"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.beans.binding.StringBinding;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.beans.binding.StringBinding;",
"pid": "14",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringExpression - javafx.beans.binding",
"kind": 7,
"detail": "javafx.beans.binding.StringExpression",
"sortText": "999999212",
"filterText": "StringExpression",
"insertText": "StringExpression",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringExpression"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.beans.binding.StringExpression;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.beans.binding.StringExpression;",
"pid": "15",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringPropertyBase - javafx.beans.property",
"kind": 7,
"detail": "javafx.beans.property.StringPropertyBase",
"sortText": "999999212",
"filterText": "StringPropertyBase",
"insertText": "StringPropertyBase",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringPropertyBase"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.beans.property.StringPropertyBase;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.beans.property.StringPropertyBase;",
"pid": "16",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringProperty - javafx.beans.property",
"kind": 7,
"detail": "javafx.beans.property.StringProperty",
"sortText": "999999212",
"filterText": "StringProperty",
"insertText": "StringProperty",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringProperty"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.beans.property.StringProperty;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.beans.property.StringProperty;",
"pid": "17",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringConverter - javafx.util",
"kind": 7,
"detail": "javafx.util.StringConverter",
"sortText": "999999212",
"filterText": "StringConverter",
"insertText": "StringConverter",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringConverter"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport javafx.util.StringConverter;\n\n"
}
],
"data": {
"decl_signature": "Ljavafx.util.StringConverter;",
"pid": "18",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringValueExp - javax.management",
"kind": 7,
"detail": "javax.management.StringValueExp",
"sortText": "999999212",
"filterText": "StringValueExp",
"insertText": "StringValueExp",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringValueExp"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.management.StringValueExp;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.management.StringValueExp;",
"pid": "19",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringMonitorMBean - javax.management.monitor",
"kind": 7,
"detail": "javax.management.monitor.StringMonitorMBean",
"sortText": "999999212",
"filterText": "StringMonitorMBean",
"insertText": "StringMonitorMBean",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringMonitorMBean"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.management.monitor.StringMonitorMBean;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.management.monitor.StringMonitorMBean;",
"pid": "20",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringMonitorObservedObject - javax.management.monitor",
"kind": 7,
"detail": "javax.management.monitor.StringMonitorObservedObject",
"sortText": "999999212",
"filterText": "StringMonitorObservedObject",
"insertText": "StringMonitorObservedObject",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringMonitorObservedObject"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.management.monitor.StringMonitorObservedObject;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.management.monitor.StringMonitorObservedObject;",
"pid": "21",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringMonitor - javax.management.monitor",
"kind": 7,
"detail": "javax.management.monitor.StringMonitor",
"sortText": "999999212",
"filterText": "StringMonitor",
"insertText": "StringMonitor",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringMonitor"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.management.monitor.StringMonitor;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.management.monitor.StringMonitor;",
"pid": "22",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringRefAddr - javax.naming",
"kind": 7,
"detail": "javax.naming.StringRefAddr",
"sortText": "999999212",
"filterText": "StringRefAddr",
"insertText": "StringRefAddr",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringRefAddr"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.naming.StringRefAddr;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.naming.StringRefAddr;",
"pid": "23",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringContent - javax.swing.text",
"kind": 7,
"detail": "javax.swing.text.StringContent",
"sortText": "999999212",
"filterText": "StringContent",
"insertText": "StringContent",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringContent"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 4,
"character": 39
},
"end": {
"line": 5,
"character": 0
}
},
"newText": "\n\nimport javax.swing.text.StringContent;\n\n"
}
],
"data": {
"decl_signature": "Ljavax.swing.text.StringContent;",
"pid": "24",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringNode - jdk.nashorn.internal.runtime.regexp.joni.ast",
"kind": 7,
"detail": "jdk.nashorn.internal.runtime.regexp.joni.ast.StringNode",
"sortText": "999999212",
"filterText": "StringNode",
"insertText": "StringNode",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringNode"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport jdk.nashorn.internal.runtime.regexp.joni.ast.StringNode;\n\n"
}
],
"data": {
"decl_signature": "Ljdk.nashorn.internal.runtime.regexp.joni.ast.StringNode;",
"pid": "25",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringType - jdk.nashorn.internal.runtime.regexp.joni.constants",
"kind": 7,
"detail": "jdk.nashorn.internal.runtime.regexp.joni.constants.StringType",
"sortText": "999999212",
"filterText": "StringType",
"insertText": "StringType",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringType"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport jdk.nashorn.internal.runtime.regexp.joni.constants.StringType;\n\n"
}
],
"data": {
"decl_signature": "Ljdk.nashorn.internal.runtime.regexp.joni.constants.StringType;",
"pid": "26",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringConstantPool - oracle.jrockit.jfr",
"kind": 7,
"detail": "oracle.jrockit.jfr.StringConstantPool",
"sortText": "999999212",
"filterText": "StringConstantPool",
"insertText": "StringConstantPool",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringConstantPool"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport oracle.jrockit.jfr.StringConstantPool;\n\n"
}
],
"data": {
"decl_signature": "Loracle.jrockit.jfr.StringConstantPool;",
"pid": "27",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringParse - oracle.jrockit.jfr.settings",
"kind": 7,
"detail": "oracle.jrockit.jfr.settings.StringParse",
"sortText": "999999212",
"filterText": "StringParse",
"insertText": "StringParse",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringParse"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport oracle.jrockit.jfr.settings.StringParse;\n\n"
}
],
"data": {
"decl_signature": "Loracle.jrockit.jfr.settings.StringParse;",
"pid": "28",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringHolder - org.omg.CORBA",
"kind": 7,
"detail": "org.omg.CORBA.StringHolder",
"sortText": "999999212",
"filterText": "StringHolder",
"insertText": "StringHolder",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringHolder"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 11,
"character": 34
},
"end": {
"line": 11,
"character": 34
}
},
"newText": "\nimport org.omg.CORBA.StringHolder;"
}
],
"data": {
"decl_signature": "Lorg.omg.CORBA.StringHolder;",
"pid": "29",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringSeqHelper - org.omg.CORBA",
"kind": 7,
"detail": "org.omg.CORBA.StringSeqHelper",
"sortText": "999999212",
"filterText": "StringSeqHelper",
"insertText": "StringSeqHelper",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringSeqHelper"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 11,
"character": 34
},
"end": {
"line": 11,
"character": 34
}
},
"newText": "\nimport org.omg.CORBA.StringSeqHelper;"
}
],
"data": {
"decl_signature": "Lorg.omg.CORBA.StringSeqHelper;",
"pid": "30",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringSeqHolder - org.omg.CORBA",
"kind": 7,
"detail": "org.omg.CORBA.StringSeqHolder",
"sortText": "999999212",
"filterText": "StringSeqHolder",
"insertText": "StringSeqHolder",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringSeqHolder"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 11,
"character": 34
},
"end": {
"line": 11,
"character": 34
}
},
"newText": "\nimport org.omg.CORBA.StringSeqHolder;"
}
],
"data": {
"decl_signature": "Lorg.omg.CORBA.StringSeqHolder;",
"pid": "31",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringValueHelper - org.omg.CORBA",
"kind": 7,
"detail": "org.omg.CORBA.StringValueHelper",
"sortText": "999999212",
"filterText": "StringValueHelper",
"insertText": "StringValueHelper",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringValueHelper"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 11,
"character": 34
},
"end": {
"line": 11,
"character": 34
}
},
"newText": "\nimport org.omg.CORBA.StringValueHelper;"
}
],
"data": {
"decl_signature": "Lorg.omg.CORBA.StringValueHelper;",
"pid": "32",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringNameHelper - org.omg.CosNaming.NamingContextExtPackage",
"kind": 7,
"detail": "org.omg.CosNaming.NamingContextExtPackage.StringNameHelper",
"sortText": "999999212",
"filterText": "StringNameHelper",
"insertText": "StringNameHelper",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringNameHelper"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 11,
"character": 34
},
"end": {
"line": 11,
"character": 34
}
},
"newText": "\nimport org.omg.CosNaming.NamingContextExtPackage.StringNameHelper;"
}
],
"data": {
"decl_signature": "Lorg.omg.CosNaming.NamingContextExtPackage.StringNameHelper;",
"pid": "33",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringCounter - sun.management.counter",
"kind": 7,
"detail": "sun.management.counter.StringCounter",
"sortText": "999999212",
"filterText": "StringCounter",
"insertText": "StringCounter",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringCounter"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport sun.management.counter.StringCounter;\n\n"
}
],
"data": {
"decl_signature": "Lsun.management.counter.StringCounter;",
"pid": "34",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringCounterSnapshot - sun.management.counter.perf",
"kind": 7,
"detail": "sun.management.counter.perf.StringCounterSnapshot",
"sortText": "999999212",
"filterText": "StringCounterSnapshot",
"insertText": "StringCounterSnapshot",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringCounterSnapshot"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport sun.management.counter.perf.StringCounterSnapshot;\n\n"
}
],
"data": {
"decl_signature": "Lsun.management.counter.perf.StringCounterSnapshot;",
"pid": "35",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringPrepDataReader - sun.net.idn",
"kind": 7,
"detail": "sun.net.idn.StringPrepDataReader",
"sortText": "999999212",
"filterText": "StringPrepDataReader",
"insertText": "StringPrepDataReader",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringPrepDataReader"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport sun.net.idn.StringPrepDataReader;\n\n"
}
],
"data": {
"decl_signature": "Lsun.net.idn.StringPrepDataReader;",
"pid": "36",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringPrepTrieImpl - sun.net.idn",
"kind": 7,
"detail": "sun.net.idn.StringPrepTrieImpl",
"sortText": "999999212",
"filterText": "StringPrepTrieImpl",
"insertText": "StringPrepTrieImpl",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringPrepTrieImpl"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport sun.net.idn.StringPrepTrieImpl;\n\n"
}
],
"data": {
"decl_signature": "Lsun.net.idn.StringPrepTrieImpl;",
"pid": "37",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringPrep - sun.net.idn",
"kind": 7,
"detail": "sun.net.idn.StringPrep",
"sortText": "999999212",
"filterText": "StringPrep",
"insertText": "StringPrep",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringPrep"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport sun.net.idn.StringPrep;\n\n"
}
],
"data": {
"decl_signature": "Lsun.net.idn.StringPrep;",
"pid": "38",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringUIClientPropertyKey - sun.swing",
"kind": 7,
"detail": "sun.swing.StringUIClientPropertyKey",
"sortText": "999999212",
"filterText": "StringUIClientPropertyKey",
"insertText": "StringUIClientPropertyKey",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringUIClientPropertyKey"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport sun.swing.StringUIClientPropertyKey;\n\n"
}
],
"data": {
"decl_signature": "Lsun.swing.StringUIClientPropertyKey;",
"pid": "39",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "StringTokenIterator - sun.util.locale",
"kind": 7,
"detail": "sun.util.locale.StringTokenIterator",
"sortText": "999999212",
"filterText": "StringTokenIterator",
"insertText": "StringTokenIterator",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "StringTokenIterator"
},
"additionalTextEdits": [
{
"range": {
"start": {
"line": 15,
"character": 36
},
"end": {
"line": 16,
"character": 0
}
},
"newText": "\nimport sun.util.locale.StringTokenIterator;\n\n"
}
],
"data": {
"decl_signature": "Lsun.util.locale.StringTokenIterator;",
"pid": "40",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
},
{
"label": "toString() : String",
"kind": 2,
"detail": "Object.toString() : String",
"sortText": "999999659",
"insertText": "toString",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "toString()"
},
"data": {
"decl_signature": "Ljava.lang.Object;",
"signature": "()Ljava.lang.String;",
"name": "toString",
"pid": "41",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
}
]
}

[Trace - 2:06:34 PM] Sending request 'completionItem/resolve - (74)'.
Params: {
"label": "String - java.lang",
"detail": "java.lang.String",
"filterText": "String",
"insertTextFormat": 2,
"textEdit": {
"newText": "String",
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
}
},
"kind": 7,
"sortText": "999999100",
"data": {
"decl_signature": "Ljava.lang.String;",
"pid": "0",
"rid": "13",
"uri": "file:///Users/fbricon/Dev/quarkus-projects/totoototo/src/test/java/foo/bar/action/Tester.java"
}
}

[Trace - 2:06:34 PM] Received notification 'window/logMessage'.
Params: {
"type": 3,
"message": "8-Jun-2020 2:06:34 PM >> document/resolveCompletionItem"
}

[Info - 2:06:34 PM] 8-Jun-2020 2:06:34 PM >> document/resolveCompletionItem
[Trace - 2:06:35 PM] Received response 'completionItem/resolve - (74)' in 91ms.
Result: {
"label": "String - java.lang",
"kind": 7,
"detail": "java.lang.String",
"documentation": {
"kind": "markdown",
"value": "The String class represents character strings. All string literals in Java programs, such as \"abc\", are implemented as instances of this class.\n\nStrings are constant; their values cannot be changed after they are created. String buffers support mutable strings. Because String objects are immutable they can be shared. For example:\n\n> String str = "abc";\n\nis equivalent to:\n\n> char data[] = {'a', 'b', 'c'};\n> String str = new String(data);\n\nHere are some more examples of how strings can be used:\n\n> System.out.println("abc");\n> String cde = "cde";\n> System.out.println("abc" + cde);\n> String c = "abc".substring(2,3);\n> String d = cde.substring(1, 2);\n\nThe class String includes methods for examining individual characters of the sequence, for comparing strings, for searching strings, for extracting substrings, and for creating a copy of a string with all characters translated to uppercase or to lowercase. Case mapping is based on the Unicode Standard version specified by the Character class.\n\nThe Java language provides special support for the string concatenation operator ( + ), and for conversion of other objects to strings. String concatenation is implemented through the StringBuilder(or StringBuffer) class and its append method. String conversions are implemented through the method toString, defined by Object and inherited by all classes in Java. For additional information on string concatenation and conversion, see Gosling, Joy, and Steele, The Java Language Specification.\n\nUnless otherwise noted, passing a null argument to a constructor or method in this class will cause a NullPointerException to be thrown.\n\nA String represents a string in the UTF-16 format in which supplementary characters are represented by surrogate pairs (see the section Unicode Character Representations in the Character class for more information). Index values refer to char code units, so a supplementary character uses two positions in a String.\n\nThe String class provides methods for dealing with Unicode code points (i.e., characters), in addition to those for dealing with Unicode code units (i.e., char values).\n\n * Since:\n \n * JDK1.0\n * Author:\n \n * Lee Boynton\n \n * Arthur van Hoff\n \n * Martin Buchholz\n \n * Ulf Zibis\n * See Also:\n \n * java.lang.Object.toString()\n \n * java.lang.StringBuffer\n \n * java.lang.StringBuilder\n \n * java.nio.charset.Charset"
},
"sortText": "999999100",
"filterText": "String",
"insertTextFormat": 2,
"textEdit": {
"range": {
"start": {
"line": 22,
"character": 8
},
"end": {
"line": 22,
"character": 14
}
},
"newText": "String"
}
}

@fbricon
Copy link
Contributor

fbricon commented Jun 8, 2020

Works fine with the LemMinX codebase. There's something fishy with my test project, but I don't think it's related to this PR. I'm fine with merging it.

@fbricon fbricon merged commit 31d7bd2 into eclipse-jdtls:master Jun 8, 2020
@fbricon fbricon added this to the Mid June 2020 milestone Jun 8, 2020
@fbricon
Copy link
Contributor

fbricon commented Jun 8, 2020

Thanks @testforstephen!

@testforstephen testforstephen deleted the jinbo_codecompletion branch June 8, 2020 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants