unreliable test: pass document helloVue.vue as argument should first try determine by languageId then file extensions:
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
## Test Details
- Name of test: pass document helloVue.vue as argument should first try determine by languageId then file extensions:
- OS of failure: windows
- VSCode version of failure (minimum/insider/stable): insiders
- Link to failing run: https://github.com/aws/aws-toolkit-vscode/actions/runs/14718456397/job/41307940286?pr=7186
- Link to failing test: https://github.com/aws/aws-toolkit-vscode/blob/a7732b96982adbbac691f2869db3136c159d80ed/packages/amazonq/test/unit/codewhisperer/util/runtimeLanguageContext.test.ts#L112-L116
## Log of Test Failure
```
1) runtimeLanguageContext
test isLanguageSupported
test isLanguageSupported with document as the argument
pass document helloVue.vue as argument should first try determine by languageId then file extensions:
Error: Test length exceeded max duration: 30 seconds
[No Pending UI Elements Found]
at Timeout._onTimeout (D:\a\aws-toolkit-vscode\aws-toolkit-vscode\packages\core\src\test\setupUtil.ts:46:32)
at listOnTimeout (node:internal/timers:581:17)
at processTimers (node:internal/timers:519:7)
```
## Additional Information
Contributor guide
Research direction
Start with packages/amazonq/test/unit/codewhisperer/util/runtimeLanguageContext.test.ts around lines 112-116 and run the failing test on Windows. Read the timeout reported from packages/core/src/test/setupUtil.ts to determine why this case exceeds 30 seconds. Done means the document argument test completes reliably without the timeout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100