We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15e916e commit c945bebCopy full SHA for c945beb
src/services/codefixes/fixAwaitInSyncFunction.ts
@@ -19,7 +19,7 @@ namespace ts.codefix {
19
doChange(changes, context.sourceFile, getNodeToInsertBefore(diag.file, diag.start!))),
20
});
21
22
- function getNodeToInsertBefore(sourceFile: SourceFile, pos: number): Node | undefined {//name
+ function getNodeToInsertBefore(sourceFile: SourceFile, pos: number): Node | undefined {
23
const token = getTokenAtPosition(sourceFile, pos, /*includeJsDocComment*/ false);
24
const containingFunction = getContainingFunction(token);
25
switch (containingFunction.kind) {
0 commit comments