@pstdio/workbench 0.11.3 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -495,6 +495,17 @@ declare interface EnumOptionsSource {
495
495
  getSnapshot: () => EnumOption[];
496
496
  }
497
497
 
498
+ declare interface ExecuteWorkbenchExtensionCommandInput {
499
+ metadata?: Record<string, unknown>;
500
+ params?: Record<string, unknown>;
501
+ resource?: ResourceRef;
502
+ slot?: CommandExecuteRequest["slot"];
503
+ }
504
+
505
+ export declare const executeWorkbenchExtensionCommandResponse: (context: Pick<WorkbenchExtensionCommandContext, "executeCommand" | "projectId"> & {
506
+ workbench: Pick<WorkbenchModuleContext, "navigation" | "notifications">;
507
+ }, commandId: string, input?: ExecuteWorkbenchExtensionCommandInput) => Promise<unknown>;
508
+
498
509
  declare const extensionCommandPaletteResourceRecordSchema: z.ZodObject<{
499
510
  id: z.ZodString;
500
511
  extensionId: z.ZodString;
@@ -2077,6 +2088,8 @@ declare interface ResourceProvider {
2077
2088
  }
2078
2089
 
2079
2090
  declare interface ResourceRegistry {
2091
+ removed(resource: ResourceRef): void;
2092
+ onWillRemove(listener: (resource: ResourceRef) => readonly PlacementIdentity[]): Disposable_2;
2080
2093
  store: WorkbenchStore<ResourceRegistryStoreState>;
2081
2094
  registerKind(kind: ResourceKindContribution, metadata?: ContributionMetadata): Disposable_2;
2082
2095
  getKind(kind: string): RegisteredResourceKind | undefined;
@@ -2230,6 +2243,7 @@ export declare interface ToWorkbenchNavigationTargetInput {
2230
2243
  kind: "command";
2231
2244
  }>): NavigationTargetCommand;
2232
2245
  extensionId?: string;
2246
+ projectId?: string;
2233
2247
  }
2234
2248
 
2235
2249
  export declare const toWorkbenchNavigationTargetResult: (value: unknown, input?: ToWorkbenchNavigationTargetInput) => NavigationTarget | undefined;
@@ -2953,6 +2967,7 @@ declare interface WorkbenchPageLocationController {
2953
2967
  replay(location: PageLocation): WorkbenchPageNavigationResult;
2954
2968
  navigateToParent(): WorkbenchPageNavigationResult;
2955
2969
  closePlacement(identity: PlacementIdentity): WorkbenchPageNavigationResult;
2970
+ removeResource(resource: ResourceRef, retained: readonly PlacementIdentity[]): void;
2956
2971
  goBack(): void;
2957
2972
  goForward(): void;
2958
2973
  dispose(): void;