-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathextension.ts
More file actions
74 lines (67 loc) · 1.94 KB
/
Copy pathextension.ts
File metadata and controls
74 lines (67 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import * as vscode from 'vscode';
import { clearVariablesState } from './utils';
import {
DecoratorService,
DemoApi,
DemoCreator,
DemoListeners,
DemoRunner,
DemoStatusBar,
Extension,
DemoFileProvider,
ImportService,
NotesService,
PdfExportService,
Slides,
SponsorService,
UriHandler,
TextTypingService,
TerminalService,
ResourceService,
ThemeBuilderService,
} from './services';
import { DemoPanel } from './panels/DemoPanel';
import { ResourcesPanel } from './panels/ResourcesPanel';
import { Preview } from './preview/Preview';
import { PresenterView } from './presenterView/PresenterView';
import { ConfigEditorProvider } from './providers/ConfigEditorProvider';
import { SettingsView } from './settingsView/SettingsView';
import { Config } from '@demotime/common';
import { InputService } from './services/InputService';
import { Overview } from './overview/Overview';
export async function activate(context: vscode.ExtensionContext) {
Extension.getInstance(context);
ResourceService.registerCommands();
// Clearing the variable state when the extension starts
clearVariablesState();
// Webviews
SettingsView.register();
PresenterView.register();
Preview.register();
Overview.register();
ConfigEditorProvider.register();
// Services
DecoratorService.register();
DemoPanel.register();
ResourcesPanel.register();
DemoRunner.registerCommands();
DemoCreator.registerCommands();
DemoListeners.register();
DemoStatusBar.register();
DemoFileProvider.register();
Slides.register();
NotesService.registerCommands();
TextTypingService.registerCommands();
DemoApi.register();
UriHandler.register();
PdfExportService.register();
ImportService.register();
TerminalService.register();
InputService.registerCommands();
SponsorService.init(context);
ThemeBuilderService.register();
console.log(`${Config.title} is active!`);
}
export function deactivate() {
TerminalService.dispose();
}