|
|
|
|
@@ -70,9 +70,6 @@ public class DependsOnCompletionProcessor implements CompletionProvider {
|
|
|
|
|
DocumentEdits edits = new DocumentEdits(doc, false);
|
|
|
|
|
edits.replace(offset, offset, "\"" + bean.getName() + "\"");
|
|
|
|
|
|
|
|
|
|
// PT-160455522: create a proposal with `PlainText` format type, because for vscode (but not Eclipse), if you send it as a snippet
|
|
|
|
|
// and it is "place holder" as such `"${debug}"`, vscode may treat it as a snippet place holder, and insert an empty string
|
|
|
|
|
// if it cannot resolve it. If sending this as plain text, then insertion happens correctly
|
|
|
|
|
DependsOnCompletionProposal proposal = new DependsOnCompletionProposal(edits, bean.getName(), bean.getName(), null);
|
|
|
|
|
|
|
|
|
|
completions.add(proposal);
|
|
|
|
|
@@ -137,9 +134,6 @@ public class DependsOnCompletionProcessor implements CompletionProvider {
|
|
|
|
|
DocumentEdits edits = new DocumentEdits(doc, false);
|
|
|
|
|
edits.replace(startOffset, endOffset, proposalPrefix + bean.getName() + proposalPostfix);
|
|
|
|
|
|
|
|
|
|
// PT-160455522: create a proposal with `PlainText` format type, because for vscode (but not Eclipse), if you send it as a snippet
|
|
|
|
|
// and it is "place holder" as such `"${debug}"`, vscode may treat it as a snippet place holder, and insert an empty string
|
|
|
|
|
// if it cannot resolve it. If sending this as plain text, then insertion happens correctly
|
|
|
|
|
DependsOnCompletionProposal proposal = new DependsOnCompletionProposal(edits, bean.getName(), bean.getName(), null);
|
|
|
|
|
|
|
|
|
|
completions.add(proposal);
|
|
|
|
|
@@ -168,9 +162,6 @@ public class DependsOnCompletionProcessor implements CompletionProvider {
|
|
|
|
|
DocumentEdits edits = new DocumentEdits(doc, false);
|
|
|
|
|
edits.replace(startOffset, endOffset, bean.getName());
|
|
|
|
|
|
|
|
|
|
// PT-160455522: create a proposal with `PlainText` format type, because for vscode (but not Eclipse), if you send it as a snippet
|
|
|
|
|
// and it is "place holder" as such `"${debug}"`, vscode may treat it as a snippet place holder, and insert an empty string
|
|
|
|
|
// if it cannot resolve it. If sending this as plain text, then insertion happens correctly
|
|
|
|
|
DependsOnCompletionProposal proposal = new DependsOnCompletionProposal(edits, bean.getName(), bean.getName(), null);
|
|
|
|
|
|
|
|
|
|
completions.add(proposal);
|
|
|
|
|
@@ -190,9 +181,6 @@ public class DependsOnCompletionProcessor implements CompletionProvider {
|
|
|
|
|
DocumentEdits edits = new DocumentEdits(doc, false);
|
|
|
|
|
edits.replace(offset, offset, "\"" + bean.getName() + "\"");
|
|
|
|
|
|
|
|
|
|
// PT-160455522: create a proposal with `PlainText` format type, because for vscode (but not Eclipse), if you send it as a snippet
|
|
|
|
|
// and it is "place holder" as such `"${debug}"`, vscode may treat it as a snippet place holder, and insert an empty string
|
|
|
|
|
// if it cannot resolve it. If sending this as plain text, then insertion happens correctly
|
|
|
|
|
DependsOnCompletionProposal proposal = new DependsOnCompletionProposal(edits, bean.getName(), bean.getName(), null);
|
|
|
|
|
|
|
|
|
|
completions.add(proposal);
|
|
|
|
|
@@ -217,9 +205,6 @@ public class DependsOnCompletionProcessor implements CompletionProvider {
|
|
|
|
|
DocumentEdits edits = new DocumentEdits(doc, false);
|
|
|
|
|
edits.replace(offset, offset, "\"" + bean.getName() + "\",");
|
|
|
|
|
|
|
|
|
|
// PT-160455522: create a proposal with `PlainText` format type, because for vscode (but not Eclipse), if you send it as a snippet
|
|
|
|
|
// and it is "place holder" as such `"${debug}"`, vscode may treat it as a snippet place holder, and insert an empty string
|
|
|
|
|
// if it cannot resolve it. If sending this as plain text, then insertion happens correctly
|
|
|
|
|
DependsOnCompletionProposal proposal = new DependsOnCompletionProposal(edits, bean.getName(), bean.getName(), null);
|
|
|
|
|
|
|
|
|
|
completions.add(proposal);
|
|
|
|
|
|