[Python] How to make jedi context-aware?

Discussão em 'Python' iniciado por Stack, Abril 8, 2025.

  1. Stack

    Stack Membro Participativo

    Building a custom code IDE for python. I am using jedi (as LSP) for autocompletions, popping functions definitions when hovering and Monaco editor on angular.

    I am following a websocket approach for monaco editor to listen to my LSP.

    Everytime cursor changes, I am sending whole code to jedi, if I just send a word, it doesn't get context. I need to send whole context, but its expensive when I want to get autocompletions when hovering or typing..

    Is there a smarter way to do this?

    Continue reading...

Compartilhe esta Página