From cb8cc587f605475a781edd8232fca7e702efb866 Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Wed, 9 Apr 2025 21:13:25 -0700 Subject: [PATCH] + --- src/vs/workbench/contrib/void/browser/_dummyContrib.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/void/browser/_dummyContrib.ts b/src/vs/workbench/contrib/void/browser/_dummyContrib.ts index 42894ca2..7f88c445 100644 --- a/src/vs/workbench/contrib/void/browser/_dummyContrib.ts +++ b/src/vs/workbench/contrib/void/browser/_dummyContrib.ts @@ -15,6 +15,7 @@ import { KeybindingWeight } from '../../../../platform/keybinding/common/keybind import { IWorkbenchContribution, registerWorkbenchContribution2, WorkbenchPhase } from '../../../common/contributions.js'; +// to change this, just Cmd+Shift+F and replace DummyService with YourServiceName, and replace export interface IDummyService { readonly _serviceBrand: undefined; // services need this, just leave it undefined } @@ -23,7 +24,7 @@ export const IDummyService = createDecorator('DummyService'); - +// An example of an action (delete if you're not using an action): registerAction2(class extends Action2 { constructor() { super({ @@ -43,7 +44,7 @@ registerAction2(class extends Action2 { } }) -// on mount + class DummyService extends Disposable implements IWorkbenchContribution, IDummyService { static readonly ID = 'workbench.contrib.void.dummy' // workbenchContributions need this, services do not _serviceBrand: undefined;