(readonly resource: IResource, readonly workspace: IWorkspace, private config: IWindowCOnfig)
| 70 | } |
| 71 | |
| 72 | constructor(readonly resource: IResource, readonly workspace: IWorkspace, private config: IWindowCOnfig) { |
| 73 | makeObservable(this); |
| 74 | this.title = config.title; |
| 75 | this.icon = resource.icon; |
| 76 | this.sleep = config.sleep; |
| 77 | if (config.sleep) { |
| 78 | this.updateState(WINDOW_STATE.sleep); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | updateState(state: WINDOW_STATE): void { |
| 83 | switch (state) { |
nothing calls this directly
no test coverage detected