diff options
author | rebornix <penn.lv@gmail.com> | 2022-04-06 20:39:47 +0300 |
---|---|---|
committer | rebornix <penn.lv@gmail.com> | 2022-04-14 21:20:53 +0300 |
commit | 3c9c0e36cd536805b8d376d1f1e09b6db0c53522 (patch) | |
tree | b7c4f4f9fee9afbd22c44c4ccb8dfc9ab2777a15 /src | |
parent | 53411d55c5b045d299b531929300c8315812932e (diff) |
Use SELECT_KERNEL_ID other than string literal
Diffstat (limited to 'src')
-rw-r--r-- | src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.ts b/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.ts index cb7ab0f8586..83b35ce916d 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.ts @@ -38,7 +38,7 @@ import { ILanguageFeaturesService } from 'vs/editor/common/services/languageFeat registerAction2(class extends Action2 { constructor() { super({ - id: '_notebook.selectKernel', + id: SELECT_KERNEL_ID, category: NOTEBOOK_ACTIONS_CATEGORY, title: { value: nls.localize('notebookActions.selectKernel', "Select Notebook Kernel"), original: 'Select Notebook Kernel' }, // precondition: NOTEBOOK_IS_ACTIVE_EDITOR, @@ -381,7 +381,7 @@ export class KernelStatus extends Disposable implements IWorkbenchContribution { tooltip: isSuggested ? nls.localize('tooltop', "{0} (suggestion)", tooltip) : tooltip, command: SELECT_KERNEL_ID, }, - '_notebook.selectKernel', + SELECT_KERNEL_ID, StatusbarAlignment.RIGHT, 10 )); @@ -399,7 +399,7 @@ export class KernelStatus extends Disposable implements IWorkbenchContribution { command: SELECT_KERNEL_ID, backgroundColor: { id: 'statusBarItem.prominentBackground' } }, - '_notebook.selectKernel', + SELECT_KERNEL_ID, StatusbarAlignment.RIGHT, 10 )); |