Skip to content

Commit

Permalink
Drop Thread.sleep from reconcilers
Browse files Browse the repository at this point in the history
  • Loading branch information
zulus authored and vrubezhny committed Oct 31, 2023
1 parent b8d70c2 commit b32dad2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,6 @@ private void autoInsert(DocumentEvent event) {
// The document is bound with XML language server, consumes the xml/closeTag
final Display display = viewer.getTextWidget().getDisplay();
CompletableFuture.supplyAsync(() -> {
try {
// Wait for textDocument/didChange
Thread.sleep(100);
} catch (InterruptedException ex) {
Thread.interrupted();
}
try {
TextDocumentPositionParams params = LSPEclipseUtils
.toTextDocumentPosistionParams(uri, offset, document);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ private void autoInsert(DocumentEvent event) {
// The document is bound with HTML language server, consumes the html/autoInsert
final Display display = viewer.getTextWidget().getDisplay();
CompletableFuture.supplyAsync(() -> {
try {
// Wait for textDocument/didChange
Thread.sleep(100);
} catch (InterruptedException ex) {
Thread.interrupted();
}
try {
AutoInsertParams params = new AutoInsertParams();
params.setTextDocument(identifier);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@ private void autoInsert(DocumentEvent event) {
// The document is bound with HTML language server, consumes the html/autoInsert
final Display display = viewer.getTextWidget().getDisplay();
CompletableFuture.supplyAsync(() -> {
try {
// Wait for textDocument/didChange
Thread.sleep(100);
} catch (InterruptedException ex) {
Thread.interrupted();
}

try {

AutoInsertParams params = new AutoInsertParams();
Expand Down

0 comments on commit b32dad2

Please sign in to comment.