()
| 27 | ); |
| 28 | |
| 29 | public get customScriptPaths(): string[] { |
| 30 | return this._customScriptPaths.get().map(p => { |
| 31 | const tpl = new SimpleTemplate(p); |
| 32 | return tpl.render({ |
| 33 | workspaceFolder: () => { |
| 34 | const workspaceFolder = (workspace.workspaceFolders || |
| 35 | [])[0]; |
| 36 | if (!workspaceFolder) { |
| 37 | throw new Error( |
| 38 | `Cannot get workspace folder - '${p}' cannot be evaluated!` |
| 39 | ); |
| 40 | } |
| 41 | return workspaceFolder.uri.fsPath; |
| 42 | }, |
| 43 | }); |
| 44 | }); |
| 45 | } |
| 46 | |
| 47 | @observable |
| 48 | private _vsCodeTheme = window.activeColorTheme; |