|
@@ -369,7 +369,7 @@ class ServerTests extends TestCase {
|
|
|
|
|
|
|
|
function testSyntaxCache() {
|
|
function testSyntaxCache() {
|
|
|
vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|
|
vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|
|
|
- runHaxeJson(["-cp", "."], ServerMethods.ReadClassPaths, null);
|
|
|
|
|
|
|
+ runHaxeJson(["-cp", "."], ServerMethods.ReadClassPaths, {wait: true});
|
|
|
vfs.putContent("Empty.hx", "");
|
|
vfs.putContent("Empty.hx", "");
|
|
|
runHaxeJson([], ServerMethods.ModuleCreated, {file: new FsPath("Empty.hx")});
|
|
runHaxeJson([], ServerMethods.ModuleCreated, {file: new FsPath("Empty.hx")});
|
|
|
vfs.putContent("Empty.hx", getTemplate("Empty.hx"));
|
|
vfs.putContent("Empty.hx", getTemplate("Empty.hx"));
|
|
@@ -401,7 +401,7 @@ class ServerTests extends TestCase {
|
|
|
function testSyntaxCache2() {
|
|
function testSyntaxCache2() {
|
|
|
vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|
|
vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|
|
|
var args = ["-cp", ".", "--interp"];
|
|
var args = ["-cp", ".", "--interp"];
|
|
|
- runHaxeJson(args, ServerMethods.ReadClassPaths, null);
|
|
|
|
|
|
|
+ runHaxeJson(args, ServerMethods.ReadClassPaths, {wait: true});
|
|
|
vfs.putContent("Empty.hx", getTemplate("Empty.hx"));
|
|
vfs.putContent("Empty.hx", getTemplate("Empty.hx"));
|
|
|
runHaxeJson([] /* No args here because file watchers don't generally know */, ServerMethods.ModuleCreated, {file: new FsPath("Empty.hx")});
|
|
runHaxeJson([] /* No args here because file watchers don't generally know */, ServerMethods.ModuleCreated, {file: new FsPath("Empty.hx")});
|
|
|
runHaxeJson(args, DisplayMethods.Completion, {file: new FsPath("HelloWorld.hx"), offset: 75, wasAutoTriggered: false});
|
|
runHaxeJson(args, DisplayMethods.Completion, {file: new FsPath("HelloWorld.hx"), offset: 75, wasAutoTriggered: false});
|