You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add unused diagnostic subtype
Fixesmicrosoft#15710
Adds a new `DiagnosticTag` class that provide additional information about a diagnostic. Introduce `DiagnosticTag.Unnecessary` to mark when a diagnostic is for unused / unnecessary code
The design comes from Rosyln's diagnostic object and allows us to modify how a diagnostic is rendered without changing its serverity.
Hooks up JS and TS to use this new tag. This is controlled by the `javascript.showUnused.enabled` setting which is enabled by default
- Introduce a new diagnostic severity for unused.
However, using this approach, if a user sets `noUnusedLocals` in their `tsconfig.json`, the resulting diagnostic could only show the squiggly OR be grayed out. Using `customTags` allows us to support both graying out and showing the squiggly
- Custom JS/TS implementation using decorators
Not themable. We want a standard experience across languages.
* - Move to proposed
- Use numeric enum
exportconsteditorHintForeground=registerColor('editorHint.foreground',{dark: Color.fromHex('#eeeeee').transparent(0.7),light: '#6c6c6c',hc: null},nls.localize('hintForeground','Foreground color of hint squigglies in the editor.'));
50
50
exportconsteditorHintBorder=registerColor('editorHint.border',{dark: null,light: null,hc: Color.fromHex('#eeeeee').transparent(0.8)},nls.localize('hintBorder','Border color of hint squigglies in the editor.'));
51
51
52
+
exportconsteditorUnnecessaryForeground=registerColor('editorUnnecessary.foreground',{dark: Color.fromHex('#eeeeee').transparent(0.7),light: '#6c6c6c',hc: null},nls.localize('unnecessaryForeground','Foreground color of unnecessary code in the editor.'));
exportconstoverviewRulerRangeHighlight=registerColor('editorOverviewRuler.rangeHighlightForeground',{dark: rulerRangeDefault,light: rulerRangeDefault,hc: rulerRangeDefault},nls.localize('overviewRulerRangeHighlight','Overview ruler marker color for range highlights. The color must not be opaque to not hide underlying decorations.'),true);
54
56
exportconstoverviewRulerError=registerColor('editorOverviewRuler.errorForeground',{dark: newColor(newRGBA(255,18,18,0.7)),light: newColor(newRGBA(255,18,18,0.7)),hc: newColor(newRGBA(255,50,50,1))},nls.localize('overviewRuleError','Overview ruler marker color for errors.'));
0 commit comments