mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-11 10:38:31 -05:00
Merge from vscode bd0efff9e3f36d6b3e1045cee9887003af8034d7
This commit is contained in:
@@ -514,8 +514,18 @@ class InspectEditorTokensWidget extends Disposable implements IContentWidget {
|
||||
const line = lastLine + lineDelta; // 0-based
|
||||
const character = lineDelta === 0 ? lastCharacter + charDelta : charDelta; // 0-based
|
||||
if (posLine === line && character <= posCharacter && posCharacter < character + len) {
|
||||
const type = semanticTokens.legend.tokenTypes[typeIdx];
|
||||
const modifiers = semanticTokens.legend.tokenModifiers.filter((_, k) => modSet & 1 << k);
|
||||
const type = semanticTokens.legend.tokenTypes[typeIdx] || 'not in legend (ignored)';
|
||||
const modifiers = [];
|
||||
let modifierSet = modSet;
|
||||
for (let modifierIndex = 0; modifierSet > 0 && modifierIndex < semanticTokens.legend.tokenModifiers.length; modifierIndex++) {
|
||||
if (modifierSet & 1) {
|
||||
modifiers.push(semanticTokens.legend.tokenModifiers[modifierIndex]);
|
||||
}
|
||||
modifierSet = modifierSet >> 1;
|
||||
}
|
||||
if (modifierSet > 0) {
|
||||
modifiers.push('not in legend (ignored)');
|
||||
}
|
||||
const range = new Range(line + 1, character + 1, line + 1, character + 1 + len);
|
||||
const definitions = {};
|
||||
const colorMap = this._themeService.getColorTheme().tokenColorMap;
|
||||
|
||||
Reference in New Issue
Block a user