Skip to content

Commit

Permalink
Revert haxe server changes, will fix in haxeserver lib instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Jan 15, 2024
1 parent 586c3d9 commit 8cd1c25
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/haxeLanguageServer/server/HaxeServer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -383,21 +383,6 @@ class HaxeServer {
function onMessage(msg:String) {
if (currentRequest != null) {
final request = currentRequest;

// Unify last line ending with in-between lines
msg = msg + "\x01";

// Haxe 5.0 / nightlies
// Since https://github.com/HaxeFoundation/haxe/pull/11459
msg = msg.split("\n\x01\n\x01").join("\n");

// Haxe <= 4.3.x
msg = msg.split("\x01\n\x01").join("\n");

// Remove initial \x01 that will eat next newline char
if (StringTools.startsWith(msg, "\x01"))
msg = msg.substr(1);

context.serverRecording.onServerMessage(request, msg);
currentRequest = null;
request.onData(msg);
Expand Down

0 comments on commit 8cd1c25

Please sign in to comment.