|
@@ -138,16 +138,17 @@ class ServerTests extends HaxeServerTestCase {
|
|
|
vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|
|
|
runHaxeJson(["-cp", "."], ServerMethods.ReadClassPaths, null);
|
|
|
vfs.putContent("Empty.hx", getTemplate("Empty.hx"));
|
|
|
+ runHaxeJson([], ServerMethods.ModuleCreated, {file: new FsPath("Empty.hx")});
|
|
|
runHaxeJson([], DisplayMethods.Completion, {file: new FsPath("HelloWorld.hx"), offset: 75, wasAutoTriggered: false});
|
|
|
var completion = parseCompletion();
|
|
|
assertHasCompletion(completion, module -> switch (module.kind) {
|
|
|
case Type: module.args.path.typeName == "HelloWorld";
|
|
|
case _: false;
|
|
|
});
|
|
|
- // assertHasCompletion(completion, module -> switch (module.kind) {
|
|
|
- // case Type: module.args.path.typeName == "Empty";
|
|
|
- // case _: false;
|
|
|
- // });
|
|
|
+ assertHasCompletion(completion, module -> switch (module.kind) {
|
|
|
+ case Type: module.args.path.typeName == "Empty";
|
|
|
+ case _: false;
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
|