diff --git a/org.eclipse.lsp4xml/src/main/java/org/eclipse/lsp4xml/extensions/contentmodel/participants/ContentModelCompletionParticipant.java b/org.eclipse.lsp4xml/src/main/java/org/eclipse/lsp4xml/extensions/contentmodel/participants/ContentModelCompletionParticipant.java index ac600d089..2752f659d 100644 --- a/org.eclipse.lsp4xml/src/main/java/org/eclipse/lsp4xml/extensions/contentmodel/participants/ContentModelCompletionParticipant.java +++ b/org.eclipse.lsp4xml/src/main/java/org/eclipse/lsp4xml/extensions/contentmodel/participants/ContentModelCompletionParticipant.java @@ -71,7 +71,7 @@ public void onTagOpen(ICompletionRequest request, ICompletionResponse response) } } } catch (CacheResourceDownloadingException e) { - addCacheWarningItem(e, response); + // XML Schema, DTD is loading, ignore this error } } @@ -147,7 +147,7 @@ public void onAttributeName(boolean generateValue, Range fullRange, ICompletionR } } } catch (CacheResourceDownloadingException e) { - addCacheWarningItem(e, response); + // XML Schema, DTD is loading, ignore this error } } @@ -173,16 +173,7 @@ public void onAttributeValue(String valuePrefix, Range fullRange, boolean addQuo } } } catch (CacheResourceDownloadingException e) { - addCacheWarningItem(e, response); + // XML Schema, DTD is loading, ignore this error } } - - private void addCacheWarningItem(CacheResourceDownloadingException e, ICompletionResponse response) { - // Here cache is enabled and some XML Schema, DTD, etc are loading - CompletionItem item = new CompletionItem( - "Cannot process " + (e.isDTD() ? "DTD" : "XML Schema") + " completion: " + e.getMessage()); - item.setInsertText(""); - response.addCompletionItem(item); - } - }