Luong Nguyen Thanh

Results 44 comments of Luong Nguyen Thanh

It works well, excepted that in the Outlines, you will see 2 language servers. I think if you can look at their code and cherry-pick the part that help to...

![image](https://github.com/posit-dev/positron/assets/63569637/fb8b1f11-66ae-44e6-a84f-0d4d422f53c7) Attached is the screenshot

But is there any plan to support display syntax highlighting of Python code for Quarto too?

> Currently, module keywords such as pandas, pd, etc. are not highlighted. See the example below > > **In Vscode** ![image](https://private-user-images.githubusercontent.com/63569637/344376661-3fbb11a1-cbc7-46eb-b9a3-d99be00b5245.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NDMxOTEsIm5iZiI6MTcyMDU0Mjg5MSwicGF0aCI6Ii82MzU2OTYzNy8zNDQzNzY2NjEtM2ZiYjExYTEtY2JjNy00NmViLWI5YTMtZDk5YmUwMGI1MjQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDE2MzQ1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWExNDJkOWZkMTcxNDE5YTFiZDA2MWJjNzYwOWVlMzY0ZDgzMTJlNTMwYWE4YTA0NDEwMmQzYWUxNDJlMmU0YTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7XkfuSk2AeZlLpVTXM1iwtlSzFC2bXXPynmqcKgEGwk) > > **In Positron** ![image](https://private-user-images.githubusercontent.com/63569637/344376702-9f4ec2d7-0e85-4b34-904a-6d28c7c0b30c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NDMxOTEsIm5iZiI6MTcyMDU0Mjg5MSwicGF0aCI6Ii82MzU2OTYzNy8zNDQzNzY3MDItOWY0ZWMyZDctMGU4NS00YjM0LTkwNGEtNmQyOGM3YzBiMzBjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDE2MzQ1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYyYThkZDRjNzljN2ZhZTA3ODdmMjUyYTAwODY3ZWEwMDNmYzg2ZDM0ZDc3MzIzNzY2YmJkMzQ4M2NlMjA1NjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._MfSqHwEmPISP4n9oR8QI6p2ldfCHqO7IMEFmKfcE9o) I think module keywords,...

I don't have the knowledge on this, but [this document](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide) might be helpful to know all of the token type. For prioritizing purpose, for me at least module keywords, class...

I tested and it works quite well. May be add also "variable.declaration", "property.declaration" and "function.builtin". Those are something I have set syntax highlighting when using Pylance. The problem is it...

I found this one, could be helpful: https://gitee.com/guanyusheng/semshi/blob/master/rplugin/python3/semshi/parser.py

> Unfortunately this isn't a priority at the moment, but I did spend a little time seeing what it would take to support semantic highlighting with Jedi on the [3731-investigate-jedi-lsp-semantic-tokens](https://github.com/posit-dev/positron/compare/3731-investigate-jedi-lsp-semantic-tokens?expand=1)...

@austin3dickey for semantic token provider, see some implementations in ty here: https://github.com/astral-sh/ty/issues/791

[Pyrefly](https://open-vsx.org/extension/meta/pyrefly) has the semantic highlight now. Tested and worked well in Positron