Moonshine-IDE / moonshine-feathersui-text-editor

A text editor component with syntax highlighting and code intelligence features for Feathers UI
Other
7 stars 1 forks source link

TextEditorChanges must not overlap - exception #4

Closed piotrzarzycki21 closed 2 years ago

piotrzarzycki21 commented 2 years ago

When I'm using Command + Shift + I to clean up imports I'm getting following stacktrace in console.

MoonshineDevelopment version 3.3.0 Build 2222 MacOS Monterey Version 12.0.1

: TextEditorChanges must not overlap. { startLine: 2, startChar: 0, endLine: 19, endChar: 64 } overlaps with { startLine: 2, startChar: 0, endLine: 2, endChar: 0}.
: ArgumentError: TextEditorChanges must not overlap. { startLine: 2, startChar: 0, endLine: 19, endChar: 64 } overlaps with { startLine: 2, startChar: 0, endLine: 2, endChar: 0}.
:   at moonshine.editor.text.managers::EditManager/mergeChanges()
:   at moonshine.editor.text.managers::EditManager/editManager_textEditor_textChangePriorityHandler()
:   at flash.events::EventDispatcher/dispatchEvent()
:   at global/actionScripts.utils::applyTextEditsToTextEditor()
:   at global/actionScripts.utils::applyTextEditsToFile()
:   at Function/applyWorkspaceEdit.as$805:applyTextEditsToURI()
:   at global/actionScripts.utils::applyWorkspaceEdit()
:   at actionScripts.languageServer::ActionScriptLanguageServerManager/languageClient_applyEditHandler()
:   at flash.events::EventDispatcher/dispatchEvent()
:   at moonshine.lsp::LanguageClient/workspace__applyEdit()
:   at moonshine.lsp::LanguageClient/parseRequestMessage()
:   at moonshine.lsp::LanguageClient/parseMessage()
:   at moonshine.lsp::LanguageClient/parseMessageBuffer()
:   at moonshine.lsp::LanguageClient/languageClient_input_onData()
:
joshtynjala commented 2 years ago

Thanks, Piotr. That's a false positive. I'll get it fixed!