Skip to content

Commit 5ef25a8

Browse files
committed
fix: fix removing triggerChar
1 parent 54792f9 commit 5ef25a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/adapters/autocomplete-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default class AutocompleteAdapter {
103103

104104
// We must update the replacement prefix as characters are added and removed
105105
const cache = this._suggestionCache.get(server)!;
106-
const replacementPrefix = request.editor.getTextInBufferRange([cache.triggerPoint, request.bufferPosition]);
106+
const replacementPrefix = request.editor.getTextInBufferRange([cache.originalBufferPoint, request.bufferPosition]);
107107
for (const suggestion of suggestions) {
108108
if (suggestion.customReplacmentPrefix) { // having this property means a custom range was provided
109109
const len = replacementPrefix.length;

0 commit comments

Comments
 (0)