You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A small buggy interaction between vscode, the Lua extension, and this extension.
Pressing return and adding a newline in an indented block comment --[[ {newline here} ]] occasionally randomly deletes some characters in nearby lines, breaking everything. Can be undone (separately from the newline) with Ctrl-Z. Probably to do with auto-indentation.
It no longer happens when I change any of these:
Set "Editor: Auto Indent" to "none"
Turn off the sumneko Lua extension completely
Remove the "justarandomgeek.factoriomod-debug\sumneko-3rd" path in "Lua>User Third Party"
The vscode log entry when this happens is: 2024-09-15 00:59:36.932 [debug] _performTextEdits [{"resource":{"$mid":1,"fsPath":"c:\\...path...\\control.lua","_sep":1,"external":"file:///c%3A/...path.../control.lua","path":"/c:/...path.../control.lua","scheme":"file"},"textEdit":{"text":"","range":{"startLineNumber":138,"startColumn":6,"endLineNumber":138,"endColumn":8}},"versionId":1085}]
Return was pressed on line 139, creating a new line 140. But 2 characters were deleted from line 138 ...
I think all my stuff is updated:
VSCode version 1.93.1
Lua v3.10.6
FMTK v1.1.45
The text was updated successfully, but these errors were encountered:
A small buggy interaction between vscode, the Lua extension, and this extension.
Pressing return and adding a newline in an indented block comment --[[ {newline here} ]] occasionally randomly deletes some characters in nearby lines, breaking everything. Can be undone (separately from the newline) with Ctrl-Z. Probably to do with auto-indentation.
It no longer happens when I change any of these:
The vscode log entry when this happens is:
2024-09-15 00:59:36.932 [debug] _performTextEdits [{"resource":{"$mid":1,"fsPath":"c:\\...path...\\control.lua","_sep":1,"external":"file:///c%3A/...path.../control.lua","path":"/c:/...path.../control.lua","scheme":"file"},"textEdit":{"text":"","range":{"startLineNumber":138,"startColumn":6,"endLineNumber":138,"endColumn":8}},"versionId":1085}]
Return was pressed on line 139, creating a new line 140. But 2 characters were deleted from line 138 ...
I think all my stuff is updated:
The text was updated successfully, but these errors were encountered: