How to make a class extention detected by Intellisense? #24350
Unanswered
Rambaud Pierrick (12rambau)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Note
It's a duplicate from SO but as it seems to be either a bug or a limitation. so I narrowed down my question to the best IDE, i.e vscode
Context
I'm building an extention package on top of a Google API called Google Earth Engine:
geetools. In short I want to add to an existing package object extra functions that are repetitive or complicated for new users.The choice of using extention is dictated from the client VS server interaction of this API and I cannot use simple class definition if I want to remain server sided. The complete explaination and inspiration is documented here: https://geetools.readthedocs.io/en/latest/setup/pattern.html
Issue
My extentions are perfectly working but they remain undetected by Intellisence so I see no documentation and prototype when hover in VSCode, I cannot "go to definition" or even see the parameters names which makes it very difficult to use.
reproduce example
This is a completely unecessary overload of an empty class but it shows exactly what I perform and where it fails:
The calls work:
but lookup is not working:
What should I modify in my code to make the accessor content detected ?
All reactions