-
I want to develop a extension to implement AI code hint ,I plan to access OpenAI by HTTP API, but how to display the result in editor? I find vscode api has InlineCompletionItemProvider , what about Theia? Example : |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Can someone help me? |
Beta Was this translation helpful? Give feedback.
-
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: theia/packages/plugin-ext/src/main/browser/languages-main.ts Lines 923 to 937 in 9ff0ced The goal would be to do something similar to accomplish what you're trying to do. |
Beta Was this translation helpful? Give feedback.
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:
theia/packages/plugin-ext/src/main/browser/languages-main.ts
Lines 923 to 937 in 9ff0ced