Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
#41 - autocomplete entire value
Browse files Browse the repository at this point in the history
rather than value up to cursor
  • Loading branch information
CullieM committed Aug 24, 2021
1 parent 8e1bc4d commit 6b7f4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/YarnSpinner/yarnSpinnerCompletions.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const completions = {
}];

//Get all of the text in the editor
var text = model.getValueInRange({startLineNumber: 1, startColumn: 1, endLineNumber: position.lineNumber, endColumn: position.column});
var text = model.getValue();
//Regex for both titles and variables, global tag is used.
var nodesRegex = /Title:\s?[A-Za-z0-9_]+[\.]*[A-Za-z0-9_]*/g;
var variablesRegex = /\$[A-Za-z0-9_]+[\.]*[A-Za-z0-9_]*/g;
Expand Down

0 comments on commit 6b7f4e6

Please sign in to comment.