Skip to content

Commit c37427c

Browse files
author
Andy Hanson
committed
Restore duplicate comments
1 parent 52a0b4b commit c37427c

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

src/services/types.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,13 @@ namespace ts {
718718
export interface CompletionEntry {
719719
name: string;
720720
kind: ScriptElementKind;
721-
kindModifiers: string;
721+
kindModifiers: string; // see ScriptElementKindModifier, comma separated
722722
sortText: string;
723+
/**
724+
* An optional span that indicates the text to be replaced by this completion item.
725+
* If present, this span should be used instead of the default one.
726+
* It will be set if the required span differs from the one generated by the default replacement behavior.
727+
*/
723728
replacementSpan?: TextSpan;
724729
hasAction?: true;
725730
source?: string;

tests/baselines/reference/api/tsserverlibrary.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -4341,6 +4341,11 @@ declare namespace ts {
43414341
kind: ScriptElementKind;
43424342
kindModifiers: string;
43434343
sortText: string;
4344+
/**
4345+
* An optional span that indicates the text to be replaced by this completion item.
4346+
* If present, this span should be used instead of the default one.
4347+
* It will be set if the required span differs from the one generated by the default replacement behavior.
4348+
*/
43444349
replacementSpan?: TextSpan;
43454350
hasAction?: true;
43464351
source?: string;

tests/baselines/reference/api/typescript.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -4341,6 +4341,11 @@ declare namespace ts {
43414341
kind: ScriptElementKind;
43424342
kindModifiers: string;
43434343
sortText: string;
4344+
/**
4345+
* An optional span that indicates the text to be replaced by this completion item.
4346+
* If present, this span should be used instead of the default one.
4347+
* It will be set if the required span differs from the one generated by the default replacement behavior.
4348+
*/
43444349
replacementSpan?: TextSpan;
43454350
hasAction?: true;
43464351
source?: string;

0 commit comments

Comments
 (0)