fix more tests

This commit is contained in:
Gabriela Araujo Britto
2021-10-18 10:01:48 -07:00
parent 70ebe866f4
commit e76c18da3c
4 changed files with 50 additions and 2 deletions

View File

@@ -3229,6 +3229,21 @@ declare namespace ts {
text: string;
skipTrivia?: (pos: number) => number;
}
export type SnippetElement = TabStop | Placeholder;
export interface TabStop {
kind: SnippetKind.TabStop;
order: number;
}
export interface Placeholder {
kind: SnippetKind.Placeholder;
order: number;
}
export enum SnippetKind {
TabStop = 0,
Placeholder = 1,
Choice = 2,
Variable = 3
}
export enum EmitFlags {
None = 0,
SingleLine = 1,
@@ -4521,6 +4536,14 @@ declare namespace ts {
* Moves matching emit helpers from a source node to a target node.
*/
function moveEmitHelpers(source: Node, target: Node, predicate: (helper: EmitHelper) => boolean): void;
/**
* Gets the SnippetElement of a node.
*/
function getSnippetElement(node: Node): SnippetElement | undefined;
/**
* Sets the SnippetElement of a node.
*/
function setSnippetElement<T extends Node>(node: T, snippet: SnippetElement): T;
}
declare namespace ts {
function isNumericLiteral(node: Node): node is NumericLiteral;

View File

@@ -3229,6 +3229,21 @@ declare namespace ts {
text: string;
skipTrivia?: (pos: number) => number;
}
export type SnippetElement = TabStop | Placeholder;
export interface TabStop {
kind: SnippetKind.TabStop;
order: number;
}
export interface Placeholder {
kind: SnippetKind.Placeholder;
order: number;
}
export enum SnippetKind {
TabStop = 0,
Placeholder = 1,
Choice = 2,
Variable = 3
}
export enum EmitFlags {
None = 0,
SingleLine = 1,
@@ -4521,6 +4536,14 @@ declare namespace ts {
* Moves matching emit helpers from a source node to a target node.
*/
function moveEmitHelpers(source: Node, target: Node, predicate: (helper: EmitHelper) => boolean): void;
/**
* Gets the SnippetElement of a node.
*/
function getSnippetElement(node: Node): SnippetElement | undefined;
/**
* Sets the SnippetElement of a node.
*/
function setSnippetElement<T extends Node>(node: T, snippet: SnippetElement): T;
}
declare namespace ts {
function isNumericLiteral(node: Node): node is NumericLiteral;

View File

@@ -84,6 +84,7 @@ verify.completions({
],
preferences: {
jsxAttributeCompletionStyle: "auto",
includeCompletionsWithSnippetText: true
includeCompletionsWithSnippetText: true,
includeCompletionsWithInsertText: true,
}
});

View File

@@ -90,6 +90,7 @@ verify.completions({
],
preferences: {
jsxAttributeCompletionStyle: "braces",
includeCompletionsWithSnippetText: true
includeCompletionsWithSnippetText: true,
includeCompletionsWithInsertText: true,
}
});