-
Notifications
You must be signed in to change notification settings - Fork 758
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 #41494 from nipunayf/fix-resource-path-completion
Fix invalid completions for a precise resource parameter type
- Loading branch information
Showing
14 changed files
with
494 additions
and
14 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
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
40 changes: 40 additions & 0 deletions
40
...sources/completion/action_node_context/config/client_resource_access_action_config38.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,40 @@ | ||
{ | ||
"position": { | ||
"line": 8, | ||
"character": 9 | ||
}, | ||
"source": "action_node_context/source/client_resource_access_action_source31.bal", | ||
"description": "Test completions in singleton resource param", | ||
"items": [ | ||
{ | ||
"label": "/[\"name\" a].accessor", | ||
"kind": "Function", | ||
"detail": "()", | ||
"documentation": { | ||
"right": { | ||
"kind": "markdown", | ||
"value": "**Package:** _._ \n \n \n**Params** \n- `\"name\"` a" | ||
} | ||
}, | ||
"sortText": "CD", | ||
"filterText": "|accessor", | ||
"insertText": "/[\"name\"].accessor;", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "/name.accessor", | ||
"kind": "Function", | ||
"detail": "()", | ||
"documentation": { | ||
"right": { | ||
"kind": "markdown", | ||
"value": "**Package:** _._ \n \n \n**Params** \n- `\"name\"` a" | ||
} | ||
}, | ||
"sortText": "CE", | ||
"filterText": "|accessor", | ||
"insertText": "/name.accessor;", | ||
"insertTextFormat": "Snippet" | ||
} | ||
] | ||
} |
40 changes: 40 additions & 0 deletions
40
...sources/completion/action_node_context/config/client_resource_access_action_config39.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,40 @@ | ||
{ | ||
"position": { | ||
"line": 8, | ||
"character": 9 | ||
}, | ||
"source": "action_node_context/source/client_resource_access_action_source32.bal", | ||
"description": "Test completions in union of singleton resource params", | ||
"items": [ | ||
{ | ||
"label": "/[\"A1\"|\"A2\" a].accessor", | ||
"kind": "Function", | ||
"detail": "()", | ||
"documentation": { | ||
"right": { | ||
"kind": "markdown", | ||
"value": "**Package:** _._ \n \n \n**Params** \n- `\"A1\"|\"A2\"` a" | ||
} | ||
}, | ||
"sortText": "CD", | ||
"filterText": "|accessor", | ||
"insertText": "/[${1:\"path\"}].accessor;", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "/<a>.accessor", | ||
"kind": "Function", | ||
"detail": "()", | ||
"documentation": { | ||
"right": { | ||
"kind": "markdown", | ||
"value": "**Package:** _._ \n \n \n**Params** \n- `\"A1\"|\"A2\"` a" | ||
} | ||
}, | ||
"sortText": "CE", | ||
"filterText": "|accessor", | ||
"insertText": "/${1:path}.accessor;", | ||
"insertTextFormat": "Snippet" | ||
} | ||
] | ||
} |
40 changes: 40 additions & 0 deletions
40
...sources/completion/action_node_context/config/client_resource_access_action_config40.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,40 @@ | ||
{ | ||
"position": { | ||
"line": 8, | ||
"character": 9 | ||
}, | ||
"source": "action_node_context/source/client_resource_access_action_source33.bal", | ||
"description": "Test completions in resource param with a subtype of expression", | ||
"items": [ | ||
{ | ||
"label": "/[int|string:Char a].accessor", | ||
"kind": "Function", | ||
"detail": "()", | ||
"documentation": { | ||
"right": { | ||
"kind": "markdown", | ||
"value": "**Package:** _._ \n \n \n**Params** \n- `int|string:Char` a" | ||
} | ||
}, | ||
"sortText": "CD", | ||
"filterText": "|accessor", | ||
"insertText": "/[${1:\"path\"}].accessor;", | ||
"insertTextFormat": "Snippet" | ||
}, | ||
{ | ||
"label": "/<a>.accessor", | ||
"kind": "Function", | ||
"detail": "()", | ||
"documentation": { | ||
"right": { | ||
"kind": "markdown", | ||
"value": "**Package:** _._ \n \n \n**Params** \n- `int|string:Char` a" | ||
} | ||
}, | ||
"sortText": "CE", | ||
"filterText": "|accessor", | ||
"insertText": "/${1:path}.accessor;", | ||
"insertTextFormat": "Snippet" | ||
} | ||
] | ||
} |
70 changes: 70 additions & 0 deletions
70
...sources/completion/action_node_context/config/client_resource_access_action_config41.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,70 @@ | ||
{ | ||
"position": { | ||
"line": 16, | ||
"character": 18 | ||
}, | ||
"source": "action_node_context/source/client_resource_access_action_source34.bal", | ||
"description": "Test completions in multiple singleton resource access functions, and accessing with a field value", | ||
"items": [ | ||
{ | ||
"label": ".accessor", | ||
"kind": "Function", | ||
"detail": "()", | ||
"documentation": { | ||
"right": { | ||
"kind": "markdown", | ||
"value": "**Package:** _._ \n \n \n**Params** \n- `\"A31\"` a" | ||
} | ||
}, | ||
"sortText": "C", | ||
"filterText": "accessor", | ||
"insertText": ".accessor", | ||
"insertTextFormat": "Snippet", | ||
"additionalTextEdits": [ | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 16, | ||
"character": 17 | ||
}, | ||
"end": { | ||
"line": 16, | ||
"character": 18 | ||
} | ||
}, | ||
"newText": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"label": ".put", | ||
"kind": "Function", | ||
"detail": "()", | ||
"documentation": { | ||
"right": { | ||
"kind": "markdown", | ||
"value": "**Package:** _._ \n \n \n**Params** \n- `\"A31\"|\"A32\"` a" | ||
} | ||
}, | ||
"sortText": "C", | ||
"filterText": "put", | ||
"insertText": ".put", | ||
"insertTextFormat": "Snippet", | ||
"additionalTextEdits": [ | ||
{ | ||
"range": { | ||
"start": { | ||
"line": 16, | ||
"character": 17 | ||
}, | ||
"end": { | ||
"line": 16, | ||
"character": 18 | ||
} | ||
}, | ||
"newText": "" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.