We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54792f9 commit 5ef25a8Copy full SHA for 5ef25a8
lib/adapters/autocomplete-adapter.ts
@@ -103,7 +103,7 @@ export default class AutocompleteAdapter {
103
104
// We must update the replacement prefix as characters are added and removed
105
const cache = this._suggestionCache.get(server)!;
106
- const replacementPrefix = request.editor.getTextInBufferRange([cache.triggerPoint, request.bufferPosition]);
+ const replacementPrefix = request.editor.getTextInBufferRange([cache.originalBufferPoint, request.bufferPosition]);
107
for (const suggestion of suggestions) {
108
if (suggestion.customReplacmentPrefix) { // having this property means a custom range was provided
109
const len = replacementPrefix.length;
0 commit comments