Skip to content

Conversation

@leigaol
Copy link
Contributor

@leigaol leigaol commented Jan 14, 2025

Problem

In some rare cases, the total supplementalContext length exceeds 20k character. With recent service side changes, we need to make sure the total supplementalContext length do not exceed 20k in any situation.

Solution

Make sure the total supplementalContext length do not exceed 20k in any situation. Drop when necessary.

This is not customer facing so no change log is attached.


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@leigaol leigaol requested review from a team as code owners January 14, 2025 19:26
@github-actions
Copy link

  • This pull request implements a feat or fix, so it must include a changelog entry (unless the fix is for an unreleased feature). Review the changelog guidelines.
    • Note: beta or "experiment" features that have active users should announce fixes in the changelog.
    • If this is not a feature or fix, use an appropriate type from the title guidelines. For example, telemetry-only changes should use the telemetry type.

Comment on lines +333 to +340
export function aLongStringWithLineCount(lineCount: number, start: number = 0): string {
let s = ''
for (let i = start; i < start + lineCount; i++) {
s += `a`.repeat(100) + `line${i}\n`
}

return s.trimEnd()
}
Copy link
Contributor

@Will-ShaoHua Will-ShaoHua Jan 14, 2025

Choose a reason for hiding this comment

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

todo: let's clean up and merge the 2 test util funcs aStringWithLineCount and aLongStringWithLineCount

Copy link
Contributor

Choose a reason for hiding this comment

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

not a blocker

@leigaol leigaol merged commit d2cde47 into aws:master Jan 14, 2025
26 checks passed
avi-alpert pushed a commit to avi-alpert/aws-toolkit-vscode that referenced this pull request Jan 15, 2025
## Problem
In some rare cases, the total supplementalContext length exceeds 20k
character. With recent service side changes, we need to make sure the
total supplementalContext length do not exceed 20k in any situation.

## Solution
Make sure the total supplementalContext length do not exceed 20k in any
situation. Drop when necessary.

This is not customer facing so no change log is attached.


---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
karanA-aws pushed a commit to karanA-aws/aws-toolkit-vscode that referenced this pull request Jan 17, 2025
## Problem
In some rare cases, the total supplementalContext length exceeds 20k
character. With recent service side changes, we need to make sure the
total supplementalContext length do not exceed 20k in any situation.

## Solution
Make sure the total supplementalContext length do not exceed 20k in any
situation. Drop when necessary.

This is not customer facing so no change log is attached.


---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
kevluu-aws pushed a commit to kevluu-aws/aws-toolkit-vscode that referenced this pull request Jan 23, 2025
## Problem
In some rare cases, the total supplementalContext length exceeds 20k
character. With recent service side changes, we need to make sure the
total supplementalContext length do not exceed 20k in any situation.

## Solution
Make sure the total supplementalContext length do not exceed 20k in any
situation. Drop when necessary.

This is not customer facing so no change log is attached.


---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
s7ab059789 pushed a commit to s7ab059789/aws-toolkit-vscode that referenced this pull request Feb 19, 2025
## Problem
In some rare cases, the total supplementalContext length exceeds 20k
character. With recent service side changes, we need to make sure the
total supplementalContext length do not exceed 20k in any situation.

## Solution
Make sure the total supplementalContext length do not exceed 20k in any
situation. Drop when necessary.

This is not customer facing so no change log is attached.


---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
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.

3 participants