diff --git a/language-server/modules/langserver-core/src/test/resources/completion/annotation/annotationAccessExpression1.json b/language-server/modules/langserver-core/src/test/resources/completion/annotation/annotationAccessExpression1.json index ab9fc1628b9c..bb644b947bc1 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/annotation/annotationAccessExpression1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/annotation/annotationAccessExpression1.json @@ -100,29 +100,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/jwt", "kind": "Module", @@ -629,6 +606,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1182,4 +1182,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/annotation/annotationAccessExpression2.json b/language-server/modules/langserver-core/src/test/resources/completion/annotation/annotationAccessExpression2.json index 77feb6e15834..eb57a3ce9315 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/annotation/annotationAccessExpression2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/annotation/annotationAccessExpression2.json @@ -100,29 +100,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/jwt", "kind": "Module", @@ -629,6 +606,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1182,4 +1182,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/annotation/annotationBodyCompletion3.json b/language-server/modules/langserver-core/src/test/resources/completion/annotation/annotationBodyCompletion3.json index 18d8d8efd1a3..b4e81ad92e25 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/annotation/annotationBodyCompletion3.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/annotation/annotationBodyCompletion3.json @@ -66,29 +66,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -595,6 +572,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 0 + }, + "end": { + "line": 2, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1189,4 +1189,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/annotation/externalAnnotation1.json b/language-server/modules/langserver-core/src/test/resources/completion/annotation/externalAnnotation1.json index 053c51145b2a..a739212b0453 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/annotation/externalAnnotation1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/annotation/externalAnnotation1.json @@ -24,7 +24,7 @@ "character": 0 } }, - "newText": "import ballerinax/java;\n" + "newText": "import ballerina/java;\n" } ] }, @@ -47,7 +47,7 @@ "character": 0 } }, - "newText": "import ballerinax/java;\n" + "newText": "import ballerina/java;\n" } ] }, @@ -70,7 +70,7 @@ "character": 0 } }, - "newText": "import ballerinax/java;\n" + "newText": "import ballerina/java;\n" } ] }, @@ -93,9 +93,9 @@ "character": 0 } }, - "newText": "import ballerinax/java;\n" + "newText": "import ballerina/java;\n" } ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/annotation/externalAnnotation2.json b/language-server/modules/langserver-core/src/test/resources/completion/annotation/externalAnnotation2.json index 62f18bc51d6e..b1cc507c9e43 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/annotation/externalAnnotation2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/annotation/externalAnnotation2.json @@ -24,7 +24,7 @@ "character": 0 } }, - "newText": "import ballerinax/java;\n" + "newText": "import ballerina/java;\n" } ] }, @@ -47,7 +47,7 @@ "character": 0 } }, - "newText": "import ballerinax/java;\n" + "newText": "import ballerina/java;\n" } ] }, @@ -70,7 +70,7 @@ "character": 0 } }, - "newText": "import ballerinax/java;\n" + "newText": "import ballerina/java;\n" } ] }, @@ -93,9 +93,9 @@ "character": 0 } }, - "newText": "import ballerinax/java;\n" + "newText": "import ballerina/java;\n" } ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/anonFunctionSnippetSuggestion1.json b/language-server/modules/langserver-core/src/test/resources/completion/function/anonFunctionSnippetSuggestion1.json index 99b5c737b759..4fffeb149152 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/anonFunctionSnippetSuggestion1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/anonFunctionSnippetSuggestion1.json @@ -50,29 +50,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -602,6 +579,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/anonFunctionSnippetSuggestion2.json b/language-server/modules/langserver-core/src/test/resources/completion/function/anonFunctionSnippetSuggestion2.json index e1d92d5de329..d878bacb6255 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/anonFunctionSnippetSuggestion2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/anonFunctionSnippetSuggestion2.json @@ -42,29 +42,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -594,6 +571,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/anonFunctionSnippetSuggestion3.json b/language-server/modules/langserver-core/src/test/resources/completion/function/anonFunctionSnippetSuggestion3.json index 2d00f4154304..7aee0a7fce46 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/anonFunctionSnippetSuggestion3.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/anonFunctionSnippetSuggestion3.json @@ -42,29 +42,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -594,6 +571,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/assignmentStmt4.json b/language-server/modules/langserver-core/src/test/resources/completion/function/assignmentStmt4.json index a7d72efd866d..6fc7e3eddf82 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/assignmentStmt4.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/assignmentStmt4.json @@ -36,29 +36,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -588,6 +565,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1136,4 +1136,4 @@ } } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/assignmentStmt5.json b/language-server/modules/langserver-core/src/test/resources/completion/function/assignmentStmt5.json index efb6ddeb6b94..daa61113bec1 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/assignmentStmt5.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/assignmentStmt5.json @@ -36,29 +36,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -588,6 +565,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1132,4 +1132,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionAfterIf1.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionAfterIf1.json index 21f244142643..ebf7adb66d65 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionAfterIf1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionAfterIf1.json @@ -387,29 +387,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -939,6 +916,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1492,4 +1492,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionAfterIf2.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionAfterIf2.json index 0595f8a156ff..1a2bdee7c494 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionAfterIf2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionAfterIf2.json @@ -395,29 +395,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -947,6 +924,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1500,4 +1500,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionBeforeIfElse.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionBeforeIfElse.json index be547d4749a8..f7cae2db1dc8 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionBeforeIfElse.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionBeforeIfElse.json @@ -479,29 +479,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 3, - "character": 0 - }, - "end": { - "line": 3, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1008,6 +985,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 3, + "character": 0 + }, + "end": { + "line": 3, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1515,4 +1515,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionBeforeWhile.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionBeforeWhile.json index cea76552a13d..0ca394eff7d1 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionBeforeWhile.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionBeforeWhile.json @@ -495,29 +495,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 3, - "character": 0 - }, - "end": { - "line": 3, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1024,6 +1001,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 3, + "character": 0 + }, + "end": { + "line": 3, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1531,4 +1531,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinElse.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinElse.json index 6114b3d05e94..ab697b6958be 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinElse.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinElse.json @@ -471,29 +471,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 3, - "character": 0 - }, - "end": { - "line": 3, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1000,6 +977,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 3, + "character": 0 + }, + "end": { + "line": 3, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1507,4 +1507,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinElseIf.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinElseIf.json index 771495591eec..afd34b42fcfb 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinElseIf.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinElseIf.json @@ -471,29 +471,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 3, - "character": 0 - }, - "end": { - "line": 3, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1000,6 +977,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 3, + "character": 0 + }, + "end": { + "line": 3, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1507,4 +1507,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinIf.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinIf.json index bbeaef1cc5f1..22ca2e03e2ce 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinIf.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinIf.json @@ -471,29 +471,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 3, - "character": 0 - }, - "end": { - "line": 3, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1000,6 +977,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 3, + "character": 0 + }, + "end": { + "line": 3, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1507,4 +1507,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs1.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs1.json index ff085ec44194..e3f94918e83b 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs1.json @@ -263,29 +263,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -815,6 +792,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1353,4 +1353,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs12.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs12.json index 1332383a00aa..035f283d71c4 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs12.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs12.json @@ -281,29 +281,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -833,6 +810,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1371,4 +1371,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs13.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs13.json index 84dd914aeb36..24895200e1cb 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs13.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs13.json @@ -281,29 +281,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -833,6 +810,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1371,4 +1371,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs2.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs2.json index f61942b0f2db..4d5ab3fd4705 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs2.json @@ -263,29 +263,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -815,6 +792,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1353,4 +1353,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs4.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs4.json index 0cc10197f6ed..9a9bda44a507 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs4.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs4.json @@ -281,29 +281,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -833,6 +810,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1371,4 +1371,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs8.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs8.json index b0922922da40..a50b48b77b0e 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs8.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinInvocationArgs8.json @@ -66,29 +66,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -595,6 +572,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1212,4 +1212,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinTransaction.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinTransaction.json index 5c5568c2c6ee..7c95d4f7a61a 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinTransaction.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinTransaction.json @@ -495,29 +495,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 3, - "character": 0 - }, - "end": { - "line": 3, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1024,6 +1001,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 3, + "character": 0 + }, + "end": { + "line": 3, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1531,4 +1531,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinTransactionOnRetry.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinTransactionOnRetry.json index 47ea50554211..3f48a9f2e6df 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinTransactionOnRetry.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinTransactionOnRetry.json @@ -463,29 +463,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 3, - "character": 0 - }, - "end": { - "line": 3, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -992,6 +969,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 3, + "character": 0 + }, + "end": { + "line": 3, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1499,4 +1499,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinWhile.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinWhile.json index 6bd8ad45fcaf..23132e78053d 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinWhile.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinWhile.json @@ -487,29 +487,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 3, - "character": 0 - }, - "end": { - "line": 3, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1016,6 +993,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 3, + "character": 0 + }, + "end": { + "line": 3, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1523,4 +1523,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinWorkersInResource.json b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinWorkersInResource.json index 1a6d247eeb74..bd086ef7b7af 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinWorkersInResource.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/completionWithinWorkersInResource.json @@ -487,29 +487,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 3, - "character": 0 - }, - "end": { - "line": 3, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1016,6 +993,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 3, + "character": 0 + }, + "end": { + "line": 3, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1523,4 +1523,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/emptyLineCompletion.json b/language-server/modules/langserver-core/src/test/resources/completion/function/emptyLineCompletion.json index 824b73db144f..a9910a8015b8 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/emptyLineCompletion.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/emptyLineCompletion.json @@ -507,29 +507,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1036,6 +1013,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1589,4 +1589,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/errorVarDefSuggestion1.json b/language-server/modules/langserver-core/src/test/resources/completion/function/errorVarDefSuggestion1.json index 91dcd3c4ee83..32b3f089fb07 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/errorVarDefSuggestion1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/errorVarDefSuggestion1.json @@ -94,29 +94,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -646,6 +623,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1263,4 +1263,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/forkJoinCompletion1.json b/language-server/modules/langserver-core/src/test/resources/completion/function/forkJoinCompletion1.json index 66077dff7d6f..3e25c99bc1b6 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/forkJoinCompletion1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/forkJoinCompletion1.json @@ -403,29 +403,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -955,6 +932,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1508,4 +1508,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/forkJoinCompletion4.json b/language-server/modules/langserver-core/src/test/resources/completion/function/forkJoinCompletion4.json index 03e7ed159c8d..847449317ce4 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/forkJoinCompletion4.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/forkJoinCompletion4.json @@ -395,29 +395,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -947,6 +924,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1500,4 +1500,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/functionPointerAsParameter.json b/language-server/modules/langserver-core/src/test/resources/completion/function/functionPointerAsParameter.json index fcbfee9c0034..d99700f0b27c 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/functionPointerAsParameter.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/functionPointerAsParameter.json @@ -409,29 +409,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -961,6 +938,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1514,4 +1514,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/ifWhileConditionContextCompletion2.json b/language-server/modules/langserver-core/src/test/resources/completion/function/ifWhileConditionContextCompletion2.json index 5375bf3c9b59..7e73993b792f 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/ifWhileConditionContextCompletion2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/ifWhileConditionContextCompletion2.json @@ -251,29 +251,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -803,6 +780,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1356,4 +1356,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/ifWhileConditionContextCompletion5.json b/language-server/modules/langserver-core/src/test/resources/completion/function/ifWhileConditionContextCompletion5.json index ddc4c64186b4..3e24a9d93f79 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/ifWhileConditionContextCompletion5.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/ifWhileConditionContextCompletion5.json @@ -259,29 +259,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -811,6 +788,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1341,4 +1341,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/langLibPackageSuggestion1.json b/language-server/modules/langserver-core/src/test/resources/completion/function/langLibPackageSuggestion1.json index 16b950343f4f..30b57869b3f9 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/langLibPackageSuggestion1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/langLibPackageSuggestion1.json @@ -387,29 +387,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -916,6 +893,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1469,4 +1469,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/langLibPackageSuggestion2.json b/language-server/modules/langserver-core/src/test/resources/completion/function/langLibPackageSuggestion2.json index 4317a228c44f..14853ec7eb86 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/langLibPackageSuggestion2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/langLibPackageSuggestion2.json @@ -387,29 +387,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -916,6 +893,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1469,4 +1469,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions10.json b/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions10.json index 3918725fe18d..ff1f0108b859 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions10.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions10.json @@ -495,29 +495,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1024,6 +1001,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 0 + }, + "end": { + "line": 2, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1554,4 +1554,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions5.json b/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions5.json index 8294468d1e0a..38ee4bdbb9e2 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions5.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions5.json @@ -479,29 +479,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1008,6 +985,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 0 + }, + "end": { + "line": 2, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1538,4 +1538,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions6.json b/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions6.json index 58b0138f9880..471227667f73 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions6.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions6.json @@ -503,29 +503,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1032,6 +1009,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 0 + }, + "end": { + "line": 2, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1562,4 +1562,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions7.json b/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions7.json index a69b38ecefb3..2e5c9b638647 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions7.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions7.json @@ -479,29 +479,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1008,6 +985,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 0 + }, + "end": { + "line": 2, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1538,4 +1538,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions8.json b/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions8.json index ea528f47ad90..dd78cea15c79 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions8.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions8.json @@ -479,29 +479,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1008,6 +985,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 0 + }, + "end": { + "line": 2, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1538,4 +1538,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions9.json b/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions9.json index 9b424dc69580..05efc2d05e5d 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions9.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/matchStatementSuggestions9.json @@ -479,29 +479,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1008,6 +985,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 0 + }, + "end": { + "line": 2, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1538,4 +1538,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/newObjectCompletion1.json b/language-server/modules/langserver-core/src/test/resources/completion/function/newObjectCompletion1.json index acc4f557e9d1..93305627e782 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/newObjectCompletion1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/newObjectCompletion1.json @@ -100,29 +100,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -652,6 +629,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1254,4 +1254,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/newObjectCompletion2.json b/language-server/modules/langserver-core/src/test/resources/completion/function/newObjectCompletion2.json index 265b755c0a3c..8d25e98d011a 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/newObjectCompletion2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/newObjectCompletion2.json @@ -66,29 +66,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -618,6 +595,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1220,4 +1220,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/newObjectCompletion3.json b/language-server/modules/langserver-core/src/test/resources/completion/function/newObjectCompletion3.json index 1b5a26b9d690..08f5dee6b63e 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/newObjectCompletion3.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/newObjectCompletion3.json @@ -86,29 +86,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -638,6 +615,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1240,4 +1240,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/nonEmptyLineCompletion.json b/language-server/modules/langserver-core/src/test/resources/completion/function/nonEmptyLineCompletion.json index c37511a92d8e..1b4a7648b27e 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/nonEmptyLineCompletion.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/nonEmptyLineCompletion.json @@ -507,29 +507,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1036,6 +1013,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1589,4 +1589,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/suggestionsInWorkersWithinFunction.json b/language-server/modules/langserver-core/src/test/resources/completion/function/suggestionsInWorkersWithinFunction.json index c33b0a33833b..c736c40be96f 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/suggestionsInWorkersWithinFunction.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/suggestionsInWorkersWithinFunction.json @@ -429,29 +429,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -958,6 +935,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1511,4 +1511,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/typeGuardSuggestions5.json b/language-server/modules/langserver-core/src/test/resources/completion/function/typeGuardSuggestions5.json index c2973116d087..9cb8af3ca620 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/typeGuardSuggestions5.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/typeGuardSuggestions5.json @@ -395,29 +395,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -947,6 +924,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1500,4 +1500,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/typeguardDestruct1.json b/language-server/modules/langserver-core/src/test/resources/completion/function/typeguardDestruct1.json index 46f592b768e0..87881c0f5e5b 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/typeguardDestruct1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/typeguardDestruct1.json @@ -411,29 +411,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -963,6 +940,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1493,4 +1493,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/typeofKWSuggestion.json b/language-server/modules/langserver-core/src/test/resources/completion/function/typeofKWSuggestion.json index b292b37df9cd..d06134f9271a 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/typeofKWSuggestion.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/typeofKWSuggestion.json @@ -50,29 +50,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -602,6 +579,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1219,4 +1219,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/typeofKWSuggestion2.json b/language-server/modules/langserver-core/src/test/resources/completion/function/typeofKWSuggestion2.json index 395ecbd7dd42..ecdd2076f4cf 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/typeofKWSuggestion2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/typeofKWSuggestion2.json @@ -50,29 +50,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -602,6 +579,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1219,4 +1219,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/varDefStmt2.json b/language-server/modules/langserver-core/src/test/resources/completion/function/varDefStmt2.json index d6fdc16f3efd..422ee51347c1 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/varDefStmt2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/varDefStmt2.json @@ -90,29 +90,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -642,6 +619,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1244,4 +1244,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function/varDefStmt3.json b/language-server/modules/langserver-core/src/test/resources/completion/function/varDefStmt3.json index 63acd282a9b0..fcff0ae0a2d5 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function/varDefStmt3.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function/varDefStmt3.json @@ -61,29 +61,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -613,6 +590,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1238,4 +1238,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest1.json b/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest1.json index e632bd959dc3..81d2c86f191e 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest1.json @@ -229,29 +229,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -781,6 +758,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1422,4 +1422,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest10.json b/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest10.json index 7e85b904b76f..28c2dbd1c03e 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest10.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest10.json @@ -86,29 +86,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -638,6 +615,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1240,4 +1240,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest14.json b/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest14.json index 52b64fa40747..139f6e282361 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest14.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest14.json @@ -36,29 +36,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -588,6 +565,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1141,4 +1141,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest5.json b/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest5.json index 3bbfbfb17701..33ebc51897e7 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest5.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest5.json @@ -44,29 +44,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -596,6 +573,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1221,4 +1221,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest6.json b/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest6.json index 938d373651ab..2964d46604d0 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest6.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest6.json @@ -78,29 +78,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -630,6 +607,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1232,4 +1232,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest7.json b/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest7.json index 66b6edb9bcbf..c3424f978a14 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest7.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/object/objectTest7.json @@ -36,29 +36,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -588,6 +565,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1118,4 +1118,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/packageimport/packageImport4.json b/language-server/modules/langserver-core/src/test/resources/completion/packageimport/packageImport4.json index 6703ad189a91..2c2d4ceb1d16 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/packageimport/packageImport4.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/packageimport/packageImport4.json @@ -381,29 +381,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -910,6 +887,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1463,4 +1463,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/record/recordTest1.json b/language-server/modules/langserver-core/src/test/resources/completion/record/recordTest1.json index d14f8b931ca2..ce60d5589f8e 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/record/recordTest1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/record/recordTest1.json @@ -70,29 +70,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -622,6 +599,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1239,4 +1239,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/resource/completionBeforeUnderscore3.json b/language-server/modules/langserver-core/src/test/resources/completion/resource/completionBeforeUnderscore3.json index dcb6951d2bc1..54de39ab0c53 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/resource/completionBeforeUnderscore3.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/resource/completionBeforeUnderscore3.json @@ -413,29 +413,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -965,6 +942,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1495,4 +1495,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/resource/emptyLineCompletion.json b/language-server/modules/langserver-core/src/test/resources/completion/resource/emptyLineCompletion.json index 781fef24396c..d5f7d4a48dd1 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/resource/emptyLineCompletion.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/resource/emptyLineCompletion.json @@ -505,29 +505,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1057,6 +1034,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1587,4 +1587,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/resource/nonEmptyLineCompletion.json b/language-server/modules/langserver-core/src/test/resources/completion/resource/nonEmptyLineCompletion.json index 84de73c3643b..b10223877d5c 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/resource/nonEmptyLineCompletion.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/resource/nonEmptyLineCompletion.json @@ -505,29 +505,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1057,6 +1034,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1587,4 +1587,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/service/completionAftercheckpanic.json b/language-server/modules/langserver-core/src/test/resources/completion/service/completionAftercheckpanic.json index dd20c576fb2e..2578b6f98cba 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/service/completionAftercheckpanic.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/service/completionAftercheckpanic.json @@ -68,29 +68,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -620,6 +597,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1214,4 +1214,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/service/serviceEndpointBind5.json b/language-server/modules/langserver-core/src/test/resources/completion/service/serviceEndpointBind5.json index 5b2abd19d623..8925edfce451 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/service/serviceEndpointBind5.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/service/serviceEndpointBind5.json @@ -36,29 +36,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -588,6 +565,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1118,4 +1118,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/testablepackage/blockStatementCompletion.json b/language-server/modules/langserver-core/src/test/resources/completion/testablepackage/blockStatementCompletion.json index 9777971cfbcd..78fc40560653 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/testablepackage/blockStatementCompletion.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/testablepackage/blockStatementCompletion.json @@ -451,29 +451,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -957,6 +934,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 0 + }, + "end": { + "line": 2, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1510,4 +1510,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/allTopLevelItemSkip.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/allTopLevelItemSkip.json index 3c1e6da01263..402a6203d59e 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/allTopLevelItemSkip.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/allTopLevelItemSkip.json @@ -473,29 +473,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -1025,6 +1002,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1555,4 +1555,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/exprFunctionBodyCompletion1.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/exprFunctionBodyCompletion1.json index 15f4d58b242a..39176d43d635 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/exprFunctionBodyCompletion1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/exprFunctionBodyCompletion1.json @@ -30,11 +30,11 @@ "insertTextFormat": "Snippet" }, { - "label": "ballerina/cache", + "label": "ballerinax/java.jdbc", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "cache", + "insertText": "jdbc", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -48,16 +48,16 @@ "character": 0 } }, - "newText": "import ballerina/cache;\n" + "newText": "import ballerinax/java.jdbc;\n" } ] }, { - "label": "ballerina/nats", + "label": "ballerina/lang.object", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "nats", + "insertText": "'object", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -71,16 +71,16 @@ "character": 0 } }, - "newText": "import ballerina/nats;\n" + "newText": "import ballerina/lang.'object;\n" } ] }, { - "label": "ballerina/lang.future", + "label": "ballerina/jwt", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'future", + "insertText": "jwt", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -94,16 +94,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'future;\n" + "newText": "import ballerina/jwt;\n" } ] }, { - "label": "ballerina/lang.value", + "label": "ballerina/lang.boolean", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'value", + "insertText": "'boolean", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -117,16 +117,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'value;\n" + "newText": "import ballerina/lang.'boolean;\n" } ] }, { - "label": "ballerina/auth", + "label": "ballerina/lang.xml", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "auth", + "insertText": "'xml", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -140,16 +140,16 @@ "character": 0 } }, - "newText": "import ballerina/auth;\n" + "newText": "import ballerina/lang.'xml;\n" } ] }, { - "label": "ballerina/lang.stream", + "label": "ballerina/crypto", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'stream", + "insertText": "crypto", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -163,16 +163,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'stream;\n" + "newText": "import ballerina/crypto;\n" } ] }, { - "label": "ballerina/lang.object", + "label": "ballerina/lang.array", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'object", + "insertText": "'array", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -186,16 +186,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'object;\n" + "newText": "import ballerina/lang.'array;\n" } ] }, { - "label": "ballerina/runtime", + "label": "ballerina/stringutils", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "runtime", + "insertText": "stringutils", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -209,16 +209,16 @@ "character": 0 } }, - "newText": "import ballerina/runtime;\n" + "newText": "import ballerina/stringutils;\n" } ] }, { - "label": "ballerina/log", + "label": "ballerina/cache", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "log", + "insertText": "cache", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -232,16 +232,16 @@ "character": 0 } }, - "newText": "import ballerina/log;\n" + "newText": "import ballerina/cache;\n" } ] }, { - "label": "ballerina/lang.xml", + "label": "ballerina/test", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'xml", + "insertText": "test", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -255,16 +255,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'xml;\n" + "newText": "import ballerina/test;\n" } ] }, { - "label": "ballerina/system", + "label": "ballerina/file", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "system", + "insertText": "file", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -278,16 +278,16 @@ "character": 0 } }, - "newText": "import ballerina/system;\n" + "newText": "import ballerina/file;\n" } ] }, { - "label": "ballerina/lang.table", + "label": "ballerina/grpc", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'table", + "insertText": "grpc", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -301,16 +301,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'table;\n" + "newText": "import ballerina/grpc;\n" } ] }, { - "label": "ballerina/lang.typedesc", + "label": "ballerina/bir", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'typedesc", + "insertText": "bir", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -324,16 +324,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'typedesc;\n" + "newText": "import ballerina/bir;\n" } ] }, { - "label": "ballerina/lang.boolean", + "label": "ballerina/config", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'boolean", + "insertText": "config", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -347,16 +347,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'boolean;\n" + "newText": "import ballerina/config;\n" } ] }, { - "label": "ballerina/lang.decimal", + "label": "ballerina/auth", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'decimal", + "insertText": "auth", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -370,16 +370,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'decimal;\n" + "newText": "import ballerina/auth;\n" } ] }, { - "label": "ballerina/oauth2", + "label": "ballerina/filepath", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "oauth2", + "insertText": "filepath", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -393,16 +393,16 @@ "character": 0 } }, - "newText": "import ballerina/oauth2;\n" + "newText": "import ballerina/filepath;\n" } ] }, { - "label": "ballerina/time", + "label": "ballerina/ldap", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "time", + "insertText": "ldap", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -416,16 +416,16 @@ "character": 0 } }, - "newText": "import ballerina/time;\n" + "newText": "import ballerina/ldap;\n" } ] }, { - "label": "ballerina/observe", + "label": "ballerina/reflect", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "observe", + "insertText": "reflect", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -439,16 +439,16 @@ "character": 0 } }, - "newText": "import ballerina/observe;\n" + "newText": "import ballerina/reflect;\n" } ] }, { - "label": "ballerina/math", + "label": "ballerina/lang.string", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "math", + "insertText": "'string", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -462,16 +462,16 @@ "character": 0 } }, - "newText": "import ballerina/math;\n" + "newText": "import ballerina/lang.'string;\n" } ] }, { - "label": "ballerina/task", + "label": "ballerina/io", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "task", + "insertText": "io", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -485,16 +485,16 @@ "character": 0 } }, - "newText": "import ballerina/task;\n" + "newText": "import ballerina/io;\n" } ] }, { - "label": "ballerina/crypto", + "label": "ballerina/runtime", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "crypto", + "insertText": "runtime", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -508,16 +508,16 @@ "character": 0 } }, - "newText": "import ballerina/crypto;\n" + "newText": "import ballerina/runtime;\n" } ] }, { - "label": "ballerina/encoding", + "label": "ballerina/oauth2", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "encoding", + "insertText": "oauth2", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -531,16 +531,16 @@ "character": 0 } }, - "newText": "import ballerina/encoding;\n" + "newText": "import ballerina/oauth2;\n" } ] }, { - "label": "ballerina/filepath", + "label": "ballerina/jvm", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "filepath", + "insertText": "jvm", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -554,16 +554,16 @@ "character": 0 } }, - "newText": "import ballerina/filepath;\n" + "newText": "import ballerina/jvm;\n" } ] }, { - "label": "ballerina/grpc", + "label": "ballerina/encoding", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "grpc", + "insertText": "encoding", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -577,16 +577,16 @@ "character": 0 } }, - "newText": "import ballerina/grpc;\n" + "newText": "import ballerina/encoding;\n" } ] }, { - "label": "ballerina/email", + "label": "ballerina/java", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "email", + "insertText": "java", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -600,16 +600,16 @@ "character": 0 } }, - "newText": "import ballerina/email;\n" + "newText": "import ballerina/java;\n" } ] }, { - "label": "ballerina/ldap", + "label": "ballerina/rabbitmq", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "ldap", + "insertText": "rabbitmq", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -623,16 +623,16 @@ "character": 0 } }, - "newText": "import ballerina/ldap;\n" + "newText": "import ballerina/rabbitmq;\n" } ] }, { - "label": "ballerina/bir", + "label": "ballerina/lang.future", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "bir", + "insertText": "'future", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -646,16 +646,16 @@ "character": 0 } }, - "newText": "import ballerina/bir;\n" + "newText": "import ballerina/lang.'future;\n" } ] }, { - "label": "ballerina/io", + "label": "ballerina/lang.value", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "io", + "insertText": "'value", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -669,16 +669,16 @@ "character": 0 } }, - "newText": "import ballerina/io;\n" + "newText": "import ballerina/lang.'value;\n" } ] }, { - "label": "ballerina/lang.array", + "label": "ballerina/openapi", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'array", + "insertText": "openapi", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -692,16 +692,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'array;\n" + "newText": "import ballerina/openapi;\n" } ] }, { - "label": "ballerina/jvm", + "label": "ballerina/math", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "jvm", + "insertText": "math", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -715,16 +715,16 @@ "character": 0 } }, - "newText": "import ballerina/jvm;\n" + "newText": "import ballerina/math;\n" } ] }, { - "label": "ballerina/lang.error", + "label": "ballerina/time", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'error", + "insertText": "time", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -738,16 +738,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'error;\n" + "newText": "import ballerina/time;\n" } ] }, { - "label": "ballerina/lang.map", + "label": "ballerina/observe", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'map", + "insertText": "observe", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -761,16 +761,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'map;\n" + "newText": "import ballerina/observe;\n" } ] }, { - "label": "ballerina/test", + "label": "ballerina/system", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "test", + "insertText": "system", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -784,16 +784,16 @@ "character": 0 } }, - "newText": "import ballerina/test;\n" + "newText": "import ballerina/system;\n" } ] }, { - "label": "ballerina/lang.string", + "label": "ballerina/lang.float", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'string", + "insertText": "'float", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -807,16 +807,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'string;\n" + "newText": "import ballerina/lang.'float;\n" } ] }, { - "label": "ballerina/lang.int", + "label": "ballerina/transactions", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'int", + "insertText": "transactions", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -830,16 +830,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'int;\n" + "newText": "import ballerina/transactions;\n" } ] }, { - "label": "ballerina/lang.float", + "label": "ballerina/nats", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'float", + "insertText": "nats", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -853,16 +853,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'float;\n" + "newText": "import ballerina/nats;\n" } ] }, { - "label": "ballerina/rabbitmq", + "label": "ballerina/lang.decimal", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "rabbitmq", + "insertText": "'decimal", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -876,16 +876,16 @@ "character": 0 } }, - "newText": "import ballerina/rabbitmq;\n" + "newText": "import ballerina/lang.'decimal;\n" } ] }, { - "label": "ballerina/transactions", + "label": "ballerina/task", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "transactions", + "insertText": "task", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -899,16 +899,16 @@ "character": 0 } }, - "newText": "import ballerina/transactions;\n" + "newText": "import ballerina/task;\n" } ] }, { - "label": "ballerina/jwt", + "label": "ballerina/lang.table", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "jwt", + "insertText": "'table", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -922,16 +922,16 @@ "character": 0 } }, - "newText": "import ballerina/jwt;\n" + "newText": "import ballerina/lang.'table;\n" } ] }, { - "label": "ballerina/stringutils", + "label": "ballerina/log", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "stringutils", + "insertText": "log", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -945,16 +945,16 @@ "character": 0 } }, - "newText": "import ballerina/stringutils;\n" + "newText": "import ballerina/log;\n" } ] }, { - "label": "ballerina/socket", + "label": "ballerina/mime", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "socket", + "insertText": "mime", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -968,16 +968,16 @@ "character": 0 } }, - "newText": "import ballerina/socket;\n" + "newText": "import ballerina/mime;\n" } ] }, { - "label": "ballerina/reflect", + "label": "ballerina/lang.stream", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "reflect", + "insertText": "'stream", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -991,16 +991,16 @@ "character": 0 } }, - "newText": "import ballerina/reflect;\n" + "newText": "import ballerina/lang.'stream;\n" } ] }, { - "label": "ballerina/openapi", + "label": "ballerina/lang.error", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "openapi", + "insertText": "'error", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -1014,16 +1014,16 @@ "character": 0 } }, - "newText": "import ballerina/openapi;\n" + "newText": "import ballerina/lang.'error;\n" } ] }, { - "label": "ballerina/mime", + "label": "ballerina/lang.typedesc", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "mime", + "insertText": "'typedesc", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -1037,16 +1037,16 @@ "character": 0 } }, - "newText": "import ballerina/mime;\n" + "newText": "import ballerina/lang.'typedesc;\n" } ] }, { - "label": "ballerina/config", + "label": "ballerina/lang.map", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "config", + "insertText": "'map", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -1060,16 +1060,16 @@ "character": 0 } }, - "newText": "import ballerina/config;\n" + "newText": "import ballerina/lang.'map;\n" } ] }, { - "label": "ballerina/file", + "label": "ballerina/email", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "file", + "insertText": "email", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -1083,16 +1083,16 @@ "character": 0 } }, - "newText": "import ballerina/file;\n" + "newText": "import ballerina/email;\n" } ] }, { - "label": "ballerinax/java", + "label": "ballerina/lang.int", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "java", + "insertText": "'int", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -1106,16 +1106,16 @@ "character": 0 } }, - "newText": "import ballerinax/java;\n" + "newText": "import ballerina/lang.'int;\n" } ] }, { - "label": "ballerinax/java.jdbc", + "label": "ballerina/socket", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "jdbc", + "insertText": "socket", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -1129,7 +1129,7 @@ "character": 0 } }, - "newText": "import ballerinax/java.jdbc;\n" + "newText": "import ballerina/socket;\n" } ] }, diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/exprFunctionBodyCompletion2.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/exprFunctionBodyCompletion2.json index e0313712c7a9..7d877e6e15ec 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/exprFunctionBodyCompletion2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/exprFunctionBodyCompletion2.json @@ -30,11 +30,11 @@ "insertTextFormat": "Snippet" }, { - "label": "ballerina/cache", + "label": "ballerinax/java.jdbc", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "cache", + "insertText": "jdbc", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -48,16 +48,16 @@ "character": 0 } }, - "newText": "import ballerina/cache;\n" + "newText": "import ballerinax/java.jdbc;\n" } ] }, { - "label": "ballerina/nats", + "label": "ballerina/lang.object", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "nats", + "insertText": "'object", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -71,16 +71,16 @@ "character": 0 } }, - "newText": "import ballerina/nats;\n" + "newText": "import ballerina/lang.'object;\n" } ] }, { - "label": "ballerina/lang.future", + "label": "ballerina/jwt", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'future", + "insertText": "jwt", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -94,16 +94,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'future;\n" + "newText": "import ballerina/jwt;\n" } ] }, { - "label": "ballerina/lang.value", + "label": "ballerina/lang.boolean", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'value", + "insertText": "'boolean", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -117,16 +117,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'value;\n" + "newText": "import ballerina/lang.'boolean;\n" } ] }, { - "label": "ballerina/auth", + "label": "ballerina/lang.xml", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "auth", + "insertText": "'xml", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -140,16 +140,16 @@ "character": 0 } }, - "newText": "import ballerina/auth;\n" + "newText": "import ballerina/lang.'xml;\n" } ] }, { - "label": "ballerina/lang.stream", + "label": "ballerina/crypto", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'stream", + "insertText": "crypto", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -163,16 +163,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'stream;\n" + "newText": "import ballerina/crypto;\n" } ] }, { - "label": "ballerina/lang.object", + "label": "ballerina/lang.array", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'object", + "insertText": "'array", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -186,16 +186,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'object;\n" + "newText": "import ballerina/lang.'array;\n" } ] }, { - "label": "ballerina/runtime", + "label": "ballerina/stringutils", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "runtime", + "insertText": "stringutils", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -209,16 +209,16 @@ "character": 0 } }, - "newText": "import ballerina/runtime;\n" + "newText": "import ballerina/stringutils;\n" } ] }, { - "label": "ballerina/log", + "label": "ballerina/cache", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "log", + "insertText": "cache", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -232,16 +232,16 @@ "character": 0 } }, - "newText": "import ballerina/log;\n" + "newText": "import ballerina/cache;\n" } ] }, { - "label": "ballerina/lang.xml", + "label": "ballerina/test", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'xml", + "insertText": "test", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -255,16 +255,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'xml;\n" + "newText": "import ballerina/test;\n" } ] }, { - "label": "ballerina/system", + "label": "ballerina/file", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "system", + "insertText": "file", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -278,16 +278,16 @@ "character": 0 } }, - "newText": "import ballerina/system;\n" + "newText": "import ballerina/file;\n" } ] }, { - "label": "ballerina/lang.table", + "label": "ballerina/grpc", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'table", + "insertText": "grpc", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -301,16 +301,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'table;\n" + "newText": "import ballerina/grpc;\n" } ] }, { - "label": "ballerina/lang.typedesc", + "label": "ballerina/bir", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'typedesc", + "insertText": "bir", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -324,16 +324,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'typedesc;\n" + "newText": "import ballerina/bir;\n" } ] }, { - "label": "ballerina/lang.boolean", + "label": "ballerina/config", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'boolean", + "insertText": "config", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -347,16 +347,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'boolean;\n" + "newText": "import ballerina/config;\n" } ] }, { - "label": "ballerina/lang.decimal", + "label": "ballerina/auth", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'decimal", + "insertText": "auth", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -370,16 +370,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'decimal;\n" + "newText": "import ballerina/auth;\n" } ] }, { - "label": "ballerina/oauth2", + "label": "ballerina/filepath", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "oauth2", + "insertText": "filepath", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -393,16 +393,16 @@ "character": 0 } }, - "newText": "import ballerina/oauth2;\n" + "newText": "import ballerina/filepath;\n" } ] }, { - "label": "ballerina/time", + "label": "ballerina/ldap", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "time", + "insertText": "ldap", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -416,16 +416,16 @@ "character": 0 } }, - "newText": "import ballerina/time;\n" + "newText": "import ballerina/ldap;\n" } ] }, { - "label": "ballerina/observe", + "label": "ballerina/reflect", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "observe", + "insertText": "reflect", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -439,16 +439,16 @@ "character": 0 } }, - "newText": "import ballerina/observe;\n" + "newText": "import ballerina/reflect;\n" } ] }, { - "label": "ballerina/math", + "label": "ballerina/lang.string", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "math", + "insertText": "'string", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -462,16 +462,16 @@ "character": 0 } }, - "newText": "import ballerina/math;\n" + "newText": "import ballerina/lang.'string;\n" } ] }, { - "label": "ballerina/task", + "label": "ballerina/io", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "task", + "insertText": "io", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -485,16 +485,16 @@ "character": 0 } }, - "newText": "import ballerina/task;\n" + "newText": "import ballerina/io;\n" } ] }, { - "label": "ballerina/crypto", + "label": "ballerina/runtime", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "crypto", + "insertText": "runtime", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -508,16 +508,16 @@ "character": 0 } }, - "newText": "import ballerina/crypto;\n" + "newText": "import ballerina/runtime;\n" } ] }, { - "label": "ballerina/encoding", + "label": "ballerina/oauth2", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "encoding", + "insertText": "oauth2", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -531,16 +531,16 @@ "character": 0 } }, - "newText": "import ballerina/encoding;\n" + "newText": "import ballerina/oauth2;\n" } ] }, { - "label": "ballerina/filepath", + "label": "ballerina/jvm", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "filepath", + "insertText": "jvm", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -554,16 +554,16 @@ "character": 0 } }, - "newText": "import ballerina/filepath;\n" + "newText": "import ballerina/jvm;\n" } ] }, { - "label": "ballerina/grpc", + "label": "ballerina/encoding", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "grpc", + "insertText": "encoding", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -577,16 +577,16 @@ "character": 0 } }, - "newText": "import ballerina/grpc;\n" + "newText": "import ballerina/encoding;\n" } ] }, { - "label": "ballerina/email", + "label": "ballerina/java", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "email", + "insertText": "java", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -600,16 +600,16 @@ "character": 0 } }, - "newText": "import ballerina/email;\n" + "newText": "import ballerina/java;\n" } ] }, { - "label": "ballerina/ldap", + "label": "ballerina/rabbitmq", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "ldap", + "insertText": "rabbitmq", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -623,16 +623,16 @@ "character": 0 } }, - "newText": "import ballerina/ldap;\n" + "newText": "import ballerina/rabbitmq;\n" } ] }, { - "label": "ballerina/bir", + "label": "ballerina/lang.future", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "bir", + "insertText": "'future", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -646,16 +646,16 @@ "character": 0 } }, - "newText": "import ballerina/bir;\n" + "newText": "import ballerina/lang.'future;\n" } ] }, { - "label": "ballerina/io", + "label": "ballerina/lang.value", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "io", + "insertText": "'value", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -669,16 +669,16 @@ "character": 0 } }, - "newText": "import ballerina/io;\n" + "newText": "import ballerina/lang.'value;\n" } ] }, { - "label": "ballerina/lang.array", + "label": "ballerina/openapi", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'array", + "insertText": "openapi", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -692,16 +692,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'array;\n" + "newText": "import ballerina/openapi;\n" } ] }, { - "label": "ballerina/jvm", + "label": "ballerina/math", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "jvm", + "insertText": "math", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -715,16 +715,16 @@ "character": 0 } }, - "newText": "import ballerina/jvm;\n" + "newText": "import ballerina/math;\n" } ] }, { - "label": "ballerina/lang.error", + "label": "ballerina/time", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'error", + "insertText": "time", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -738,16 +738,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'error;\n" + "newText": "import ballerina/time;\n" } ] }, { - "label": "ballerina/lang.map", + "label": "ballerina/observe", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'map", + "insertText": "observe", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -761,16 +761,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'map;\n" + "newText": "import ballerina/observe;\n" } ] }, { - "label": "ballerina/test", + "label": "ballerina/system", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "test", + "insertText": "system", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -784,16 +784,16 @@ "character": 0 } }, - "newText": "import ballerina/test;\n" + "newText": "import ballerina/system;\n" } ] }, { - "label": "ballerina/lang.string", + "label": "ballerina/lang.float", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'string", + "insertText": "'float", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -807,16 +807,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'string;\n" + "newText": "import ballerina/lang.'float;\n" } ] }, { - "label": "ballerina/lang.int", + "label": "ballerina/transactions", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'int", + "insertText": "transactions", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -830,16 +830,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'int;\n" + "newText": "import ballerina/transactions;\n" } ] }, { - "label": "ballerina/lang.float", + "label": "ballerina/nats", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "'float", + "insertText": "nats", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -853,16 +853,16 @@ "character": 0 } }, - "newText": "import ballerina/lang.'float;\n" + "newText": "import ballerina/nats;\n" } ] }, { - "label": "ballerina/rabbitmq", + "label": "ballerina/lang.decimal", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "rabbitmq", + "insertText": "'decimal", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -876,16 +876,16 @@ "character": 0 } }, - "newText": "import ballerina/rabbitmq;\n" + "newText": "import ballerina/lang.'decimal;\n" } ] }, { - "label": "ballerina/transactions", + "label": "ballerina/task", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "transactions", + "insertText": "task", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -899,16 +899,16 @@ "character": 0 } }, - "newText": "import ballerina/transactions;\n" + "newText": "import ballerina/task;\n" } ] }, { - "label": "ballerina/jwt", + "label": "ballerina/lang.table", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "jwt", + "insertText": "'table", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -922,16 +922,16 @@ "character": 0 } }, - "newText": "import ballerina/jwt;\n" + "newText": "import ballerina/lang.'table;\n" } ] }, { - "label": "ballerina/stringutils", + "label": "ballerina/log", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "stringutils", + "insertText": "log", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -945,16 +945,16 @@ "character": 0 } }, - "newText": "import ballerina/stringutils;\n" + "newText": "import ballerina/log;\n" } ] }, { - "label": "ballerina/socket", + "label": "ballerina/mime", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "socket", + "insertText": "mime", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -968,16 +968,16 @@ "character": 0 } }, - "newText": "import ballerina/socket;\n" + "newText": "import ballerina/mime;\n" } ] }, { - "label": "ballerina/reflect", + "label": "ballerina/lang.stream", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "reflect", + "insertText": "'stream", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -991,16 +991,16 @@ "character": 0 } }, - "newText": "import ballerina/reflect;\n" + "newText": "import ballerina/lang.'stream;\n" } ] }, { - "label": "ballerina/openapi", + "label": "ballerina/lang.error", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "openapi", + "insertText": "'error", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -1014,16 +1014,16 @@ "character": 0 } }, - "newText": "import ballerina/openapi;\n" + "newText": "import ballerina/lang.'error;\n" } ] }, { - "label": "ballerina/mime", + "label": "ballerina/lang.typedesc", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "mime", + "insertText": "'typedesc", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -1037,16 +1037,16 @@ "character": 0 } }, - "newText": "import ballerina/mime;\n" + "newText": "import ballerina/lang.'typedesc;\n" } ] }, { - "label": "ballerina/config", + "label": "ballerina/lang.map", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "config", + "insertText": "'map", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -1060,16 +1060,16 @@ "character": 0 } }, - "newText": "import ballerina/config;\n" + "newText": "import ballerina/lang.'map;\n" } ] }, { - "label": "ballerina/file", + "label": "ballerina/email", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "file", + "insertText": "email", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -1083,16 +1083,16 @@ "character": 0 } }, - "newText": "import ballerina/file;\n" + "newText": "import ballerina/email;\n" } ] }, { - "label": "ballerinax/java", + "label": "ballerina/lang.int", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "java", + "insertText": "'int", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -1106,16 +1106,16 @@ "character": 0 } }, - "newText": "import ballerinax/java;\n" + "newText": "import ballerina/lang.'int;\n" } ] }, { - "label": "ballerinax/java.jdbc", + "label": "ballerina/socket", "kind": "Module", "detail": "Module", "sortText": "140", - "insertText": "jdbc", + "insertText": "socket", "insertTextFormat": "Snippet", "additionalTextEdits": [ { @@ -1129,7 +1129,7 @@ "character": 0 } }, - "newText": "import ballerinax/java.jdbc;\n" + "newText": "import ballerina/socket;\n" } ] }, diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/globalVarDef1.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/globalVarDef1.json index 9f6c5cf414d2..6adf1878871a 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/globalVarDef1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/globalVarDef1.json @@ -80,29 +80,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "120", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -609,6 +586,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "120", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 0 + }, + "end": { + "line": 2, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1203,4 +1203,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/globalVarDef2.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/globalVarDef2.json index e5b509d66535..4da2a80e6408 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/globalVarDef2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/globalVarDef2.json @@ -72,29 +72,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "120", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -624,6 +601,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "120", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1226,4 +1226,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/globalVarDef3.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/globalVarDef3.json index 0103492bf1c9..b8964a4730a8 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/globalVarDef3.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/globalVarDef3.json @@ -28,29 +28,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "120", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -580,6 +557,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "120", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1205,4 +1205,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/importStatement1.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/importStatement1.json index 88acd2a49ff1..ec4ec2bdb9dd 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/importStatement1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/importStatement1.json @@ -21,14 +21,6 @@ "insertText": "ballerinax/", "insertTextFormat": "Snippet" }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "120", - "insertText": "ballerinax/java", - "insertTextFormat": "Snippet" - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -221,6 +213,14 @@ "insertText": "ballerina/encoding", "insertTextFormat": "Snippet" }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "120", + "insertText": "ballerina/java", + "insertTextFormat": "Snippet" + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -414,4 +414,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/importStatement2.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/importStatement2.json index fc73197bf3bd..cc3818bba756 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/importStatement2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/importStatement2.json @@ -21,14 +21,6 @@ "insertText": "ballerinax/", "insertTextFormat": "Snippet" }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "120", - "insertText": "ballerinax/java", - "insertTextFormat": "Snippet" - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -221,6 +213,14 @@ "insertText": "ballerina/encoding", "insertTextFormat": "Snippet" }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "120", + "insertText": "ballerina/java", + "insertTextFormat": "Snippet" + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -414,4 +414,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/importStatement3.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/importStatement3.json index 7b61516c282a..55f465830178 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/importStatement3.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/importStatement3.json @@ -189,6 +189,14 @@ "insertText": "encoding", "insertTextFormat": "Snippet" }, + { + "label": "java", + "kind": "Module", + "detail": "Module", + "sortText": "110", + "insertText": "java", + "insertTextFormat": "Snippet" + }, { "label": "rabbitmq", "kind": "Module", @@ -382,4 +390,4 @@ "insertTextFormat": "Snippet" } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/recordTest1.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/recordTest1.json index f98b43d53634..5450635c54e5 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/recordTest1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/recordTest1.json @@ -229,29 +229,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -781,6 +758,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1311,4 +1311,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/recordTest2.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/recordTest2.json index d1c932e6a2af..697e258ac87f 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/recordTest2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/recordTest2.json @@ -229,29 +229,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "140", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -781,6 +758,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "140", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 0 + }, + "end": { + "line": 1, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1311,4 +1311,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/topLevelCompletionAfterListenerKeyword1.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/topLevelCompletionAfterListenerKeyword1.json index ea2e4584b544..67a45ba8dde4 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/topLevelCompletionAfterListenerKeyword1.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/topLevelCompletionAfterListenerKeyword1.json @@ -28,29 +28,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "130", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -580,6 +557,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "130", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1133,4 +1133,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/topLevelCompletionAfterListenerKeyword2.json b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/topLevelCompletionAfterListenerKeyword2.json index e89db77bbd7c..feac7c37644c 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/toplevel/topLevelCompletionAfterListenerKeyword2.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/toplevel/topLevelCompletionAfterListenerKeyword2.json @@ -28,29 +28,6 @@ } ] }, - { - "label": "ballerinax/java", - "kind": "Module", - "detail": "Module", - "sortText": "120", - "insertText": "java", - "insertTextFormat": "Snippet", - "additionalTextEdits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import ballerinax/java;\n" - } - ] - }, { "label": "ballerina/lang.object", "kind": "Module", @@ -580,6 +557,29 @@ } ] }, + { + "label": "ballerina/java", + "kind": "Module", + "detail": "Module", + "sortText": "120", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/java;\n" + } + ] + }, { "label": "ballerina/rabbitmq", "kind": "Module", @@ -1133,4 +1133,4 @@ ] } ] -} \ No newline at end of file +}