diff --git a/src/vs/vscode.proposed.d.ts b/src/vs/vscode.proposed.d.ts index 2f085195928..75adfb95d9c 100644 --- a/src/vs/vscode.proposed.d.ts +++ b/src/vs/vscode.proposed.d.ts @@ -1653,17 +1653,17 @@ declare module 'vscode' { asWebviewUri(localResource: Uri): Uri; /** - * A controller can set priorities for specific notebook documents. This allows a controller to be the - * preferred controller for certain notebooks. + * A controller can set affinities for specific notebook documents. This allows a controller + * to be more important for some notebooks. * * @param notebook The notebook for which a priority is set. - * @param priority A controller priority + * @param affinity A controller affinity */ // todo@API maybe Affinity instead of Priority - updateNotebookPriority(notebook: NotebookDocument, priority: NotebookControllerPriority): void; + updateNotebookAffinity(notebook: NotebookDocument, affinity: NotebookControllerAffinity): void; } - export enum NotebookControllerPriority { + export enum NotebookControllerAffinity { Default = 1, Preferred = 2 } diff --git a/src/vs/workbench/api/common/extHost.api.impl.ts b/src/vs/workbench/api/common/extHost.api.impl.ts index 2ae8bd58dda..1bfd345a466 100644 --- a/src/vs/workbench/api/common/extHost.api.impl.ts +++ b/src/vs/workbench/api/common/extHost.api.impl.ts @@ -1253,7 +1253,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I NotebookCellOutput: extHostTypes.NotebookCellOutput, NotebookCellOutputItem: extHostTypes.NotebookCellOutputItem, NotebookCellStatusBarItem: extHostTypes.NotebookCellStatusBarItem, - NotebookControllerPriority: extHostTypes.NotebookControllerPriority, + NotebookControllerAffinity: extHostTypes.NotebookControllerAffinity, LinkedEditingRanges: extHostTypes.LinkedEditingRanges, TestItemStatus: extHostTypes.TestItemStatus, TestResultState: extHostTypes.TestResultState, diff --git a/src/vs/workbench/api/common/extHostNotebookKernels.ts b/src/vs/workbench/api/common/extHostNotebookKernels.ts index 65886849975..ca73b5b5147 100644 --- a/src/vs/workbench/api/common/extHostNotebookKernels.ts +++ b/src/vs/workbench/api/common/extHostNotebookKernels.ts @@ -173,7 +173,7 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape { return asWebviewUri(that._initData.environment, String(handle), uri); }, // --- priority - updateNotebookPriority(notebook, priority) { + updateNotebookAffinity(notebook, priority) { that._proxy.$updateNotebookPriority(handle, notebook.uri, priority); } }; diff --git a/src/vs/workbench/api/common/extHostTypes.ts b/src/vs/workbench/api/common/extHostTypes.ts index 5887eb4b128..b25ed3e01a8 100644 --- a/src/vs/workbench/api/common/extHostTypes.ts +++ b/src/vs/workbench/api/common/extHostTypes.ts @@ -3164,7 +3164,7 @@ export class NotebookCellStatusBarItem { } -export enum NotebookControllerPriority { +export enum NotebookControllerAffinity { Default = 1, Preferred = 2 }