Skip to content

How to implement an inlineCompletionItem extension ? #13473

Answered by msujew
znoliver asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @znoliver,

the recommended solution would be to create a vscode extension that contributes this feature. That way, you don't have to work with Theia internal code (which can regularly change). Alternatively, here's how the vscode API is contributed on the browser level of Theia:

$registerInlineCompletionsSupport(handle: number, selector: SerializedDocumentFilter[]): void {
const languageSelector = this.toLanguageSelector(selector);
const provider: monaco.languages.InlineCompletionsProvider<IdentifiableInlineCompletions> = {
provideInlineCompletions: async (
model: m…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@znoliver
Comment options

Answer selected by znoliver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants