Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-dev] GenericEditor and Code Completion Templates

Hi,

This is not specific to the Generic Editor, but is a pure feature of the TextViewer. This capability of defining placeholder regions and having them linked and allowing tab navigation, is provided by EditorLinkedModeUI as main entry point. In a completion proposal, you'd enable this EditorLinkedModeUI as part of the "apply" method of your completion proposal. See for instance https://git.eclipse.org/c/lsp4e/lsp4e.git/tree/org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/completion/LSIncompleteCompletionProposal.java#n558

HTH

Back to the top