Skip to content

Commit

Permalink
Merge pull request #9 from mickdekkers/fix-entity-id-completion-first…
Browse files Browse the repository at this point in the history
…-line

Fix multi-line entity id completion at first line
  • Loading branch information
keesschollaart81 authored Mar 22, 2019
2 parents e7ba6bb + 5a39e76 commit 081554a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entity-id-completion-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class EntityIdCompletionProvider implements vscode.CompletionItemProvider

isMultiLineMatch(document: vscode.TextDocument, position: vscode.Position): boolean {
let currentLine = position.line;
while (currentLine > 0) {
while (currentLine >= 0) {
var thisLine = document.lineAt(currentLine);
let isOtherItemInList = thisLine.text.match(/-\s*([-\w]+)?(\.)?([-\w]+?)?\s*$/);
if (isOtherItemInList) {
Expand Down

0 comments on commit 081554a

Please sign in to comment.