Skip to content

Commit

Permalink
Test coverage fail
Browse files Browse the repository at this point in the history
  • Loading branch information
nobody-famous committed Feb 7, 2025
1 parent 953a25b commit 172cdf8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/vscode/backend/LSP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,16 @@ export class LSP extends EventEmitter implements LSPEvents {
evalWithOutput = async (text: string, pkgName: string, storeResult?: boolean): Promise<void> => {
this.emit('output', `${EOL}${text}`)

const result = await this.eval(text, pkgName, storeResult)
const results = await this.eval(text, pkgName, storeResult)

if (result !== undefined) {
this.emit('output', result)
if (results !== undefined) {
if (Array.isArray(results)) {
for (const res of results) {
this.emit('output', res)
}
} else {
this.emit('output', results)
}
}
}

Expand Down

0 comments on commit 172cdf8

Please sign in to comment.