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

monaco-vscode-python-default-extension not getting registered #647

Closed iam-abdul closed 5 months ago

iam-abdul commented 5 months ago

I am trying to reimplement the python-lsp with react wrapper example, but i am having hard time getting the syntax highlighting for python.

editor not requesting the python language configuration

Screenshot 2024-04-30 at 12 55 41 AM

I have imported the python-default-extension. I see the requests for "@codingame/monaco-vscode-theme-defaults-default-extension/resources/light_modern.json" but not for the python configuration.

Screenshot 2024-04-30 at 12 57 03 AM

VITE config [

Screenshot 2024-04-30 at 12 59 28 AM

](url)

I don't understand if it is an issue or i might have missed something, please correct me if that is the case. 🙏 thanks

iam-abdul commented 5 months ago

i got the syntax highlighting to work by modifying the index.js file inside "monaco-vscode-theme-defaults-default-extension", here i am registering the python extension here in this file.

Screenshot 2024-04-30 at 9 04 47 AM
kaisalmen commented 5 months ago

Hi @iam-abdul if you use the wrapper with extended config (see here) you only have to import the python higlighting

iam-abdul commented 5 months ago

hey hi @kaisalmen, i guess there is some issue with my configuration the syntax highlighting is working out of the box when i clone and run this repo.