Skip to content

Commit

Permalink
feat: expose missing parts of Notification and Dialog services
Browse files Browse the repository at this point in the history
  • Loading branch information
nihonium committed Apr 17, 2023
1 parent ccaaf05 commit 67a4b0c
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion src/services.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import './polyfill'
import './vscode-services/extHost'
import Severity from 'vs/base/common/severity'
import { NotificationsFilter } from 'vs/platform/notification/common/notification'
import { IConfigurationChangeEvent } from 'vs/platform/configuration/common/configuration'
import { ITextModelContentProvider } from 'vs/editor/common/services/resolverService'
import { IColorTheme } from 'vs/platform/theme/common/themeService'
Expand All @@ -13,6 +12,7 @@ import { ILifecycleService, LifecyclePhase } from 'vs/workbench/services/lifecyc
import { IInstantiationService, ServicesAccessor } from 'vs/platform/instantiation/common/instantiation'
import { RunOnceScheduler, runWhenIdle } from 'vs/base/common/async'
import { Emitter } from 'vs/base/common/event'
import { IAction } from 'vs/base/common/actions'
import getLayoutServiceOverride from './service-override/layout'
// Hack so ContextKeyExprType is included in the bundle as it's used but rollup-plugin-dts is unable to detect it
// https://github.com/Swatinem/rollup-plugin-dts/issues/220
Expand Down Expand Up @@ -109,8 +109,59 @@ export { IStorageService } from 'vs/platform/storage/common/storage'
export { IAudioCueService } from 'vs/platform/audioCues/browser/audioCueService'
export { IDebugService } from 'vs/workbench/contrib/debug/common/debug'

// Export all Notification service parts
export {
NotificationsFilter,
NotificationMessage,
NotificationPriority,
INotificationProperties,
NeverShowAgainScope,
INeverShowAgainOptions,
INotification,
INotificationActions,
INotificationProgress,
INotificationProgressProperties,
INotificationHandle,
IPromptChoice,
IPromptChoiceWithMenu,
IPromptOptions,
IStatusMessageOptions,
NoOpNotification,
NoOpProgress
} from 'vs/platform/notification/common/notification'

// Export all Dialog service parts
export {
IDialogArgs,
DialogType,
IDialogResult,
IDialogHandler,
IConfirmDialogArgs,
IInputDialogArgs,
IPromptDialogArgs,
IBaseDialogOptions,
ICheckbox,
ICheckboxResult,
ICustomDialogOptions,
ICustomDialogMarkdown,
IConfirmation,
IConfirmationResult,
IInput,
IInputResult,
IInputElement,
IPrompt,
IPromptResult,
IPromptBaseButton,
IPromptButton,
IPromptCancelButton,
IPromptResultWithCancel,
IPromptWithCustomCancel,
IPromptWithDefaultCancel
} from 'vs/platform/dialogs/common/dialogs'
export { IMarkdownString, MarkdownStringTrustedOptions } from 'vs/base/common/htmlContent'

export {
IAction,
IConfigurationChangeEvent,
ITextModelContentProvider,
IColorTheme,
Expand Down

0 comments on commit 67a4b0c

Please sign in to comment.