Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 439272 - Allow complex Content Assist Proposals - correct author
info

Signed-off-by: Alex Boyko <aboyko@pivotal.io>
  • Loading branch information
BoykoAlex authored and mrennie committed Oct 22, 2014
1 parent f0300f7 commit 3b300cd
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -181,6 +181,13 @@ define("orion/editor/contentAssist", [ //$NON-NLS-0$
this.setState(State.INACTIVE);
var proposalText = typeof proposal === "string" ? proposal : proposal.proposal; //$NON-NLS-0$
view.setText(proposalText, start, end);
if (proposal.additionalEdits) {
var edit;
for (var i = 0; i < proposal.additionalEdits.length; i++) {
edit = proposal.additionalEdits[i];
view.setText(edit.text, edit.offset, edit.offset + edit.length);
}
}
this.dispatchEvent({type: "ProposalApplied", data: data}); //$NON-NLS-0$
return true;
},
Expand Down

0 comments on commit 3b300cd

Please sign in to comment.