Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,12 @@ export interface TextDocumentClientCapabilities {
valueSet: CodeActionKind[];
};
};
/**
* Whether code action supports flagging actions for `auto fix`
*
* Since 3.15.0
*/
isPreferred?: boolean;
};

/**
Expand Down Expand Up @@ -2540,7 +2546,7 @@ export interface ApplyWorkspaceEditResponse {
* Indicates whether the edit was applied or not.
*/
applied: boolean;

/**
* An optional textual description for why the edit was not applied.
* This may be used may be used by the server for diagnostic
Expand Down Expand Up @@ -3791,6 +3797,15 @@ export interface CodeAction {
* executed and then the command.
*/
command?: Command;

/**
* Marks this as a preferred action. Preferred actions are used by the `auto fix` command and can be targeted
* by keybindings.
*
* A quick fix should be marked preferred if it properly addresses the underlying error.
* A refactoring should be marked preferred if it is the most reasonable choice of actions to take.
*/
isPreferred?: boolean;
}
```

Expand Down