microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 235 forks source link

Wrong scope "support.variable.property.dom" #778

Closed sultan-ov closed 3 years ago

sultan-ov commented 3 years ago

Properties of my own object fall under the scope of "support.variable.property.dom":

screenshot_wrong_scope_1

This covers a significant number of commonly used words:

screenshot_wrong_scope_2

This clearly looks like a bug. I cannot fix this in my color scheme for example by changing the "foreground" to my normal property color because if I define "name" property as a functional expression it still falls under "support.variable.property.dom" and does not change to "entity.name.function" as it happens with normal properties and as a result is not colored in my function color:

screenshot_wrong_scope_3

screenshot_wrong_scope_4

sultan-ov commented 3 years ago

Moved to TypeScript-TmLanguage repo issues #879