Skip to content

Commit

Permalink
Fix empty returns in readApiCall
Browse files Browse the repository at this point in the history
  • Loading branch information
Hal-9k1 committed Nov 28, 2024
1 parent 896886c commit 9318e32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/addEditorTooltips.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { TokenIterator } = acequire('ace/token_iterator');

const apiHelpComponents: {
[matchText: string]: () => ReactNode;
}[] = {
} = {
'Robot.get_value': () => (
<div>
Documentation for Robot.get_value method.
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/readApiCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export default (session: Ace.EditSession, pos: Ace.Position, minLength: number):
isInterrupted = true;
token = iter.stepBackward();
if (token === null) {
return;
return { text: '', isInterrupted };
}
}
if (token.type === 'comment') {
return;
return { text: '', isInterrupted };
}
let lastWasIdentifier = tokenIsIdent();
if (iter.getCurrentTokenRow() !== pos.row) {
Expand Down

0 comments on commit 9318e32

Please sign in to comment.