initial re-work of async behavior of language server, looking at the text document service first
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2020 Pivotal, Inc.
|
||||
* Copyright (c) 2020, 2021 Pivotal, Inc.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
@@ -316,7 +316,7 @@ public class ValueSpelExpressionValidationTest {
|
||||
server.getTextDocumentService().didOpen(openParams);
|
||||
server.getAsync().waitForAll();
|
||||
|
||||
TextDocument doc = server.getTextDocumentService().get(docUri);
|
||||
TextDocument doc = server.getTextDocumentService().getLatestSnapshot(docUri);
|
||||
|
||||
int position = content.indexOf(selectedAnnotation);
|
||||
doc.replace(position, selectedAnnotation.length(), annotationStatementBeforeTest);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2020 Pivotal, Inc.
|
||||
* Copyright (c) 2020, 2021 Pivotal, Inc.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
@@ -141,7 +141,7 @@ public class XMLSpelExpressionValidationTest {
|
||||
server.getTextDocumentService().didOpen(openParams);
|
||||
server.getAsync().waitForAll();
|
||||
|
||||
TextDocument doc = server.getTextDocumentService().get(docUri);
|
||||
TextDocument doc = server.getTextDocumentService().getLatestSnapshot(docUri);
|
||||
|
||||
int position = content.indexOf(selectedAnnotation);
|
||||
doc.replace(position, selectedAnnotation.length(), annotationStatementBeforeTest);
|
||||
|
||||
Reference in New Issue
Block a user