Hi, guys. I want to implement an effect similar to...
# compiler
s
Hi, guys. I want to implement an effect similar to
serializer()
in
kotlinx.serialisation
, like this:
Copy code
@GenerateApi
interface TestApiService

// use
TestApiService.create(client)
I want generate the
create(client)
function for
TestApiService
automatically via
kcp
, so far I have used `SyntheticResolveExtension`/`FirDeclarationGenerationExtension`/`IrGenerationExtension` to make it compile and run normally, but the
IDE
don't know and prompt the
create(client)
function, Can this prompt be achieved by
kcp
and if so, which
extension
should it be based on?
t
Hi! As far as I know code generated in FIR is not available in the IDE until 2.0 is released. If you compile your project into a module and use that module from another project the
create
function should show up. Assuming you added it properly.