mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
Add optionalReplacementSpan to completions response (#40347)
* Add optionalReplacementRange to completions response * Get the name right * Fix unit tests * Fix comment typo * Fix comment typo * Baseline
This commit is contained in:
@@ -44,6 +44,7 @@ namespace ts.projectSystem {
|
||||
isGlobalCompletion: true,
|
||||
isMemberCompletion: false,
|
||||
isNewIdentifierLocation: false,
|
||||
optionalReplacementSpan: { start: { line: 1, offset: 1 }, end: { line: 1, offset: 4 } },
|
||||
entries: [entry],
|
||||
});
|
||||
|
||||
|
||||
@@ -80,6 +80,10 @@ namespace ts.projectSystem {
|
||||
isGlobalCompletion: false,
|
||||
isMemberCompletion: true,
|
||||
isNewIdentifierLocation: false,
|
||||
optionalReplacementSpan: {
|
||||
start: { line: 1, offset: aTs.content.indexOf("prop;") + 1 },
|
||||
end: { line: 1, offset: aTs.content.indexOf("prop;") + 1 + "prop".length }
|
||||
},
|
||||
entries: expectedCompletionEntries
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user