TypeFox / monaco-languageclient

Repo hosts npm packages for monaco-languageclient, vscode-ws-jsonrpc, monaco-editor-wrapper, @typefox/monaco-editor-react and monaco-languageclient-examples
https://www.npmjs.com/package/monaco-languageclient
MIT License
1.05k stars 178 forks source link

Can the server support custom code prompts? #656

Closed wrf1998 closed 4 months ago

wrf1998 commented 4 months ago

I am currently using the python server in the example, and I find that its code hints only support the data provided by pyright, but I have some packages that are internal to the company, and I want to be able to hint and hover the mouse to see some specific information about the package, etc. How do I need to modify my server side

kaisalmen commented 4 months ago

Hi @wrf1998 this is a pyright configuration issue. Did you check the documentation or did you test try this within VSCode already?

wrf1998 commented 4 months ago

Hi @wrf1998 this is a pyright configuration issue. Did you check the documentation or did you test try this within VSCode already?

I did not use vscode software, I used monago-edit, and on the server side I started the node service directly following the documentation tutorial without making any changes. At the same time, most of what I see in the pyright documentation is for vscode configuration, not like this to start a node to provide web socket service, so I do not know how to configure

image