()
| 17 | private readonly pluginName: string; |
| 18 | |
| 19 | get [skeletonSymbol](): ISkeleton { |
| 20 | if (this.workspaceMode) { |
| 21 | return this[innerSkeletonSymbol]; |
| 22 | } |
| 23 | const workspace = globalContext.get('workspace'); |
| 24 | if (workspace.isActive) { |
| 25 | if (!workspace.window?.innerSkeleton) { |
| 26 | logger.error('skeleton api 调用时机出现问题,请检查'); |
| 27 | return this[innerSkeletonSymbol]; |
| 28 | } |
| 29 | return workspace.window.innerSkeleton; |
| 30 | } |
| 31 | |
| 32 | return this[innerSkeletonSymbol]; |
| 33 | } |
| 34 | |
| 35 | constructor( |
| 36 | skeleton: ISkeleton, |