* Add preceding semicolon on await insertion when parentheses are included * Just start with precedingToken * Fix semicolon formatter regression * Delete test with debatable expected behavior * Lint after control flow changes
19 lines
395 B
TypeScript
19 lines
395 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////async function foo(x: Promise<string>) {
|
|
//// console.log
|
|
//// [|x./**/|]
|
|
////}
|
|
|
|
const replacementSpan = test.ranges()[0];
|
|
verify.completions({
|
|
marker: "",
|
|
includes: [
|
|
"then",
|
|
{ name: "trim", insertText: ';(await x).trim', replacementSpan },
|
|
],
|
|
preferences: {
|
|
includeInsertTextCompletions: true,
|
|
},
|
|
});
|