Skip to content

Commit 5d7dac3

Browse files
committed
Finalize CodeAction.disabled
Fixes microsoft#85160
1 parent 441e609 commit 5d7dac3

2 files changed

Lines changed: 14 additions & 20 deletions

File tree

src/vs/vscode.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,6 +2135,20 @@ declare module 'vscode' {
21352135
*/
21362136
isPreferred?: boolean;
21372137

2138+
/**
2139+
* Marks that the code action cannot currently be applied.
2140+
*
2141+
* Disabled code actions will be surfaced in the refactor UI but cannot be applied.
2142+
*/
2143+
disabled?: {
2144+
/**
2145+
* Human readable description of why the code action is currently disabled.
2146+
*
2147+
* This is displayed in the code actions UI.
2148+
*/
2149+
readonly reason: string;
2150+
};
2151+
21382152
/**
21392153
* Creates a new code action.
21402154
*

src/vs/vscode.proposed.d.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,26 +1358,6 @@ declare module 'vscode' {
13581358

13591359
//#endregion
13601360

1361-
//#region Surfacing reasons why a code action cannot be applied to users: https://github.com/microsoft/vscode/issues/85160
1362-
1363-
export interface CodeAction {
1364-
/**
1365-
* Marks that the code action cannot currently be applied.
1366-
*
1367-
* Disabled code actions will be surfaced in the refactor UI but cannot be applied.
1368-
*/
1369-
disabled?: {
1370-
/**
1371-
* Human readable description of why the code action is currently disabled.
1372-
*
1373-
* This is displayed in the UI.
1374-
*/
1375-
reason: string;
1376-
};
1377-
}
1378-
1379-
//#endregion
1380-
13811361
//#region Allow theme icons in hovers: https://github.com/microsoft/vscode/issues/84695
13821362

13831363
export interface MarkdownString {

0 commit comments

Comments
 (0)