Skip to content

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

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

MaryamZi
Copy link
Member

Purpose

$title.

Introduces the lang changes for #44174

@nipunayf nipunayf requested a review from Copilot July 14, 2025 05:48
Copy link
Contributor

@Copilot Copilot AI left a 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 the natural 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": "",

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants