Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode deleting random characters, when using this mod's third party config path #141

Open
colinsmao opened this issue Sep 15, 2024 · 0 comments

Comments

@colinsmao
Copy link

colinsmao commented Sep 15, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant