Fix bosh tests for atom LS settings
This commit is contained in:
@@ -64,6 +64,7 @@ public class BoshEditorTest {
|
||||
LanguageId.BOSH_DEPLOYMENT
|
||||
);
|
||||
harness.intialize(null);
|
||||
System.setProperty("lsp.yaml.completions.errors.disable", "false");
|
||||
}
|
||||
|
||||
@Test public void toplevelV2PropertyNamesKnown() throws Exception {
|
||||
|
||||
@@ -52,7 +52,11 @@ public class BoshLanguageServerTest {
|
||||
}
|
||||
|
||||
private void assertExpectedInitResult(InitializeResult initResult) {
|
||||
assertThat(initResult.getCapabilities().getCompletionProvider().getResolveProvider()).isTrue();
|
||||
if (Boolean.getBoolean("lsp.lazy.completions.disable")) {
|
||||
assertThat(initResult.getCapabilities().getCompletionProvider().getResolveProvider()).isFalse();
|
||||
} else {
|
||||
assertThat(initResult.getCapabilities().getCompletionProvider().getResolveProvider()).isTrue();
|
||||
}
|
||||
assertThat(initResult.getCapabilities().getTextDocumentSync().getLeft()).isEqualTo(TextDocumentSyncKind.Incremental);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user