vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

Changes to Textmate scopes

Open hargaow opened this issue 10 months ago • 2 comments

Describe the bug With v2.8.5, textmate scopes have changed and many tokens only have the 'source.r' scope (related to Rsyntax upgrade?). As a result, themes and customisation are affected with limited ability to fine tune.

To Reproduce

  1. Before upgrading to 2.8.5, observe that object on the left hand side of <- (e.g. dt <- data.table()) have two textmate scopes - variable.other.r and source.r
  2. Upgrade to 2.8.5
  3. Only 1 textmate scope left - source.r

Can you fix this issue by yourself? (We appreciate the help)

Yes / [No]

Expected behavior Behaviour prior to upgrade where tokens have multiple textmate scope to fine tune customisation.

Environment (please complete the following information):

  • OS: macOS
  • VSCode Version: 1.99.2
  • R Version: 4.4.2
  • vscode-R version: 2.8.5

Thanks

hargaow avatar Apr 15 '25 03:04 hargaow

Agree, this is happening here as well

tomasnobrega avatar Apr 15 '25 21:04 tomasnobrega

I just found that Commit c937cdd explicitly removed variable.other.r to 'be more consistant with other languages such as python'. Is it possible to reconsider?

hargaow avatar Apr 16 '25 01:04 hargaow