mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
fix(55994): Type-check Import Attributes in static imports (#56034)
This commit is contained in:
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user