mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix completion entry conversion to protocol format (#59410)
This commit is contained in:
@@ -2469,6 +2469,7 @@ export class Session<TMessage = string> implements EventSender {
|
||||
isPackageJsonImport,
|
||||
isImportStatementCompletion,
|
||||
data,
|
||||
commitCharacters,
|
||||
} = entry;
|
||||
const convertedSpan = replacementSpan ? toProtocolTextSpan(replacementSpan, scriptInfo) : undefined;
|
||||
// Use `hasAction || undefined` to avoid serializing `false`.
|
||||
@@ -2489,6 +2490,7 @@ export class Session<TMessage = string> implements EventSender {
|
||||
isPackageJsonImport,
|
||||
isImportStatementCompletion,
|
||||
data,
|
||||
commitCharacters,
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user