Skip to content

Commit

Permalink
Fix #1316 - Vue.JS tests failures
Browse files Browse the repository at this point in the history
  • Loading branch information
zulus committed Sep 6, 2023
1 parent 97014f6 commit 0ea331b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ protected boolean condition() {
"No error found on erroneous HTML component file");
// test completion
LSContentAssistProcessor contentAssistProcessor = new LSContentAssistProcessor();
String tag = "<only-start>";
int pos = document.get().indexOf(tag) + tag.length();
ICompletionProposal[] proposals = contentAssistProcessor.computeCompletionProposals(Utils.getViewer(editor),
document.get().indexOf("<only-start>") + " <only-start>".length() - 1);
pos);
proposals[0].apply(document);
assertEquals(new String(componentFolder.getFile("HelloWorldCorrect.vue").getContents().readAllBytes()).trim(),
document.get().trim(), "Incorrect completion insertion");
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.wildwebdeveloper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"debugger-for-chrome": "file:target/debugger-for-chrome-4.13.0.tgz",
"eslint-server": "file:target/eslint-server-2.4.1.tgz",
"node-debug2": "file:target/node-debug2-1.43.0.tgz",
"@vue/language-server" : "1.8.8"
"@vue/language-server" : "1.8.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public Object getInitializationOptions(URI rootUri) {

try {
URL url = FileLocator.toFileURL(getClass().getResource("/node_modules/typescript/lib"));
System.out.println(new File(url.getPath()).getAbsolutePath());
return Collections.singletonMap("typescript", Collections.singletonMap("tsdk", new File(url.getPath()).getAbsolutePath()));
} catch (IOException e) {
}
Expand Down

0 comments on commit 0ea331b

Please sign in to comment.