-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41161 from KavinduZoysa/fix-issue-33862
Suggest clauses after type test
- Loading branch information
Showing
11 changed files
with
1,174 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
136 changes: 136 additions & 0 deletions
136
...r-core/src/test/resources/completion/query_expression/config/query_expr_ctx_config32.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
{ | ||
"position": { | ||
"line": 3, | ||
"character": 26 | ||
}, | ||
"source": "query_expression/source/query_expr_ctx_source32.bal", | ||
"description": "", | ||
"items": [ | ||
{ | ||
"label": "where", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "where", | ||
"insertText": "where ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "let", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "let", | ||
"insertText": "let", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "let clause", | ||
"kind": "Snippet", | ||
"detail": "Snippet", | ||
"sortText": "BP", | ||
"filterText": "let", | ||
"insertText": "let ${1:var} ${2:varName} = ${3}", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "outer", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "outer", | ||
"insertText": "outer ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "join", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "join", | ||
"insertText": "join ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "join clause", | ||
"kind": "Snippet", | ||
"detail": "Snippet", | ||
"sortText": "BP", | ||
"filterText": "join", | ||
"insertText": "join ${1:var} ${2:varName} in ${3:expr} on ${4:onExpr} equals ${5:equalsExpr}", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "order by", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "order by", | ||
"insertText": "order by ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "limit", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "limit", | ||
"insertText": "limit ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "do", | ||
"kind": "Snippet", | ||
"detail": "Snippet", | ||
"sortText": "BP", | ||
"filterText": "do", | ||
"insertText": "do {\n\t${1}\n}", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "select", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "select", | ||
"insertText": "select ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "from", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "from", | ||
"insertText": "from ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "group by", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "group by", | ||
"insertText": "group by ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "group by clause", | ||
"kind": "Snippet", | ||
"detail": "Snippet", | ||
"sortText": "BP", | ||
"filterText": "group by", | ||
"insertText": "group by ${1:var} ${2:item} = ${3}", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "collect", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "collect", | ||
"insertText": "collect ", | ||
"insertTextFormat": "Snippet" | ||
} | ||
] | ||
} |
136 changes: 136 additions & 0 deletions
136
...r-core/src/test/resources/completion/query_expression/config/query_expr_ctx_config33.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
{ | ||
"position": { | ||
"line": 5, | ||
"character": 26 | ||
}, | ||
"source": "query_expression/source/query_expr_ctx_source33.bal", | ||
"description": "", | ||
"items": [ | ||
{ | ||
"label": "where", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "where", | ||
"insertText": "where ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "let", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "let", | ||
"insertText": "let", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "let clause", | ||
"kind": "Snippet", | ||
"detail": "Snippet", | ||
"sortText": "BP", | ||
"filterText": "let", | ||
"insertText": "let ${1:var} ${2:varName} = ${3}", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "outer", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "outer", | ||
"insertText": "outer ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "join", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "join", | ||
"insertText": "join ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "join clause", | ||
"kind": "Snippet", | ||
"detail": "Snippet", | ||
"sortText": "BP", | ||
"filterText": "join", | ||
"insertText": "join ${1:var} ${2:varName} in ${3:expr} on ${4:onExpr} equals ${5:equalsExpr}", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "order by", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "order by", | ||
"insertText": "order by ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "limit", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "limit", | ||
"insertText": "limit ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "do", | ||
"kind": "Snippet", | ||
"detail": "Snippet", | ||
"sortText": "BP", | ||
"filterText": "do", | ||
"insertText": "do {\n\t${1}\n}", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "select", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "select", | ||
"insertText": "select ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "from", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "from", | ||
"insertText": "from ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "group by", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "group by", | ||
"insertText": "group by ", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "group by clause", | ||
"kind": "Snippet", | ||
"detail": "Snippet", | ||
"sortText": "BP", | ||
"filterText": "group by", | ||
"insertText": "group by ${1:var} ${2:item} = ${3}", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "collect", | ||
"kind": "Keyword", | ||
"detail": "Keyword", | ||
"sortText": "BQ", | ||
"filterText": "collect", | ||
"insertText": "collect ", | ||
"insertTextFormat": "Snippet" | ||
} | ||
] | ||
} |
Oops, something went wrong.