1616
1717/* eslint-disable @typescript-eslint/no-explicit-any */
1818
19- import { createProxyIdentifier , ProxyIdentifier , RPCProtocol } from './rpc-protocol' ;
19+ import { createProxyIdentifier , RPCProtocol } from './rpc-protocol' ;
2020import * as theia from '@theia/plugin' ;
2121import { PluginLifecycle , PluginModel , PluginMetadata , PluginPackage , IconUrl , PluginJsonValidationContribution } from './plugin-protocol' ;
2222import { QueryParameters } from './env' ;
@@ -513,13 +513,18 @@ export interface StatusBarMessageRegistryMain {
513513 alignment : theia . StatusBarAlignment ,
514514 color : string | undefined ,
515515 backgroundColor : string | undefined ,
516- tooltip : string | theia . MarkdownString | undefined ,
516+ /** Value true indicates that the tooltip can be retrieved asynchronously */
517+ tooltip : string | theia . MarkdownString | true | undefined ,
517518 command : string | undefined ,
518519 accessibilityInformation : theia . AccessibilityInformation ,
519520 args : any [ ] | undefined ) : PromiseLike < void > ;
520521 $dispose ( id : string ) : void ;
521522}
522523
524+ export interface StatusBarMessageRegistryExt {
525+ $getMessage ( id : string , cancellation : CancellationToken ) : theia . ProviderResult < string | MarkdownString > ;
526+ }
527+
523528export interface QuickOpenExt {
524529 $onItemSelected ( handle : number ) : void ;
525530 $validateInput ( input : string ) : Promise < string | { content : string ; severity : Severity ; } | null | undefined > ;
@@ -2314,7 +2319,7 @@ export const PLUGIN_RPC_CONTEXT = {
23142319 QUICK_OPEN_MAIN : createProxyIdentifier < QuickOpenMain > ( 'QuickOpenMain' ) ,
23152320 DIALOGS_MAIN : createProxyIdentifier < DialogsMain > ( 'DialogsMain' ) ,
23162321 WORKSPACE_MAIN : createProxyIdentifier < WorkspaceMain > ( 'WorkspaceMain' ) ,
2317- MESSAGE_REGISTRY_MAIN : < ProxyIdentifier < MessageRegistryMain > > createProxyIdentifier < MessageRegistryMain > ( 'MessageRegistryMain' ) ,
2322+ MESSAGE_REGISTRY_MAIN : createProxyIdentifier < MessageRegistryMain > ( 'MessageRegistryMain' ) ,
23182323 TEXT_EDITORS_MAIN : createProxyIdentifier < TextEditorsMain > ( 'TextEditorsMain' ) ,
23192324 DOCUMENTS_MAIN : createProxyIdentifier < DocumentsMain > ( 'DocumentsMain' ) ,
23202325 NOTEBOOKS_MAIN : createProxyIdentifier < NotebooksMain > ( 'NotebooksMain' ) ,
@@ -2323,13 +2328,13 @@ export const PLUGIN_RPC_CONTEXT = {
23232328 NOTEBOOK_DOCUMENTS_AND_EDITORS_MAIN : createProxyIdentifier < NotebookDocumentsAndEditorsMain > ( 'NotebooksAndEditorsMain' ) ,
23242329 NOTEBOOK_RENDERERS_MAIN : createProxyIdentifier < NotebookRenderersMain > ( 'NotebookRenderersMain' ) ,
23252330 NOTEBOOK_KERNELS_MAIN : createProxyIdentifier < NotebookKernelsMain > ( 'NotebookKernelsMain' ) ,
2326- STATUS_BAR_MESSAGE_REGISTRY_MAIN : < ProxyIdentifier < StatusBarMessageRegistryMain > > createProxyIdentifier < StatusBarMessageRegistryMain > ( 'StatusBarMessageRegistryMain' ) ,
2331+ STATUS_BAR_MESSAGE_REGISTRY_MAIN : createProxyIdentifier < StatusBarMessageRegistryMain > ( 'StatusBarMessageRegistryMain' ) ,
23272332 ENV_MAIN : createProxyIdentifier < EnvMain > ( 'EnvMain' ) ,
23282333 NOTIFICATION_MAIN : createProxyIdentifier < NotificationMain > ( 'NotificationMain' ) ,
23292334 TERMINAL_MAIN : createProxyIdentifier < TerminalServiceMain > ( 'TerminalServiceMain' ) ,
23302335 TREE_VIEWS_MAIN : createProxyIdentifier < TreeViewsMain > ( 'TreeViewsMain' ) ,
23312336 PREFERENCE_REGISTRY_MAIN : createProxyIdentifier < PreferenceRegistryMain > ( 'PreferenceRegistryMain' ) ,
2332- OUTPUT_CHANNEL_REGISTRY_MAIN : < ProxyIdentifier < OutputChannelRegistryMain > > createProxyIdentifier < OutputChannelRegistryMain > ( 'OutputChannelRegistryMain' ) ,
2337+ OUTPUT_CHANNEL_REGISTRY_MAIN : createProxyIdentifier < OutputChannelRegistryMain > ( 'OutputChannelRegistryMain' ) ,
23332338 LANGUAGES_MAIN : createProxyIdentifier < LanguagesMain > ( 'LanguagesMain' ) ,
23342339 CONNECTION_MAIN : createProxyIdentifier < ConnectionMain > ( 'ConnectionMain' ) ,
23352340 WEBVIEWS_MAIN : createProxyIdentifier < WebviewsMain > ( 'WebviewsMain' ) ,
@@ -2390,6 +2395,7 @@ export const MAIN_RPC_CONTEXT = {
23902395 SECRETS_EXT : createProxyIdentifier < SecretsExt > ( 'SecretsExt' ) ,
23912396 DECORATIONS_EXT : createProxyIdentifier < DecorationsExt > ( 'DecorationsExt' ) ,
23922397 LABEL_SERVICE_EXT : createProxyIdentifier < LabelServiceExt > ( 'LabelServiceExt' ) ,
2398+ STATUS_BAR_MESSAGE_REGISTRY_EXT : createProxyIdentifier < StatusBarMessageRegistryExt > ( 'StatusBarMessageRegistryExt' ) ,
23932399 TIMELINE_EXT : createProxyIdentifier < TimelineExt > ( 'TimeLineExt' ) ,
23942400 THEMING_EXT : createProxyIdentifier < ThemingExt > ( 'ThemingExt' ) ,
23952401 COMMENTS_EXT : createProxyIdentifier < CommentsExt > ( 'CommentsExt' ) ,
0 commit comments