Преглед на файлове

[display] fix inconsistent response type of ModuleCreated

There's an assumption in the language server that it's always Response<T>.
Jens Fischer преди 6 години
родител
ревизия
ae4b259f05
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      std/haxe/display/Server.hx

+ 1 - 1
std/haxe/display/Server.hx

@@ -40,7 +40,7 @@ class ServerMethods {
 	static inline var Modules = new HaxeRequestMethod<ContextParams, Response<Array<String>>>("server/modules");
 	static inline var Module = new HaxeRequestMethod<ModuleParams, Response<JsonModule>>("server/module");
 	static inline var Files = new HaxeRequestMethod<ContextParams, Response<Array<JsonServerFile>>>("server/files");
-	static inline var ModuleCreated = new HaxeRequestMethod<FileParams, NoData>("server/moduleCreated");
+	static inline var ModuleCreated = new HaxeRequestMethod<FileParams, Response<NoData>>("server/moduleCreated");
 }
 
 /* Configure */