Skip to content

Commit e81dd23

Browse files
committed
Finalize CodeAction.isPreferred
Fixes microsoft#67144
1 parent c96f759 commit e81dd23

2 files changed

Lines changed: 9 additions & 12 deletions

File tree

src/vs/vscode.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,6 +2110,15 @@ declare module 'vscode' {
21102110
*/
21112111
kind?: CodeActionKind;
21122112

2113+
/**
2114+
* Marks this as a preferred action. Preferred actions are used by the `auto fix` command and can be targeted
2115+
* by keybindings.
2116+
*
2117+
* A quick fix should be marked preferred if it properly addresses the underlying error.
2118+
* A refactoring should be marked preferred if it is the most reasonable choice of actions to take.
2119+
*/
2120+
isPreferred?: boolean;
2121+
21132122
/**
21142123
* Creates a new code action.
21152124
*

src/vs/vscode.proposed.d.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,18 +1129,6 @@ declare module 'vscode' {
11291129
}
11301130
//#endregion
11311131

1132-
//#region CodeAction.isPreferred - mjbvz
1133-
export interface CodeAction {
1134-
/**
1135-
* Marks this as a preferred action. Preferred actions are used by the `auto fix` command.
1136-
*
1137-
* A quick fix should be marked preferred if it properly addresses the underlying error.
1138-
* A refactoring should be marked preferred if it is the most reasonable choice of actions to take.
1139-
*/
1140-
isPreferred?: boolean;
1141-
}
1142-
//#endregion
1143-
11441132
//#region Tasks
11451133
export interface TaskPresentationOptions {
11461134
/**

0 commit comments

Comments
 (0)