Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[orion-dev] Changes to the Content Assist API (action required)

Hi,

Here's a heads-up for some changes to the content assist API that just landed in master. This impacts any plugin that contributes to the "orion.edit.contentAssist" service.

Short summary:
  • An accepted proposal is now inserted as-is at the caret offset. The "prefix" is no longer automatically removed from proposals by the content assist engine.
  • The signature of the computeProposals API function is now: function( /*String*/ buffer, /*Number*/ offset, /*Object*/ context )
  • The context parameter provides additional info about the editor state. It includes the current line, the selection, and the content assist prefix.
See bug 375472 [1] for details, or read the updated Wiki docs [2].

For a simple example of a content assist provider conforming to the updated API, see cssContentAssist.js in the Orion client source code.

Mark

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=375472
[2] http://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Plugging_into_the_editor#orion.edit.contentAssist


Back to the top