Skip to content

Commit 41a3e40

Browse files
authored
Merge pull request microsoft#184322 from microsoft/aiday/issue181480
Showing the standalone color picker at the model state position, not view state
2 parents b19d6af + d823338 commit 41a3e40

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)