1 | import { MenuContribution, MenuModelRegistry } from '../common/menu';
|
2 | import { KeybindingContribution, KeybindingRegistry } from './keybinding';
|
3 | import { FrontendApplication, FrontendApplicationContribution, OnWillStopAction } from './frontend-application';
|
4 | import { CommandContribution, CommandRegistry, Command } from '../common/command';
|
5 | import { SelectionService } from '../common/selection-service';
|
6 | import { MessageService } from '../common/message-service';
|
7 | import { OpenerService } from '../browser/opener-service';
|
8 | import { ApplicationShell } from './shell/application-shell';
|
9 | import { AboutDialog } from './about-dialog';
|
10 | import { ContextKey, ContextKeyService } from './context-key-service';
|
11 | import { ResourceContextKey } from './resource-context-key';
|
12 | import { StorageService } from './storage-service';
|
13 | import { IconThemeService } from './icon-theme-service';
|
14 | import { ColorContribution } from './color-application-contribution';
|
15 | import { ColorRegistry } from './color-registry';
|
16 | import { CoreConfiguration, CorePreferences } from './core-preferences';
|
17 | import { ThemeService } from './theming';
|
18 | import { PreferenceService, PreferenceChangeEvent } from './preferences';
|
19 | import { ClipboardService } from './clipboard-service';
|
20 | import { EncodingRegistry } from './encoding-registry';
|
21 | import { EnvVariablesServer } from '../common/env-variables';
|
22 | import { AuthenticationService } from './authentication-service';
|
23 | import { SaveOptions } from './saveable';
|
24 | import { QuickInputService } from './quick-input';
|
25 | import { AsyncLocalizationProvider } from '../common/i18n/localization';
|
26 | import { WindowService } from './window/window-service';
|
27 | import { Title, Widget } from './widgets';
|
28 | import { SaveResourceService } from './save-resource-service';
|
29 | import { UserWorkingDirectoryProvider } from './user-working-directory-provider';
|
30 | import { UntitledResourceResolver } from '../common';
|
31 | import { LanguageQuickPickService } from './i18n/language-quick-pick-service';
|
32 | export declare namespace CommonMenus {
|
33 | const FILE: string[];
|
34 | const FILE_NEW: string[];
|
35 | const FILE_OPEN: string[];
|
36 | const FILE_SAVE: string[];
|
37 | const FILE_AUTOSAVE: string[];
|
38 | const FILE_SETTINGS: string[];
|
39 | const FILE_SETTINGS_SUBMENU: string[];
|
40 | const FILE_SETTINGS_SUBMENU_OPEN: string[];
|
41 | const FILE_SETTINGS_SUBMENU_THEME: string[];
|
42 | const FILE_CLOSE: string[];
|
43 | const EDIT: string[];
|
44 | const EDIT_UNDO: string[];
|
45 | const EDIT_CLIPBOARD: string[];
|
46 | const EDIT_FIND: string[];
|
47 | const VIEW: string[];
|
48 | const VIEW_PRIMARY: string[];
|
49 | const VIEW_APPEARANCE: string[];
|
50 | const VIEW_APPEARANCE_SUBMENU: string[];
|
51 | const VIEW_APPEARANCE_SUBMENU_SCREEN: string[];
|
52 | const VIEW_APPEARANCE_SUBMENU_BAR: string[];
|
53 | const VIEW_EDITOR_SUBMENU: string[];
|
54 | const VIEW_EDITOR_SUBMENU_SPLIT: string[];
|
55 | const VIEW_EDITOR_SUBMENU_ORTHO: string[];
|
56 | const VIEW_VIEWS: string[];
|
57 | const VIEW_LAYOUT: string[];
|
58 | const VIEW_TOGGLE: string[];
|
59 | const SETTINGS_OPEN: string[];
|
60 | const SETTINGS__THEME: string[];
|
61 | const HELP: string[];
|
62 | }
|
63 | export declare namespace CommonCommands {
|
64 | const FILE_CATEGORY = "File";
|
65 | const VIEW_CATEGORY = "View";
|
66 | const PREFERENCES_CATEGORY = "Preferences";
|
67 | const FILE_CATEGORY_KEY: string;
|
68 | const VIEW_CATEGORY_KEY: string;
|
69 | const PREFERENCES_CATEGORY_KEY: string;
|
70 | const OPEN: Command;
|
71 | const CUT: Command;
|
72 | const COPY: Command;
|
73 | const PASTE: Command;
|
74 | const COPY_PATH: Command;
|
75 | const UNDO: Command;
|
76 | const REDO: Command;
|
77 | const SELECT_ALL: Command;
|
78 | const FIND: Command;
|
79 | const REPLACE: Command;
|
80 | const NEXT_TAB: Command;
|
81 | const PREVIOUS_TAB: Command;
|
82 | const NEXT_TAB_IN_GROUP: Command;
|
83 | const PREVIOUS_TAB_IN_GROUP: Command;
|
84 | const NEXT_TAB_GROUP: Command;
|
85 | const PREVIOUS_TAB_GROUP: Command;
|
86 | const CLOSE_TAB: Command;
|
87 | const CLOSE_OTHER_TABS: Command;
|
88 | const CLOSE_SAVED_TABS: Command;
|
89 | const CLOSE_RIGHT_TABS: Command;
|
90 | const CLOSE_ALL_TABS: Command;
|
91 | const CLOSE_MAIN_TAB: Command;
|
92 | const CLOSE_OTHER_MAIN_TABS: Command;
|
93 | const CLOSE_ALL_MAIN_TABS: Command;
|
94 | const COLLAPSE_PANEL: Command;
|
95 | const COLLAPSE_ALL_PANELS: Command;
|
96 | const TOGGLE_BOTTOM_PANEL: Command;
|
97 | const TOGGLE_STATUS_BAR: Command;
|
98 | const PIN_TAB: Command;
|
99 | const UNPIN_TAB: Command;
|
100 | const TOGGLE_MAXIMIZED: Command;
|
101 | const OPEN_VIEW: Command;
|
102 | const SHOW_MENU_BAR: Command;
|
103 | const NEW_UNTITLED_FILE: Command;
|
104 | const SAVE: Command;
|
105 | const SAVE_AS: Command;
|
106 | const SAVE_WITHOUT_FORMATTING: Command;
|
107 | const SAVE_ALL: Command;
|
108 | const AUTO_SAVE: Command;
|
109 | const ABOUT_COMMAND: Command;
|
110 | const OPEN_PREFERENCES: Command;
|
111 | const SELECT_COLOR_THEME: Command;
|
112 | const SELECT_ICON_THEME: Command;
|
113 | const CONFIGURE_DISPLAY_LANGUAGE: Command;
|
114 | const TOGGLE_BREADCRUMBS: Command;
|
115 | }
|
116 | export declare const supportCut: boolean;
|
117 | export declare const supportCopy: boolean;
|
118 | export declare const supportPaste: boolean;
|
119 | export declare const RECENT_COMMANDS_STORAGE_KEY = "commands";
|
120 | export declare class CommonFrontendContribution implements FrontendApplicationContribution, MenuContribution, CommandContribution, KeybindingContribution, ColorContribution {
|
121 | protected readonly shell: ApplicationShell;
|
122 | protected readonly selectionService: SelectionService;
|
123 | protected readonly messageService: MessageService;
|
124 | protected readonly openerService: OpenerService;
|
125 | protected readonly aboutDialog: AboutDialog;
|
126 | protected readonly localizationProvider: AsyncLocalizationProvider;
|
127 | protected readonly saveResourceService: SaveResourceService;
|
128 | protected commonDecorationsStyleSheet: CSSStyleSheet;
|
129 | constructor(shell: ApplicationShell, selectionService: SelectionService, messageService: MessageService, openerService: OpenerService, aboutDialog: AboutDialog, localizationProvider: AsyncLocalizationProvider, saveResourceService: SaveResourceService);
|
130 | protected readonly contextKeyService: ContextKeyService;
|
131 | protected readonly resourceContextKey: ResourceContextKey;
|
132 | protected readonly commandRegistry: CommandRegistry;
|
133 | protected readonly storageService: StorageService;
|
134 | protected readonly quickInputService: QuickInputService;
|
135 | protected readonly iconThemes: IconThemeService;
|
136 | protected readonly themeService: ThemeService;
|
137 | protected readonly preferences: CorePreferences;
|
138 | protected readonly preferenceService: PreferenceService;
|
139 | protected readonly clipboardService: ClipboardService;
|
140 | protected readonly encodingRegistry: EncodingRegistry;
|
141 | protected readonly environments: EnvVariablesServer;
|
142 | protected readonly authenticationService: AuthenticationService;
|
143 | protected readonly windowService: WindowService;
|
144 | protected readonly workingDirProvider: UserWorkingDirectoryProvider;
|
145 | protected readonly languageQuickPickService: LanguageQuickPickService;
|
146 | protected readonly untitledResourceResolver: UntitledResourceResolver;
|
147 | protected pinnedKey: ContextKey<boolean>;
|
148 | configure(app: FrontendApplication): Promise<void>;
|
149 | protected updateStyles(): void;
|
150 | protected updatePinnedKey(): void;
|
151 | protected handlePreferenceChange(e: PreferenceChangeEvent<CoreConfiguration>, app: FrontendApplication): void;
|
152 | protected setSashProperties(): void;
|
153 | onStart(): void;
|
154 | onStop(): void;
|
155 | protected initResourceContextKeys(): void;
|
156 | registerMenus(registry: MenuModelRegistry): void;
|
157 | registerCommands(commandRegistry: CommandRegistry): void;
|
158 | protected getOrdinalNumbers(): readonly string[];
|
159 | protected isElectron(): boolean;
|
160 | protected togglePinned(title?: Title<Widget>): void;
|
161 | registerKeybindings(registry: KeybindingRegistry): void;
|
162 | protected save(options?: SaveOptions): Promise<void>;
|
163 | protected openAbout(): Promise<void>;
|
164 | protected shouldPreventClose: boolean;
|
165 | /**
|
166 | * registers event listener which make sure that
|
167 | * window doesn't get closed if CMD/CTRL W is pressed.
|
168 | * Too many users have that in their muscle memory.
|
169 | * Chrome doesn't let us rebind or prevent default the keybinding, so this
|
170 | * at least doesn't close the window immediately.
|
171 | */
|
172 | protected registerCtrlWHandling(): void;
|
173 | onWillStop(): OnWillStopAction | undefined;
|
174 | protected configureDisplayLanguage(): Promise<void>;
|
175 | protected toggleBreadcrumbs(): void;
|
176 | protected isBreadcrumbsEnabled(): boolean;
|
177 | protected confirmRestart(): Promise<boolean>;
|
178 | protected selectIconTheme(): void;
|
179 | protected selectColorTheme(): void;
|
180 | registerColors(colors: ColorRegistry): void;
|
181 | }
|
182 | //# sourceMappingURL=common-frontend-contribution.d.ts.map |
\ | No newline at end of file |