refactor ExtHostDocumentModel to ready for node_module consumption

This commit is contained in:
Johannes Rieken
2016-01-11 10:50:25 +01:00
parent ffc21477ea
commit d78646888a
5 changed files with 200 additions and 180 deletions

View File

@@ -508,7 +508,7 @@ class SuggestAdapter implements modes.ISuggestSupport {
let defaultSuggestions: modes.ISuggestResult = {
suggestions: [],
currentWord: ran ? doc.getText(new Range(ran.start, pos)) : '',
currentWord: ran ? doc.getText(new Range(ran.start.line, ran.start.character, pos.line, pos.character)) : '',
};
let allSuggestions: modes.ISuggestResult[] = [defaultSuggestions];