This commit is contained in:
Andrew Pareles 2025-04-09 21:13:25 -07:00
parent 77f931c923
commit cb8cc587f6

View file

@ -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<IDummyService>('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;