microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.52k stars 29.39k forks source link

Strange semantic highlight state #94214

Closed JacksonKearl closed 4 years ago

JacksonKearl commented 4 years ago

Using theme Noctis Lilac https://marketplace.visualstudio.com/items?itemName=liviuschera.noctis

New typesctipt file with contents:

return new Promise((resolve, reject) => {
    const data = await this.tryRetrieveData();
    if (data) {
        resolve(data);
    } else {
        reject("No data!");
    }
});

Notice at first the resolve,reject call are the same color as tryRetrieveData. Then, after a small delay they become the same color as the parameters. I assume this is some semantic highlighting. However, in the token inspector window: image It lists their colors as #0095A9, which is the function call color that they originally had, not the parameter color.

JacksonKearl commented 4 years ago

Ref #91038

JacksonKearl commented 4 years ago

See also #94211

alexdima commented 4 years ago

Thanks, that's it. Let's track in #94211