Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/editor/common/cursor/cursorContext.ts
3294 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { ITextModel } from '../model.js';
7
import { CursorConfiguration, ICursorSimpleModel } from '../cursorCommon.js';
8
import { ICoordinatesConverter } from '../coordinatesConverter.js';
9
10
export class CursorContext {
11
_cursorContextBrand: void = undefined;
12
13
public readonly model: ITextModel;
14
public readonly viewModel: ICursorSimpleModel;
15
public readonly coordinatesConverter: ICoordinatesConverter;
16
public readonly cursorConfig: CursorConfiguration;
17
18
constructor(model: ITextModel, viewModel: ICursorSimpleModel, coordinatesConverter: ICoordinatesConverter, cursorConfig: CursorConfiguration) {
19
this.model = model;
20
this.viewModel = viewModel;
21
this.coordinatesConverter = coordinatesConverter;
22
this.cursorConfig = cursorConfig;
23
}
24
}
25
26