()
| 15 | let lineChars = line.toChars() |
| 16 | |
| 17 | const insertContent = async () => { |
| 18 | if (newText) { |
| 19 | lineChars.insert(toPos.column, newText) |
| 20 | } else if (material) { |
| 21 | const ops = await getAddMaterialOps(ctx.lineContents, toPos, material) |
| 22 | await ctx.runLoop(ops.insertDeps as any, ctx) |
| 23 | if (ops.insertCode) { |
| 24 | // @ts-ignore |
| 25 | lineChars.insert(toPos.column, ops.insertCode.preload.data?.newText) |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | if (wrap) { |
| 31 | const { startStr = '', endStr = '', anotherTo } = wrap |
no test coverage detected