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 3
3
## 0.11.x (Pre-Release)
4
4
5
5
- Enable Sort Selection on a remote host (#878 )
6
+ - Show color decorators in split editors (#888 )
6
7
7
8
## 0.10.2
8
9
Original file line number Diff line number Diff line change @@ -613,9 +613,14 @@ export async function activate(context: ExtensionContext) {
613
613
} )
614
614
}
615
615
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 (
619
624
colorDecorationType ,
620
625
nonEditableColors . map ( ( { range, color } ) => ( {
621
626
range,
@@ -628,6 +633,7 @@ export async function activate(context: ExtensionContext) {
628
633
} ,
629
634
} ) )
630
635
)
636
+ } )
631
637
632
638
return editableColors
633
639
} ,
You can’t perform that action at this time.
0 commit comments