@@ -14,7 +14,7 @@ import { LineTokens } from 'vs/editor/common/tokens/lineTokens';
14
14
import { Position } from 'vs/editor/common/core/position' ;
15
15
import { Range } from 'vs/editor/common/core/range' ;
16
16
import { createStringBuilder } from 'vs/editor/common/core/stringBuilder' ;
17
- import { IModelDeltaDecoration , PositionAffinity } from 'vs/editor/common/model' ;
17
+ import { IModelDeltaDecoration , InjectedTextCursorStops , PositionAffinity } from 'vs/editor/common/model' ;
18
18
import { ILanguageIdCodec } from 'vs/editor/common/languages' ;
19
19
import { ILanguageService } from 'vs/editor/common/languages/language' ;
20
20
import { ghostTextBackground , ghostTextBorder , ghostTextForeground } from 'vs/editor/common/core/editorColorRegistry' ;
@@ -262,7 +262,7 @@ class DecorationsWidget implements IDisposable {
262
262
range : Range . fromPositions ( new Position ( lineNumber , hiddenText . column ) , new Position ( lineNumber , hiddenText . column + hiddenText . length ) ) ,
263
263
options : {
264
264
inlineClassName : 'ghost-text-hidden' ,
265
- description : 'ghost-text-hidden'
265
+ description : 'ghost-text-hidden' ,
266
266
}
267
267
} ) ;
268
268
}
@@ -272,7 +272,7 @@ class DecorationsWidget implements IDisposable {
272
272
range : Range . fromPositions ( new Position ( lineNumber , p . column ) ) ,
273
273
options : {
274
274
description : 'ghost-text' ,
275
- after : { content : p . text , inlineClassName : p . preview ? 'ghost-text-decoration-preview' : 'ghost-text-decoration' } ,
275
+ after : { content : p . text , inlineClassName : p . preview ? 'ghost-text-decoration-preview' : 'ghost-text-decoration' , cursorStops : InjectedTextCursorStops . Left } ,
276
276
showIfCollapsed : true ,
277
277
}
278
278
} ) ;
0 commit comments