Code completion from script editor in custom CodeEdit?

Godot Version

v4.6.3.stable.official [7d41c59c4]

Question

I’m tinkering with plugins and have been trying to create a CodeEdit which acts similarly to the Script Editor. I was able to use GDScriptSyntaxHighlighter to highlight the syntax correctly, but I can’t find a simple solution for implementing the same kind of GDscript code completion that is in the script editor.

Is there a way to make use of the code completion features of the script editor in a custom CodeEdit? Or is the only way to override _request_code_completion and populate the code completion list myself?