Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions commands/predict.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,15 @@
});
} else if (answer.type == "prepend") {
vscode.window.activeTextEditor.insertSnippet(new vscode.SnippetString(`${answer.content}\n`), sel_start);
} else if (typeof answer === "string") {
vscode.window.showInformationMessage(answer);
} else {
vscode.window.activeTextEditor.insertSnippet(new vscode.SnippetString(`\n${answer.content}`), sel_end);
}
progress.report({ increment: 5 });
resolve();
})
.catch((ex) => {

Check warning on line 102 in commands/predict.js

View workflow job for this annotation

GitHub Actions / test

'ex' is defined but never used
vscode.window.showErrorMessage(
`Alita is not able to connected to ${alitaService.serviceProvider.getPromptsUrl}`
);
Expand Down
Loading