Skip to content

Commit

Permalink
fix(suggestion): point range (#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
WAY29 authored Jul 5, 2024
1 parent 4e74767 commit 91dafb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ export const newYaklangCompletionHandlerProvider = (model: editor.ITextModel, po
if (iWord.word.endsWith(".")) {
range.startColumn = position.column;
range.endColumn = position.column;
} else if (iWord.word.indexOf(".") > 0) {
} else if (iWord.word.indexOf(".") >= 0) {
const index = iWord.word.lastIndexOf(".");
range.startColumn = range.startColumn + index + 1;
}
Expand Down

0 comments on commit 91dafb4

Please sign in to comment.