feat: await for deleteChain
This commit is contained in:
parent
bc7ae7c7c7
commit
cd8450f9d5
1 changed files with 2 additions and 2 deletions
|
|
@ -878,7 +878,7 @@ const getCommandsMap: (
|
|||
if (isFim) {
|
||||
if (!fimText) {
|
||||
console.log("deleteChain from commands.ts: !fimText");
|
||||
NextEditProvider.getInstance().deleteChain();
|
||||
await NextEditProvider.getInstance().deleteChain();
|
||||
}
|
||||
// For FIM edits, create an inline completion item.
|
||||
const nextEditCompletionItem = new vscode.InlineCompletionItem(
|
||||
|
|
@ -914,7 +914,7 @@ const getCommandsMap: (
|
|||
const diffLines = myersDiff(oldEditRangeSlice, newEditRangeSlice);
|
||||
if (diffLines.length === 0) {
|
||||
console.log("deleteChain from commands.ts: diffLines.length === 0");
|
||||
NextEditProvider.getInstance().deleteChain();
|
||||
await NextEditProvider.getInstance().deleteChain();
|
||||
}
|
||||
|
||||
if (NextEditWindowManager.isInstantiated()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue