Skip to content

Commit

Permalink
Merge pull request #14 from malinthar/rm-statement
Browse files Browse the repository at this point in the history
Remove client declaration statement related  LS support
  • Loading branch information
MaryamZi authored Nov 2, 2022
2 parents 687a5aa + f2f6102 commit b124b68
Show file tree
Hide file tree
Showing 89 changed files with 16 additions and 2,574 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ protected List<LSCompletionItem> getStaticCompletionItems(BallerinaCompletionCon
ArrayList<LSCompletionItem> completionItems = new ArrayList<>();

// Remove the function keyword suggestion from here, since it is suggested by typeItems API
completionItems.add(new SnippetCompletionItem(context, Snippet.DEF_CLIENT_DECLARATION.get()));
completionItems.add(new SnippetCompletionItem(context, Snippet.STMT_NAMESPACE_DECLARATION.get()));
completionItems.add(new SnippetCompletionItem(context, Snippet.KW_XMLNS.get()));
completionItems.add(new SnippetCompletionItem(context, Snippet.KW_VAR.get()));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"position": {
"line": 3,
"character": 5
"line": 2,
"character": 1
},
"source": "annotation_ctx/source/clientDeclAnnotation1.bal",
"items": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"position": {
"line": 3,
"character": 6
"line": 2,
"character": 2
},
"source": "annotation_ctx/source/clientDeclAnnotation2.bal",
"items": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"position": {
"line": 3,
"character": 13
"line": 2,
"character": 9
},
"source": "annotation_ctx/source/clientDeclAnnotation3.bal",
"items": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"position": {
"line": 3,
"character": 14
"line": 2,
"character": 10
},
"source": "annotation_ctx/source/clientDeclAnnotation4.bal",
"items": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import ballerina/module1;

function testFunction() {
@
client "https://postman-echo.com/get?name=projectapiclientplugin" as foo;
}
@
client "https://postman-echo.com/get?name=projectapiclientplugin" as foo;

public type AnnotationType record {
string foo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import ballerina/module1;

function testFunction() {
@m
client "https://postman-echo.com/get?name=projectapiclientplugin" as foo;
}
@m
client "https://postman-echo.com/get?name=projectapiclientplugin" as foo;

public type AnnotationType record {
string foo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import ballerina/module1;

function testFunction() {
@module1:
client "https://postman-echo.com/get?name=projectapiclientplugin" as foo;
}
@module1:
client "https://postman-echo.com/get?name=projectapiclientplugin" as foo;

public type AnnotationType record {
string foo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import ballerina/module1;

function testFunction() {
@module1:t
client "https://postman-echo.com/get?name=projectapiclientplugin" as foo;
}
@module1:t
client "https://postman-echo.com/get?name=projectapiclientplugin" as foo;

public type AnnotationType record {
string foo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -900,15 +900,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -877,15 +877,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "Q",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -877,15 +877,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "Q",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -921,15 +921,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -916,15 +916,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -928,15 +928,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -954,15 +954,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -954,15 +954,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -954,15 +954,6 @@
"insertText": "worker ${1:name} {\n\t${2}\n}",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -876,15 +876,6 @@
"insertText": "worker ${1:name} {\n\t${2}\n}",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -890,15 +890,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -917,15 +917,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -917,15 +917,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -862,15 +862,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -896,15 +896,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -897,15 +897,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "Q",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -989,15 +989,6 @@
"insertText": "module1:TestRecord2",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "Q",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -885,15 +885,6 @@
"insertText": "function",
"insertTextFormat": "Snippet"
},
{
"label": "client",
"kind": "Snippet",
"detail": "Snippet",
"sortText": "P",
"filterText": "client",
"insertText": "client \"${1}\" as ${2:clientName};",
"insertTextFormat": "Snippet"
},
{
"label": "ballerina/lang.regexp",
"kind": "Module",
Expand Down
Loading

0 comments on commit b124b68

Please sign in to comment.