fix(55994): Type-check Import Attributes in static imports (#56034)

This commit is contained in:
Oleksandr T
2024-01-11 01:35:04 +02:00
committed by GitHub
parent 9999f26483
commit 72d497352f
16 changed files with 678 additions and 4 deletions

View File

@@ -2448,7 +2448,13 @@ export class TestState {
const annotations = this.annotateContentWithTooltips(
result,
"completions",
item => item.optionalReplacementSpan,
item => {
if (item.optionalReplacementSpan) {
const { start, length } = item.optionalReplacementSpan;
return start && length === 0 ? { start, length: 1 } : item.optionalReplacementSpan;
}
return undefined;
},
item =>
item.entries?.flatMap(
entry =>