Skip to content

Commit d823338

Browse files
committed
changing from the view state to the model state position
1 parent bf9bbbb commit d823338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class StandaloneColorPickerWidget extends Disposable implements IContentW
109109
super();
110110
this._standaloneColorPickerVisible.set(true);
111111
this._standaloneColorPickerParticipant = _instantiationService.createInstance(StandaloneColorPickerParticipant, this._editor);
112-
this._position = this._editor._getViewModel()?.getPrimaryCursorState().viewState.position;
112+
this._position = this._editor._getViewModel()?.getPrimaryCursorState().modelState.position;
113113
const editorSelection = this._editor.getSelection();
114114
const selection = editorSelection ?
115115
{

0 commit comments

Comments
 (0)