@@ -154,7 +154,6 @@ const persisters = {
154
154
return res
155
155
} )
156
156
. catch ( err => {
157
- console . error ( '!!!!!!!' , err )
158
157
if ( err . statusCode === 'ENOPARSE' ) {
159
158
debug ( 'composition did not parse' , err )
160
159
const basename = path . basename ( filepath ) ,
@@ -169,36 +168,22 @@ const persisters = {
169
168
column = match [ 3 ]
170
169
debug ( 'got match' , problem , line , column )
171
170
172
- // see the 'hack it ourselves' just below
173
- const rando = `shell-${ new Date ( ) . getTime ( ) } `
174
-
175
171
editor . __currentDecorations = editor . deltaDecorations ( editor . __currentDecorations || [ ] , [
176
172
{ range : new monaco . Range ( line , 1 , line , 1 ) ,
177
173
options : { isWholeLine : true ,
178
- // glyphMarginClassName: 'editor__parse-error-gutter-marker editor__parse_error_decoration',
179
- // glyphMarginHoverMessage: problem
180
- linesDecorationsClassName : `editor__parse-error-gutter-marker editor__parse-error-decoration ${ rando } `
174
+ glyphMarginClassName : 'editor__parse-error-gutter-marker editor__parse_error_decoration' ,
175
+ glyphMarginHoverMessage : { value : problem } ,
176
+ // linesDecorationsClassName: `editor__parse-error-gutter-marker editor__parse-error-decoration`
181
177
}
182
178
} ,
183
179
{ range : new monaco . Range ( line , column , line , column + 1 ) ,
184
180
options : {
185
- beforeContentClassName : `editor__parse-error-before-marker editor__parse-error-decoration ${ rando } ` ,
181
+ beforeContentClassName : `editor__parse-error-before-marker editor__parse-error-decoration`
186
182
//inlineClassName: 'editor__parse-error-inline-marker',
187
- hoverMessage : problem
183
+ // hoverMessage: { value: problem }
188
184
}
189
185
} ,
190
186
] )
191
-
192
- // glyphMarginHoverMessage seems broken; hack it ourselves for now
193
- setTimeout ( ( ) => {
194
- const decos = document . querySelectorAll ( `.${ rando } ` )
195
- if ( decos ) {
196
- for ( let idx = 0 ; idx < decos . length ; idx ++ ) {
197
- const deco = decos [ idx ]
198
- deco . setAttribute ( 'title' , problem )
199
- }
200
- }
201
- } , 0 )
202
187
}
203
188
}
204
189
} )
@@ -438,7 +423,7 @@ const openEditor = wsk => {
438
423
minimap : {
439
424
enabled : false
440
425
} ,
441
- // glyphMargin: true, // needed for error indicators
426
+ glyphMargin : true , // needed for error indicators
442
427
autoIndent : true ,
443
428
codeLens : false ,
444
429
quickSuggestions : false ,
0 commit comments