-
Notifications
You must be signed in to change notification settings - Fork 768
Add the natural langlib and update the natural expression #44206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…ina-lang into add-natural-langlib
Add the natural langlib and update the natural expression
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds the new natural
type snippet to a variety of language-server completion test configurations and updates a specific expression context.
- Inserts
"natural"
snippet entries into multiple function-body and expression-context JSON configs. - Replaces the existing
"code"
annotation snippet in the typeof-expression context with thenatural
snippet. - Adds blank
"description"
fields in some test JSON files.
Reviewed Changes
Copilot reviewed 300 out of 710 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
completion/function_body/config/config18.json | Added "natural" snippet entry for type completions. |
completion/expression_context/config/typeof_expression_ctx_config5.json | Removed "code" annotation snippet and added the "natural" snippet. |
completion/expression_context/config/new_expr_ctx_config4.json | Added a blank "description" field and "natural" snippet entries. |
Comments suppressed due to low confidence (2)
language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/typeof_expression_ctx_config5.json:475
- The existing 'code' annotation snippet was removed and replaced by the 'natural' type snippet. If the 'code' snippet is still required in tests, restore and append the 'natural' entry instead of overwriting this block.
"label": "natural",
language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/new_expr_ctx_config4.json:7
- [nitpick] The 'description' field is currently empty; either remove it if unused or provide a meaningful description to clarify the test scenario.
"description": "",
...ver/modules/langserver-core/src/test/resources/completion/function_body/config/config18.json
Show resolved
Hide resolved
...na-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SymbolResolver.java
Outdated
Show resolved
Hide resolved
...na-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SymbolResolver.java
Outdated
Show resolved
Hide resolved
...rina-lang/src/main/java/io/ballerina/projects/internal/NaturalProgrammingImportAnalyzer.java
Outdated
Show resolved
Hide resolved
35472ad
to
9e0e5a4
Compare
|
Purpose
$title.
Introduces the lang changes for #44174