Skip to content
Open
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions src/commands/evaluate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const errorDecorator = vscode.window.createTextEditorDecorationType({
outline : 'border-left-width: 1px',
isWholeLine : true,
});
let evaluateCount = 0;
const decoratorTimeout = 5000;
let evaluateCount = 0;
const decoratorTimeout = 600;

// Start and end execution actions
function onEndEvaluate(textEditor: TextEditor, range: Range, responseText: string, isError: boolean)
Expand Down Expand Up @@ -84,7 +84,7 @@ function onStartEvaluate(textEditor: TextEditor, range: Range)
}, decoratorTimeout);

return (text: string, isError: boolean) => {
if (evaluateCount == currentEvaluateCount)
if (evaluateCount != currentEvaluateCount)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure this is a copy/paste error from line 80.

{
onEndEvaluate(textEditor, range, text, isError)
}
Expand Down