@@ -291,14 +291,12 @@ public void openFile(String fileName, String content) throws TypeScriptException
291
291
292
292
@ Override
293
293
public void openFile (String fileName , String content , ScriptKindName scriptKindName ) throws TypeScriptException {
294
- //waitForFuture(executeNoResult(new OpenRequest(fileName, null, content, scriptKindName)));
295
- executeNoResult (new OpenRequest (fileName , null , content , scriptKindName ));
294
+ waitForFuture (executeNoResult (new OpenRequest (fileName , null , content , scriptKindName )));
296
295
}
297
296
298
297
@ Override
299
298
public void closeFile (String fileName ) throws TypeScriptException {
300
- //waitForFuture(executeNoResult(new CloseRequest(fileName)));
301
- executeNoResult (new CloseRequest (fileName ));
299
+ waitForFuture (executeNoResult (new CloseRequest (fileName )));
302
300
}
303
301
304
302
// @Override
@@ -311,8 +309,7 @@ public void closeFile(String fileName) throws TypeScriptException {
311
309
@ Override
312
310
public void changeFile (String fileName , int line , int offset , int endLine , int endOffset , String insertString )
313
311
throws TypeScriptException {
314
- //waitForFuture(executeNoResult(new ChangeRequest(fileName, line, offset, endLine, endOffset, insertString)));
315
- executeNoResult (new ChangeRequest (fileName , line , offset , endLine , endOffset , insertString ));
312
+ waitForFuture (executeNoResult (new ChangeRequest (fileName , line , offset , endLine , endOffset , insertString )));
316
313
}
317
314
318
315
/**
0 commit comments