Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adopt code action widget in terminal quick fix #163451

Closed
wants to merge 2 commits into from
Closed

Conversation

meganrogge
Copy link
Contributor

@meganrogge meganrogge commented Oct 12, 2022

fix #162067
fix #162210

@meganrogge meganrogge marked this pull request as draft October 12, 2022 17:00
@meganrogge meganrogge requested a review from Tyriar October 12, 2022 17:00
@meganrogge meganrogge self-assigned this Oct 12, 2022
@meganrogge meganrogge added this to the October 2022 milestone Oct 12, 2022
Comment on lines +27 to +33
import { CodeActionWidget } from 'vs/editor/contrib/codeAction/browser/codeActionWidget';
import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
import { CodeActionKind, CodeActionTrigger, CodeActionTriggerSource } from 'vs/editor/contrib/codeAction/browser/types';
import { CodeActionTriggerType } from 'vs/editor/common/languages';
import { CodeActionItem } from 'vs/editor/contrib/codeAction/browser/codeAction';
import { CancellationToken } from 'vs/base/common/cancellation';
import { ProviderResult } from 'vs/workbench/services/search/common/searchExtTypes';
Copy link
Member

Choose a reason for hiding this comment

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

The bigger part of adopting this item will be making the code action widget more generic as we should not be depending on the editor or editor-specific concepts (eg. CodeAction) in this way. I would expect a new base CodeActionWidget.ts in vs/base/browser/ui/codeAction/codeActionWidget.ts which pulls all the common parts out and then vs/editor/contrib/codeAction/browser/codeActionWidget.ts would depend upon the base widget.

This is similar to how hoverWidget.ts in base only has dependencies in base and it's used in both workbench and editor.

cc @mjbvz

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep sounds good and wanted to just see how it looked in the terminal first in case there were any unique considerations we should take into account

@meganrogge meganrogge closed this Oct 18, 2022
@meganrogge
Copy link
Contributor Author

starting over

@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2022
@meganrogge meganrogge deleted the merogge/widget branch December 7, 2022 02:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double ctrl+. does not accept suggested quick fix Use the new quick fix widget for terminal quick fixes
2 participants