Skip to content

Conversation

@Will-ShaoHua
Copy link
Contributor

@Will-ShaoHua Will-ShaoHua commented Oct 20, 2025

Problem

validationError is thrown when users trigger a nep request in a large file because
editorState.document can only be 40000 chars long

Solution

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Will-ShaoHua Will-ShaoHua requested a review from a team as a code owner October 20, 2025 04:21
@codecov-commenter
Copy link

codecov-commenter commented Oct 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.42%. Comparing base (bee5cad) to head (a45521a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2431   +/-   ##
=======================================
  Coverage   62.42%   62.42%           
=======================================
  Files         266      266           
  Lines       59143    59145    +2     
  Branches     3796     3796           
=======================================
+ Hits        36920    36922    +2     
  Misses      22148    22148           
  Partials       75       75           
Flag Coverage Δ
unittests 62.42% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

languageName: generateCompletionReq.fileContext?.programmingLanguage?.languageName,
},
text: textDocument.getText(),
// Naive truncation, maybe we need "10240" characters around current curosr position instead
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have we aligned with service on this truncation?

@Will-ShaoHua Will-ShaoHua requested a review from atonaamz October 20, 2025 20:52
@Will-ShaoHua Will-ShaoHua marked this pull request as draft October 21, 2025 18:04
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.

4 participants