File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
src/vs/editor/browser/viewParts/rulers Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 6
6
.monaco-editor .view-ruler {
7
7
position : absolute;
8
8
top : 0 ;
9
- }
9
+ box-shadow : 1px 0 0 0 var (--vscode-editorRuler-ruler ) inset;
10
+ }
Original file line number Diff line number Diff line change 6
6
import 'vs/css!./rulers' ;
7
7
import { FastDomNode , createFastDomNode } from 'vs/base/browser/fastDomNode' ;
8
8
import { ViewPart } from 'vs/editor/browser/view/viewPart' ;
9
- import { editorRuler } from 'vs/editor/common/core/editorColorRegistry' ;
10
9
import { RenderingContext , RestrictedRenderingContext } from 'vs/editor/browser/view/renderingContext' ;
11
10
import { ViewContext } from 'vs/editor/common/viewModel/viewContext' ;
12
11
import * as viewEvents from 'vs/editor/common/viewEvents' ;
13
- import { registerThemingParticipant } from 'vs/platform/theme/common/themeService' ;
14
12
import { EditorOption , IRulerOption } from 'vs/editor/common/config/editorOptions' ;
15
13
16
14
export class Rulers extends ViewPart {
@@ -100,10 +98,3 @@ export class Rulers extends ViewPart {
100
98
}
101
99
}
102
100
}
103
-
104
- registerThemingParticipant ( ( theme , collector ) => {
105
- const rulerColor = theme . getColor ( editorRuler ) ;
106
- if ( rulerColor ) {
107
- collector . addRule ( `.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${ rulerColor } inset; }` ) ;
108
- }
109
- } ) ;
You can’t perform that action at this time.
0 commit comments