fix(suggestions): make history more faithful to future input (#1210)

* fix(suggestions): make history more faithful to future input

* fix(suggestions): put cursor to the end of line in suggestion history
This commit is contained in:
Thomas Müller 2025-02-10 19:08:58 +01:00 committed by GitHub
parent cc46386130
commit 63136fd92f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,8 +84,8 @@ function Suggestion:suggest()
L1: def fib
L2:
L3: if __name__ == "__main__":
L4: # just pass
L5: pass
L4: # just pass
L5: pass
</code>
]],
},
@ -95,7 +95,7 @@ L5: pass
},
{
role = "user",
content = '<question>{ "indentSize": 4, "position": { "row": 1, "col": 2 } }</question>',
content = '<question>{"insertSpaces":true,"tabSize":4,"indentSize":4,"position":{"row":1,"col":7}}</question>',
},
{
role = "assistant",