File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
packages/vscode-tailwindcss Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 33## 0.11.x (Pre-Release)
44
55- Enable Sort Selection on a remote host (#878 )
6+ - Show color decorators in split editors (#888 )
67
78## 0.10.2
89
Original file line number Diff line number Diff line change @@ -613,9 +613,14 @@ export async function activate(context: ExtensionContext) {
613613 } )
614614 }
615615
616- Window . visibleTextEditors
617- . find ( ( editor ) => editor . document === document )
618- ?. setDecorations (
616+ let editors = Window . visibleTextEditors . filter (
617+ ( editor ) => editor . document === document
618+ )
619+
620+ // Make sure we show document colors for all visible editors
621+ // Not just the first one for a given document
622+ editors . forEach ( ( editor ) => {
623+ editor . setDecorations (
619624 colorDecorationType ,
620625 nonEditableColors . map ( ( { range, color } ) => ( {
621626 range,
@@ -628,6 +633,7 @@ export async function activate(context: ExtensionContext) {
628633 } ,
629634 } ) )
630635 )
636+ } )
631637
632638 return editableColors
633639 } ,
You can’t perform that action at this time.
0 commit comments