这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@colombod
Copy link
Member

add fix for resizing

abstract setPosition(position: { line: number, column: number }): void;
abstract updateOptions(options: any): void;
abstract focus(): void;
abstract layout(size?: { width: number, height: number }): void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this to be optional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should not be optional


private _options = {};
private _code: string;
private _size?: { width: number; height: number; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be optional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is only internal state of test object, can be udnefined


private _markers: editorAdapter.IMarkerData[];

layout(size?: { width: number; height: number; } | undefined): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not be

address inconsistency in api signature

again ..
@colombod colombod force-pushed the fix_editor_resize branch from 21e4941 to ceebb53 Compare April 19, 2024 21:52
@colombod colombod merged commit f9fc244 into dotnet:main Apr 19, 2024
@colombod colombod deleted the fix_editor_resize branch April 19, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants