Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix autocomplete insertion range calculation
Tomas Valenta153a689b1531
diff --git a/editor/extensions/autocomplete/suggestion.ts b/editor/extensions/autocomplete/suggestion.tsindex 500b7954f..d6ec40454 100644--- a/editor/extensions/autocomplete/suggestion.ts+++ b/editor/extensions/autocomplete/suggestion.ts@@ -177,8 +177,8 @@ export function Suggestion<Item = Reference>({if (prefixWord) {const match = prefixWord[0]const range = {- from: text.length - match.length + 1,- to: text.length + 1,+ from: textFrom + text.length - match.length + 1,+ to: textFrom + text.length + 1,}if (allow({ editor, range })) {