@xano/xanoscript-monaco-editor 0.1.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.
Files changed (55) hide show
  1. package/README.md +181 -0
  2. package/dist/.vite/manifest.json +300 -0
  3. package/dist/assets/_.contribution-BThlLkzn.js +1 -0
  4. package/dist/assets/_commonjsHelpers-CqkleIqs.js +1 -0
  5. package/dist/assets/codicon-MLkmQ__h.ttf +0 -0
  6. package/dist/assets/dark_modern-0rclP-7t.json +1 -0
  7. package/dist/assets/dark_vs-BL-mUvcK.json +1 -0
  8. package/dist/assets/editor-BivTGeL1.js +1 -0
  9. package/dist/assets/editor.worker-BF3gnKDz.js +28 -0
  10. package/dist/assets/extensionHost.worker-bYZXB0kM.js +144 -0
  11. package/dist/assets/fake-DXkbmQ09.html +10 -0
  12. package/dist/assets/files.contribution._fileEditorFactory-vS4ZLYi1.js +4 -0
  13. package/dist/assets/hc_black-BX9MT4w9.json +1 -0
  14. package/dist/assets/hc_light-Bzw0ew6e.json +1 -0
  15. package/dist/assets/iconv-lite-umd-DQaTktu2.js +11 -0
  16. package/dist/assets/iconv-lite-umd-DYWd8cEa.js +11 -0
  17. package/dist/assets/index-51WpeTZl.js +11 -0
  18. package/dist/assets/index-B0wc3Rza.css +1 -0
  19. package/dist/assets/index-B132pG6E.js +11 -0
  20. package/dist/assets/index-BGwiFEyd.js +1 -0
  21. package/dist/assets/index-BPOe4Pu5.css +1 -0
  22. package/dist/assets/index-BwfWF2CI.js +1433 -0
  23. package/dist/assets/index-C25FTAfE.js +15 -0
  24. package/dist/assets/index-C3pnKX8a.js +1 -0
  25. package/dist/assets/index-CEhqlLL9.css +1 -0
  26. package/dist/assets/index-Cg3XqiaZ.html +1284 -0
  27. package/dist/assets/index-CrbRjSB_.js +1 -0
  28. package/dist/assets/index-D1zNXs16.css +1 -0
  29. package/dist/assets/index-DgK2LcnW.js +2 -0
  30. package/dist/assets/index-VRHnXpb2.js +18 -0
  31. package/dist/assets/index-no-csp-DMfG5HRS.html +1251 -0
  32. package/dist/assets/index-yPQeQvu7.js +1 -0
  33. package/dist/assets/layout.contribution.darwin-gdaUfoJf.js +1 -0
  34. package/dist/assets/layout.contribution.linux-xMjRz7iy.js +1 -0
  35. package/dist/assets/layout.contribution.win-DZRWibbm.js +1 -0
  36. package/dist/assets/light_modern-Bbk8M7yq.json +1 -0
  37. package/dist/assets/light_vs-DwwM7VRG.json +1 -0
  38. package/dist/assets/main-D6ceXGB_.js +4 -0
  39. package/dist/assets/main-DNugpDp4.js +4 -0
  40. package/dist/assets/main-FP17jmvp.js +1 -0
  41. package/dist/assets/main-b5eBH2vx.js +1 -0
  42. package/dist/assets/onig-Du5pRr7Y.wasm +0 -0
  43. package/dist/assets/service-worker-Ce0epi43.js +371 -0
  44. package/dist/assets/tokenClassificationRegistry-DcBtqg2t.js +2 -0
  45. package/dist/assets/views-C4cPu3oQ.css +1 -0
  46. package/dist/assets/views-hUfpm9tT.js +55 -0
  47. package/dist/assets/webWorkerExtensionHostIframe-636UTAtK.html +156 -0
  48. package/dist/assets/workbenchThemeService.service-qBFVnuYD.js +1 -0
  49. package/dist/assets/worker-BIMDXoFp.js +8 -0
  50. package/dist/index.html +14 -0
  51. package/dist/logic-assistant-script.js +21798 -0
  52. package/dist/logic-assistant-script.js.map +7 -0
  53. package/dist/worker.js +32433 -0
  54. package/dist/worker.js.map +7 -0
  55. package/package.json +46 -0
package/README.md ADDED
@@ -0,0 +1,181 @@
1
+ # XanoScript Monaco Editor
2
+
3
+ A Monaco Editor wrapper that provides XanoScript language support with syntax highlighting, autocompletion, and language server integration via web worker for use in cloud-frontend.
4
+
5
+ Maintainers are:
6
+
7
+ - [Brice Leroy](mailto:brice.l@xano.com) - [on Slack](https://xano.slack.com/archives/D06T7HZ2DTK)
8
+ - [Justin Albrecht](mailto:justin@xano.com) - [on Slack](https://xano.slack.com/team/U04138X9S9G)
9
+
10
+ ## Prerequisites
11
+
12
+ - Node.js (version specified in `.nvmrc` - if using nvm run `nvm use` to apply correct node version)
13
+ - Git
14
+
15
+ ## Project Structure
16
+
17
+ This project contains a language-server submodule that provides the core XanoScript language functionality:
18
+
19
+ ```
20
+ xanoscript-monaco-editor/
21
+ ├── language-server/ # Git submodule containing the language server (shared with xs-language-server)
22
+ ├── src/ # Main TypeScript source code
23
+ ├── tests/ # Test files
24
+ ├── public/ # Web worker ready language-server script (compiled from language-server submodule)
25
+ └── dist/ # Build output
26
+ ```
27
+
28
+ `src/XanoScriptEditor.ts` contains the class XanoscriptMonacoEditor shared by main.ts and the test files. This is where the editor and messaging (communication between iframe and editor) logic live.
29
+ `src/main.ts` instantiates XanoscriptMonacoEditor with dependency injection so the editor can be used in the browser. The editor initializes (initializeEditor()) after recieving a theme value from the iframe.
30
+ `test/XanoscriptMonacoEditor.spec.ts` instantiates XanoscriptMonacoEditor with mock dependancies to avoid compilation issues from node packages.
31
+ `esbuild.js` contains build function to compile language server into web-worker to be used by monaco-editor-wrapper (output to `public/worker.js`)
32
+
33
+ ## Using the Language Server Submodule
34
+
35
+ The language server is managed as a Git submodule.
36
+
37
+ ### Update to the latest commit on the main branch
38
+
39
+ ```bash
40
+ # Navigate to the language-server directory
41
+ cd language-server
42
+
43
+ # Pull the latest changes from the remote repository
44
+ git pull origin main
45
+
46
+ # Return to the project root
47
+ cd ..
48
+ ```
49
+
50
+ ## Building the Project
51
+
52
+ ### Step 1: Compile Language Server Worker (Required First)
53
+
54
+ **Before any build or development, you must compile the language server worker:**
55
+
56
+ ```bash
57
+ npm run compile
58
+ ```
59
+
60
+ This command:
61
+
62
+ 1. Runs TypeScript type checking (`npm run check-types`)
63
+ 2. Compiles the language server worker using esbuild (`node esbuild.js`)
64
+ 3. Outputs the worker to `public/worker.js`
65
+
66
+ #### How the Web Worker Compilation Works
67
+
68
+ The `npm run compile` command transforms the Node.js-based language server into a browser-compatible web worker:
69
+
70
+ **Input**: `language-server/language-server-worker.js`
71
+
72
+ - Contains the language server implementation with VSCode Language Server Protocol (LSP) support
73
+ - Includes modules for syntax highlighting, autocompletion, hover tooltips, and semantic checking
74
+ - Uses browser-specific VSCode LSP adapters (`BrowserMessageReader`, `BrowserMessageWriter`)
75
+
76
+ **Output**: `public/worker.js`
77
+
78
+ - A self-contained web worker that can run in the browser
79
+ - Includes the complete language server functionality
80
+ - Handles communication with the Monaco Editor via the Language Server Protocol
81
+ - Provides real-time syntax highlighting, autocompletion, and error checking for XanoScript code
82
+
83
+ ### Step 2: Development Build
84
+
85
+ For development with hot reloading (after compiling the worker):
86
+
87
+ ```bash
88
+ npm run dev
89
+ ```
90
+
91
+ ### Step 3: Production Build
92
+
93
+ To create a production build (after compiling the worker):
94
+
95
+ ```bash
96
+ npm run build
97
+ ```
98
+
99
+ This command:
100
+
101
+ 1. Compiles TypeScript (`tsc`)
102
+ 2. Bundles the application with Vite (`npx vite build`)
103
+ 3. Outputs the build to the `dist/` directory
104
+
105
+ ### Development with Language Server
106
+
107
+ To start development with the compiled language server (combines compile + dev):
108
+
109
+ ```bash
110
+ npm run start-dev
111
+ ```
112
+
113
+ This command:
114
+
115
+ 1. Compiles the language server worker
116
+ 2. Starts the development server
117
+
118
+ ## Running Tests
119
+
120
+ ### Run All Tests
121
+
122
+ ```bash
123
+ npm test
124
+ ```
125
+
126
+ This runs the main test suite using Vitest:
127
+
128
+ - Tests the `XanoscriptMonacoEditor` class
129
+ - Uses jsdom environment for browser API simulation
130
+ - Includes comprehensive mocking of Monaco Editor dependencies
131
+
132
+ ### Test Structure
133
+
134
+ The main test file is located at:
135
+
136
+ ```
137
+ tests/XanoscriptMonacoEditor.spec.ts
138
+ ```
139
+
140
+ ## Development Workflow
141
+
142
+ ### Typical Development Process
143
+
144
+ 1. **Update language server** (if needed):
145
+
146
+ ```bash
147
+ cd language-server
148
+ git pull origin main
149
+ cd ..
150
+ ```
151
+
152
+ 2. **Compile the language server worker** (required first step):
153
+
154
+ ```bash
155
+ npm run compile
156
+ ```
157
+
158
+ 3. **Start development server**:
159
+
160
+ ```bash
161
+ npm run start-dev
162
+ ```
163
+
164
+ 4. **Run tests**:
165
+
166
+ ```bash
167
+ npm test
168
+ ```
169
+
170
+ 5. **Create production build**:
171
+ ```bash
172
+ npm run build
173
+ ```
174
+
175
+ ## Contributing
176
+
177
+ When contributing to this project:
178
+
179
+ 1. Always update the language server submodule so build is up to date
180
+ 2. Editor updates in `src/XanoScriptEditor.ts` only as this is shared by main.ts and the test file
181
+ 3. Ensure the build completes successfully
@@ -0,0 +1,300 @@
1
+ {
2
+ "__.contribution-BThlLkzn.js": {
3
+ "file": "assets/_.contribution-BThlLkzn.js",
4
+ "name": "_.contribution"
5
+ },
6
+ "_editor-BivTGeL1.js": {
7
+ "file": "assets/editor-BivTGeL1.js",
8
+ "name": "editor",
9
+ "imports": [
10
+ "index.html",
11
+ "_files.contribution._fileEditorFactory-vS4ZLYi1.js"
12
+ ]
13
+ },
14
+ "_files.contribution._fileEditorFactory-vS4ZLYi1.js": {
15
+ "file": "assets/files.contribution._fileEditorFactory-vS4ZLYi1.js",
16
+ "name": "files.contribution._fileEditorFactory",
17
+ "imports": [
18
+ "index.html"
19
+ ]
20
+ },
21
+ "_iconv-lite-umd-DQaTktu2.js": {
22
+ "file": "assets/iconv-lite-umd-DQaTktu2.js",
23
+ "name": "iconv-lite-umd",
24
+ "isDynamicEntry": true,
25
+ "imports": [
26
+ "index.html"
27
+ ]
28
+ },
29
+ "_index-51WpeTZl.js": {
30
+ "file": "assets/index-51WpeTZl.js",
31
+ "name": "index",
32
+ "isDynamicEntry": true,
33
+ "imports": [
34
+ "index.html"
35
+ ]
36
+ },
37
+ "_main-DNugpDp4.js": {
38
+ "file": "assets/main-DNugpDp4.js",
39
+ "name": "main",
40
+ "isDynamicEntry": true,
41
+ "imports": [
42
+ "index.html"
43
+ ]
44
+ },
45
+ "_main-FP17jmvp.js": {
46
+ "file": "assets/main-FP17jmvp.js",
47
+ "name": "main",
48
+ "isDynamicEntry": true,
49
+ "imports": [
50
+ "index.html"
51
+ ]
52
+ },
53
+ "_tokenClassificationRegistry-DcBtqg2t.js": {
54
+ "file": "assets/tokenClassificationRegistry-DcBtqg2t.js",
55
+ "name": "tokenClassificationRegistry",
56
+ "imports": [
57
+ "index.html"
58
+ ]
59
+ },
60
+ "_views-C4cPu3oQ.css": {
61
+ "file": "assets/views-C4cPu3oQ.css",
62
+ "src": "_views-C4cPu3oQ.css"
63
+ },
64
+ "_views-hUfpm9tT.js": {
65
+ "file": "assets/views-hUfpm9tT.js",
66
+ "name": "views",
67
+ "imports": [
68
+ "index.html",
69
+ "_files.contribution._fileEditorFactory-vS4ZLYi1.js",
70
+ "_workbenchThemeService.service-qBFVnuYD.js"
71
+ ],
72
+ "dynamicImports": [
73
+ "node_modules/@codingame/monaco-vscode-keybindings-service-override/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin.js",
74
+ "node_modules/@codingame/monaco-vscode-keybindings-service-override/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux.js",
75
+ "node_modules/@codingame/monaco-vscode-keybindings-service-override/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js"
76
+ ],
77
+ "css": [
78
+ "assets/views-C4cPu3oQ.css"
79
+ ],
80
+ "assets": [
81
+ "assets/service-worker-Ce0epi43.js",
82
+ "assets/index-Cg3XqiaZ.html",
83
+ "assets/index-no-csp-DMfG5HRS.html",
84
+ "assets/fake-DXkbmQ09.html"
85
+ ]
86
+ },
87
+ "_workbenchThemeService.service-qBFVnuYD.js": {
88
+ "file": "assets/workbenchThemeService.service-qBFVnuYD.js",
89
+ "name": "workbenchThemeService.service",
90
+ "imports": [
91
+ "index.html"
92
+ ]
93
+ },
94
+ "index.html": {
95
+ "file": "assets/index-BwfWF2CI.js",
96
+ "name": "index",
97
+ "src": "index.html",
98
+ "isEntry": true,
99
+ "dynamicImports": [
100
+ "_iconv-lite-umd-DQaTktu2.js",
101
+ "_iconv-lite-umd-DQaTktu2.js",
102
+ "_iconv-lite-umd-DQaTktu2.js",
103
+ "_index-51WpeTZl.js",
104
+ "node_modules/@codingame/monaco-vscode-textmate-service-override/index.js",
105
+ "node_modules/@codingame/monaco-vscode-theme-service-override/index.js",
106
+ "node_modules/@codingame/monaco-vscode-monarch-service-override/index.js",
107
+ "node_modules/@codingame/monaco-vscode-views-service-override/index.js",
108
+ "node_modules/@codingame/monaco-vscode-workbench-service-override/index.js",
109
+ "node_modules/@codingame/monaco-vscode-editor-service-override/index.js",
110
+ "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/index.js"
111
+ ],
112
+ "css": [
113
+ "assets/index-B0wc3Rza.css"
114
+ ],
115
+ "assets": [
116
+ "assets/webWorkerExtensionHostIframe-636UTAtK.html",
117
+ "assets/codicon-MLkmQ__h.ttf"
118
+ ]
119
+ },
120
+ "node_modules/@codingame/monaco-vscode-api/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf": {
121
+ "file": "assets/codicon-MLkmQ__h.ttf",
122
+ "src": "node_modules/@codingame/monaco-vscode-api/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf"
123
+ },
124
+ "node_modules/@codingame/monaco-vscode-editor-service-override/index.js": {
125
+ "file": "assets/index-yPQeQvu7.js",
126
+ "name": "index",
127
+ "src": "node_modules/@codingame/monaco-vscode-editor-service-override/index.js",
128
+ "isDynamicEntry": true,
129
+ "imports": [
130
+ "index.html",
131
+ "_files.contribution._fileEditorFactory-vS4ZLYi1.js",
132
+ "_editor-BivTGeL1.js"
133
+ ]
134
+ },
135
+ "node_modules/@codingame/monaco-vscode-extensions-service-override/vscode/src/vs/workbench/services/extensions/worker/webWorkerExtensionHostIframe.html": {
136
+ "file": "assets/webWorkerExtensionHostIframe-636UTAtK.html",
137
+ "src": "node_modules/@codingame/monaco-vscode-extensions-service-override/vscode/src/vs/workbench/services/extensions/worker/webWorkerExtensionHostIframe.html"
138
+ },
139
+ "node_modules/@codingame/monaco-vscode-keybindings-service-override/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin.js": {
140
+ "file": "assets/layout.contribution.darwin-gdaUfoJf.js",
141
+ "name": "layout.contribution.darwin",
142
+ "src": "node_modules/@codingame/monaco-vscode-keybindings-service-override/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin.js",
143
+ "isDynamicEntry": true,
144
+ "imports": [
145
+ "__.contribution-BThlLkzn.js"
146
+ ]
147
+ },
148
+ "node_modules/@codingame/monaco-vscode-keybindings-service-override/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux.js": {
149
+ "file": "assets/layout.contribution.linux-xMjRz7iy.js",
150
+ "name": "layout.contribution.linux",
151
+ "src": "node_modules/@codingame/monaco-vscode-keybindings-service-override/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux.js",
152
+ "isDynamicEntry": true,
153
+ "imports": [
154
+ "__.contribution-BThlLkzn.js"
155
+ ]
156
+ },
157
+ "node_modules/@codingame/monaco-vscode-keybindings-service-override/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js": {
158
+ "file": "assets/layout.contribution.win-DZRWibbm.js",
159
+ "name": "layout.contribution.win",
160
+ "src": "node_modules/@codingame/monaco-vscode-keybindings-service-override/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js",
161
+ "isDynamicEntry": true,
162
+ "imports": [
163
+ "__.contribution-BThlLkzn.js"
164
+ ]
165
+ },
166
+ "node_modules/@codingame/monaco-vscode-monarch-service-override/index.js": {
167
+ "file": "assets/index-BGwiFEyd.js",
168
+ "name": "index",
169
+ "src": "node_modules/@codingame/monaco-vscode-monarch-service-override/index.js",
170
+ "isDynamicEntry": true,
171
+ "imports": [
172
+ "index.html"
173
+ ],
174
+ "css": [
175
+ "assets/index-CEhqlLL9.css"
176
+ ]
177
+ },
178
+ "node_modules/@codingame/monaco-vscode-textmate-service-override/index.js": {
179
+ "file": "assets/index-DgK2LcnW.js",
180
+ "name": "index",
181
+ "src": "node_modules/@codingame/monaco-vscode-textmate-service-override/index.js",
182
+ "isDynamicEntry": true,
183
+ "imports": [
184
+ "index.html",
185
+ "_workbenchThemeService.service-qBFVnuYD.js",
186
+ "_tokenClassificationRegistry-DcBtqg2t.js"
187
+ ],
188
+ "dynamicImports": [
189
+ "_main-DNugpDp4.js",
190
+ "_main-DNugpDp4.js",
191
+ "_main-FP17jmvp.js"
192
+ ],
193
+ "css": [
194
+ "assets/index-BPOe4Pu5.css"
195
+ ],
196
+ "assets": [
197
+ "assets/onig-Du5pRr7Y.wasm"
198
+ ]
199
+ },
200
+ "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/index.js": {
201
+ "file": "assets/index-CrbRjSB_.js",
202
+ "name": "index",
203
+ "src": "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/index.js",
204
+ "isDynamicEntry": true,
205
+ "imports": [
206
+ "index.html"
207
+ ],
208
+ "assets": [
209
+ "assets/dark_modern-0rclP-7t.json",
210
+ "assets/dark_vs-BL-mUvcK.json",
211
+ "assets/hc_black-BX9MT4w9.json",
212
+ "assets/hc_light-Bzw0ew6e.json",
213
+ "assets/light_modern-Bbk8M7yq.json",
214
+ "assets/light_vs-DwwM7VRG.json"
215
+ ]
216
+ },
217
+ "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/resources/dark_modern.json": {
218
+ "file": "assets/dark_modern-0rclP-7t.json",
219
+ "src": "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/resources/dark_modern.json"
220
+ },
221
+ "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/resources/dark_vs.json": {
222
+ "file": "assets/dark_vs-BL-mUvcK.json",
223
+ "src": "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/resources/dark_vs.json"
224
+ },
225
+ "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/resources/hc_black.json": {
226
+ "file": "assets/hc_black-BX9MT4w9.json",
227
+ "src": "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/resources/hc_black.json"
228
+ },
229
+ "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/resources/hc_light.json": {
230
+ "file": "assets/hc_light-Bzw0ew6e.json",
231
+ "src": "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/resources/hc_light.json"
232
+ },
233
+ "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/resources/light_modern.json": {
234
+ "file": "assets/light_modern-Bbk8M7yq.json",
235
+ "src": "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/resources/light_modern.json"
236
+ },
237
+ "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/resources/light_vs.json": {
238
+ "file": "assets/light_vs-DwwM7VRG.json",
239
+ "src": "node_modules/@codingame/monaco-vscode-theme-defaults-default-extension/resources/light_vs.json"
240
+ },
241
+ "node_modules/@codingame/monaco-vscode-theme-service-override/index.js": {
242
+ "file": "assets/index-C25FTAfE.js",
243
+ "name": "index",
244
+ "src": "node_modules/@codingame/monaco-vscode-theme-service-override/index.js",
245
+ "isDynamicEntry": true,
246
+ "imports": [
247
+ "index.html",
248
+ "_tokenClassificationRegistry-DcBtqg2t.js",
249
+ "_workbenchThemeService.service-qBFVnuYD.js"
250
+ ]
251
+ },
252
+ "node_modules/@codingame/monaco-vscode-view-common-service-override/service-override/vs/workbench/contrib/webview/browser/pre/fake.html": {
253
+ "file": "assets/fake-DXkbmQ09.html",
254
+ "src": "node_modules/@codingame/monaco-vscode-view-common-service-override/service-override/vs/workbench/contrib/webview/browser/pre/fake.html"
255
+ },
256
+ "node_modules/@codingame/monaco-vscode-view-common-service-override/service-override/vs/workbench/contrib/webview/browser/pre/index-no-csp.html": {
257
+ "file": "assets/index-no-csp-DMfG5HRS.html",
258
+ "src": "node_modules/@codingame/monaco-vscode-view-common-service-override/service-override/vs/workbench/contrib/webview/browser/pre/index-no-csp.html"
259
+ },
260
+ "node_modules/@codingame/monaco-vscode-view-common-service-override/service-override/vs/workbench/contrib/webview/browser/pre/index.html": {
261
+ "file": "assets/index-Cg3XqiaZ.html",
262
+ "src": "node_modules/@codingame/monaco-vscode-view-common-service-override/service-override/vs/workbench/contrib/webview/browser/pre/index.html"
263
+ },
264
+ "node_modules/@codingame/monaco-vscode-view-common-service-override/service-override/vs/workbench/contrib/webview/browser/pre/service-worker.js": {
265
+ "file": "assets/service-worker-Ce0epi43.js",
266
+ "src": "node_modules/@codingame/monaco-vscode-view-common-service-override/service-override/vs/workbench/contrib/webview/browser/pre/service-worker.js"
267
+ },
268
+ "node_modules/@codingame/monaco-vscode-views-service-override/index.js": {
269
+ "file": "assets/index-C3pnKX8a.js",
270
+ "name": "index",
271
+ "src": "node_modules/@codingame/monaco-vscode-views-service-override/index.js",
272
+ "isDynamicEntry": true,
273
+ "imports": [
274
+ "index.html",
275
+ "_views-hUfpm9tT.js",
276
+ "_editor-BivTGeL1.js",
277
+ "_files.contribution._fileEditorFactory-vS4ZLYi1.js",
278
+ "_workbenchThemeService.service-qBFVnuYD.js"
279
+ ]
280
+ },
281
+ "node_modules/@codingame/monaco-vscode-workbench-service-override/index.js": {
282
+ "file": "assets/index-VRHnXpb2.js",
283
+ "name": "index",
284
+ "src": "node_modules/@codingame/monaco-vscode-workbench-service-override/index.js",
285
+ "isDynamicEntry": true,
286
+ "imports": [
287
+ "index.html",
288
+ "_views-hUfpm9tT.js",
289
+ "_files.contribution._fileEditorFactory-vS4ZLYi1.js",
290
+ "_workbenchThemeService.service-qBFVnuYD.js"
291
+ ],
292
+ "css": [
293
+ "assets/index-D1zNXs16.css"
294
+ ]
295
+ },
296
+ "node_modules/vscode-oniguruma/release/onig.wasm": {
297
+ "file": "assets/onig-Du5pRr7Y.wasm",
298
+ "src": "node_modules/vscode-oniguruma/release/onig.wasm"
299
+ }
300
+ }
@@ -0,0 +1 @@
1
+ const s=class s{get layoutInfos(){return this._layoutInfos}constructor(){this._layoutInfos=[]}registerKeyboardLayout(a){this._layoutInfos.push(a)}};s.INSTANCE=new s;let t=s;export{t as K};
@@ -0,0 +1 @@
1
+ function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}export{e as g};
Binary file
@@ -0,0 +1 @@
1
+ {"$schema":"vscode://schemas/color-theme","name":"Default Dark Modern","include":"./dark_plus.json","colors":{"activityBar.activeBorder":"#0078D4","activityBar.background":"#181818","activityBar.border":"#2B2B2B","activityBar.foreground":"#D7D7D7","activityBar.inactiveForeground":"#868686","activityBarBadge.background":"#0078D4","activityBarBadge.foreground":"#FFFFFF","badge.background":"#616161","badge.foreground":"#F8F8F8","button.background":"#0078D4","button.border":"#FFFFFF12","button.foreground":"#FFFFFF","button.hoverBackground":"#026EC1","button.secondaryBackground":"#313131","button.secondaryForeground":"#CCCCCC","button.secondaryHoverBackground":"#3C3C3C","chat.slashCommandBackground":"#26477866","chat.slashCommandForeground":"#85B6FF","chat.editedFileForeground":"#E2C08D","checkbox.background":"#313131","checkbox.border":"#3C3C3C","debugToolBar.background":"#181818","descriptionForeground":"#9D9D9D","dropdown.background":"#313131","dropdown.border":"#3C3C3C","dropdown.foreground":"#CCCCCC","dropdown.listBackground":"#1F1F1F","editor.background":"#1F1F1F","editor.findMatchBackground":"#9E6A03","editor.foreground":"#CCCCCC","editorGroup.border":"#FFFFFF17","editorGroupHeader.tabsBackground":"#181818","editorGroupHeader.tabsBorder":"#2B2B2B","editorGutter.addedBackground":"#2EA043","editorGutter.deletedBackground":"#F85149","editorGutter.modifiedBackground":"#0078D4","editorLineNumber.activeForeground":"#CCCCCC","editorLineNumber.foreground":"#6E7681","editorOverviewRuler.border":"#010409","editorWidget.background":"#202020","errorForeground":"#F85149","focusBorder":"#0078D4","foreground":"#CCCCCC","icon.foreground":"#CCCCCC","input.background":"#313131","input.border":"#3C3C3C","input.foreground":"#CCCCCC","input.placeholderForeground":"#989898","inputOption.activeBackground":"#2489DB82","inputOption.activeBorder":"#2488DB","keybindingLabel.foreground":"#CCCCCC","menu.background":"#1F1F1F","menu.selectionBackground":"#0078d4","notificationCenterHeader.background":"#1F1F1F","notificationCenterHeader.foreground":"#CCCCCC","notifications.background":"#1F1F1F","notifications.border":"#2B2B2B","notifications.foreground":"#CCCCCC","panel.background":"#181818","panel.border":"#2B2B2B","panelInput.border":"#2B2B2B","panelTitle.activeBorder":"#0078D4","panelTitle.activeForeground":"#CCCCCC","panelTitle.inactiveForeground":"#9D9D9D","peekViewEditor.background":"#1F1F1F","peekViewEditor.matchHighlightBackground":"#BB800966","peekViewResult.background":"#1F1F1F","peekViewResult.matchHighlightBackground":"#BB800966","pickerGroup.border":"#3C3C3C","progressBar.background":"#0078D4","quickInput.background":"#222222","quickInput.foreground":"#CCCCCC","settings.dropdownBackground":"#313131","settings.dropdownBorder":"#3C3C3C","settings.headerForeground":"#FFFFFF","settings.modifiedItemIndicator":"#BB800966","sideBar.background":"#181818","sideBar.border":"#2B2B2B","sideBar.foreground":"#CCCCCC","sideBarSectionHeader.background":"#181818","sideBarSectionHeader.border":"#2B2B2B","sideBarSectionHeader.foreground":"#CCCCCC","sideBarTitle.foreground":"#CCCCCC","statusBar.background":"#181818","statusBar.border":"#2B2B2B","statusBar.debuggingBackground":"#0078D4","statusBar.debuggingForeground":"#FFFFFF","statusBar.focusBorder":"#0078D4","statusBar.foreground":"#CCCCCC","statusBar.noFolderBackground":"#1F1F1F","statusBarItem.focusBorder":"#0078D4","statusBarItem.prominentBackground":"#6E768166","statusBarItem.remoteBackground":"#0078D4","statusBarItem.remoteForeground":"#FFFFFF","tab.activeBackground":"#1F1F1F","tab.activeBorder":"#1F1F1F","tab.activeBorderTop":"#0078D4","tab.activeForeground":"#FFFFFF","tab.selectedBorderTop":"#6caddf","tab.border":"#2B2B2B","tab.hoverBackground":"#1F1F1F","tab.inactiveBackground":"#181818","tab.inactiveForeground":"#9D9D9D","tab.unfocusedActiveBorder":"#1F1F1F","tab.unfocusedActiveBorderTop":"#2B2B2B","tab.unfocusedHoverBackground":"#1F1F1F","terminal.foreground":"#CCCCCC","terminal.tab.activeBorder":"#0078D4","textBlockQuote.background":"#2B2B2B","textBlockQuote.border":"#616161","textCodeBlock.background":"#2B2B2B","textLink.activeForeground":"#4daafc","textLink.foreground":"#4daafc","textPreformat.foreground":"#D0D0D0","textPreformat.background":"#3C3C3C","textSeparator.foreground":"#21262D","titleBar.activeBackground":"#181818","titleBar.activeForeground":"#CCCCCC","titleBar.border":"#2B2B2B","titleBar.inactiveBackground":"#1F1F1F","titleBar.inactiveForeground":"#9D9D9D","welcomePage.tileBackground":"#2B2B2B","welcomePage.progress.foreground":"#0078D4","widget.border":"#313131"}}
@@ -0,0 +1 @@
1
+ {"$schema":"vscode://schemas/color-theme","name":"Dark (Visual Studio)","colors":{"checkbox.border":"#6B6B6B","editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editorIndentGuide.background1":"#404040","editorIndentGuide.activeBackground1":"#707070","editor.selectionHighlightBackground":"#ADD6FF26","list.dropBackground":"#383B3D","activityBarBadge.background":"#007ACC","sideBarTitle.foreground":"#BBBBBB","input.placeholderForeground":"#A6A6A6","menu.background":"#252526","menu.foreground":"#CCCCCC","menu.separatorBackground":"#454545","menu.border":"#454545","menu.selectionBackground":"#0078d4","statusBarItem.remoteForeground":"#FFF","statusBarItem.remoteBackground":"#16825D","ports.iconRunningProcessForeground":"#369432","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#ccc3","tab.selectedBackground":"#222222","tab.selectedForeground":"#ffffffa0","tab.lastPinnedBorder":"#ccc3","list.activeSelectionIconForeground":"#FFF","terminal.inactiveSelectionBackground":"#3A3D41","widget.border":"#303031","actionBar.toggledBackground":"#383a49"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#D4D4D4"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#6A9955"}},{"scope":"constant.language","settings":{"foreground":"#569cd6"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#b5cea8"}},{"scope":"constant.regexp","settings":{"foreground":"#646695"}},{"scope":"entity.name.tag","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.tag.css","entity.name.tag.less"],"settings":{"foreground":"#d7ba7d"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9cdcfe"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#d7ba7d"}},{"scope":"invalid","settings":{"foreground":"#f44747"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#b5cea8"}},{"scope":"markup.deleted","settings":{"foreground":"#ce9178"}},{"scope":"markup.changed","settings":{"foreground":"#569cd6"}},{"scope":"punctuation.definition.quote.begin.markdown","settings":{"foreground":"#6A9955"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#6796e6"}},{"scope":"markup.inline.raw","settings":{"foreground":"#ce9178"}},{"name":"brackets of XML/HTML tags","scope":"punctuation.definition.tag","settings":{"foreground":"#808080"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#569cd6"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#ce9178"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b5cea8"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#9cdcfe"}},{"scope":"meta.diff.header","settings":{"foreground":"#569cd6"}},{"scope":"storage","settings":{"foreground":"#569cd6"}},{"scope":"storage.type","settings":{"foreground":"#569cd6"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#569cd6"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#ce9178"}},{"scope":"string.tag","settings":{"foreground":"#ce9178"}},{"scope":"string.value","settings":{"foreground":"#ce9178"}},{"scope":"string.regexp","settings":{"foreground":"#d16969"}},{"name":"String interpolation","scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#569cd6"}},{"name":"Reset JavaScript string interpolation expression","scope":["meta.template.expression"],"settings":{"foreground":"#d4d4d4"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#9cdcfe"}},{"scope":"keyword","settings":{"foreground":"#569cd6"}},{"scope":"keyword.control","settings":{"foreground":"#569cd6"}},{"scope":"keyword.operator","settings":{"foreground":"#d4d4d4"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#569cd6"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b5cea8"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#569cd6"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#9cdcfe"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b5cea8"}},{"name":"coloring of the Java import and package identifiers","scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#d4d4d4"}},{"name":"this.self","scope":"variable.language","settings":{"foreground":"#569cd6"}}],"semanticHighlighting":true,"semanticTokenColors":{"newOperator":"#d4d4d4","stringLiteral":"#ce9178","customLiteral":"#D4D4D4","numberLiteral":"#b5cea8"}}
@@ -0,0 +1 @@
1
+ import{ap as G,mt as N,tC as L,D as F,E,cR as n,jM as _,tD as V,ct as H,tE as S,hA as z,nY as K,iT as U,tA as i,bu as P,dC as k,rV as A,rU as W,o2 as I,hI as O,jP as B,f as w,g as h,cc as Y,W as x,bz as j,h as J,ch as $,ip as q,k5 as X,tF as Q,dN as Z,oC as tt,lK as et}from"./index-BwfWF2CI.js";import{E as it}from"./files.contribution._fileEditorFactory-vS4ZLYi1.js";var y;class ot{constructor(){this.selectedEditors=[],this.isSelected=()=>!1,this.setSelection=i,this.isTransient=()=>!1,this.windowId=P.vscodeWindowId,this.createEditorActions=i,this.onDidFocus=n.None,this.onDidOpenEditorFail=n.None,this.whenRestored=Promise.resolve(),this.disposed=!1,this.setActive=i,this.notifyIndexChanged=i,this.relayout=i,this.dispose=i,this.toJSON=i,this.minimumWidth=0,this.maximumWidth=Number.POSITIVE_INFINITY,this.minimumHeight=0,this.maximumHeight=Number.POSITIVE_INFINITY,this.onDidChange=n.None,this.layout=i,this.onDidModelChange=n.None,this.onWillDispose=n.None,this.onDidActiveEditorChange=n.None,this.onWillCloseEditor=n.None,this.onDidCloseEditor=n.None,this.onWillMoveEditor=n.None,this.onWillOpenEditor=n.None,this.id=0,this.index=0,this.label="main",this.ariaLabel="main",this.activeEditorPane=void 0,this.activeEditor=null,this.previewEditor=null,this.count=0,this.isEmpty=!1,this.isLocked=!1,this.stickyCount=0,this.editors=[],this.getEditors=()=>[],this.findEditors=()=>[],this.getEditorByIndex=()=>{},this.getIndexOfEditor=i,this.openEditor=i,this.openEditors=i,this.isPinned=()=>!1,this.isSticky=()=>!1,this.isActive=()=>!1,this.contains=()=>!1,this.moveEditor=i,this.moveEditors=i,this.copyEditor=i,this.copyEditors=i,this.closeEditor=i,this.closeEditors=i,this.closeAllEditors=i,this.replaceEditors=i,this.pinEditor=()=>{},this.stickEditor=()=>{},this.unstickEditor=()=>{},this.lock=()=>{},this.isFirst=i,this.isLast=i}get groupsView(){return i()}notifyLabelChanged(){}get titleHeight(){return i()}get element(){return i()}get scopedContextKeyService(){return G.get(k)}focus(){}}const st=new ot;class nt{constructor(o){this.editor=o,this.onDidChangeControl=n.None,this.onDidChangeSizeConstraints=n.None,this.onDidFocus=n.None,this.onDidBlur=n.None,this.input=void 0,this.options=void 0,this.group=st,this.scopedContextKeyService=void 0,this.getViewState=i,this.isVisible=i,this.hasFocus=i,this.getId=i,this.getTitle=i,this.focus=i}get minimumWidth(){return A.width}get maximumWidth(){return W.width}get minimumHeight(){return A.height}get maximumHeight(){return W.height}getControl(){return this.editor}}function rt(g,o,a){async function u(e,d,c){const t=_(e)?d:e.options;V(d)&&(c=d);const s=H(e)||_(e)?e.resource:void 0;if(s==null||!g.canHandleResource(s))return await o(e,d,c);let r;if(r=G.get(N).listCodeEditors().find(l=>l instanceof S&&l.getModel()!=null&&l.getModel().uri.toString()===s.toString()),r==null){const l=await o(e,d,c);if(l!=null)return l;const p=await g.createModelReference(s);if(r=await a?.(p,t,c===z),r==null){p.dispose();return}}return t!=null&&K(t,r,U.Immediate),(t?.preserveFocus??!1)||(r.focus(),r.getContainerDomNode().scrollIntoView()),new nt(r)}return u}let T=class extends it{constructor(o,a,u,e,d,c,t,s,r,f,l,p,v){super(void 0,u,e,d,c,t,s,r,f,l,p),this._isEditorPartVisible=a,this.openEditor=rt(v,this.openEditor.bind(this),o)}get activeTextEditorControl(){const o=G.get(N).getFocusedCodeEditor();return o!=null&&o instanceof L?o:super.activeTextEditorControl}async openEditor(o,a,u){if(this._isEditorPartVisible())return await super.openEditor(o,a,u)}};T=w([h(2,Y),h(3,x),h(4,j),h(5,J),h(6,$),h(7,q),h(8,X),h(9,Q),h(10,Z),h(11,tt),h(12,et)],T);class M{constructor(o,a,u){this.editor=o,this.input=a,this.group=u,this.onDidChangeControl=n.None,this.options=void 0,this.minimumWidth=0,this.maximumWidth=Number.POSITIVE_INFINITY,this.minimumHeight=0,this.maximumHeight=Number.POSITIVE_INFINITY,this.onDidChangeSizeConstraints=n.None,this.scopedContextKeyService=void 0,this.onDidFocus=this.editor.onDidFocusEditorWidget,this.onDidBlur=this.editor.onDidBlurEditorWidget}getControl(){return this.editor}getViewState(){}isVisible(){return!0}hasFocus(){return this.editor.hasWidgetFocus()}getId(){return this.editor.getId()}getTitle(){}focus(){this.editor.focus()}}let C=y=class extends F{constructor(o,a,u){super(),this.editor=o,this.scopedContextKeyService=u,this.active=!1,this.selectedEditors=[],this.isSelected=()=>!1,this.setSelection=i,this.isTransient=()=>!1,this.windowId=P.vscodeWindowId,this.onDidFocus=this.editor.onDidFocusEditorWidget,this.onDidOpenEditorFail=n.None,this.whenRestored=Promise.resolve(),this.disposed=!1,this.notifyIndexChanged=i,this.relayout=i,this.toJSON=i,this.minimumWidth=0,this.maximumWidth=Number.POSITIVE_INFINITY,this.minimumHeight=0,this.maximumHeight=Number.POSITIVE_INFINITY,this.onDidChange=this.editor.onDidLayoutChange,this.layout=()=>this.editor.layout(),this._onDidModelChange=new E,this.onDidModelChange=this._onDidModelChange.event,this.onWillDispose=this.editor.onDidDispose,this._onDidActiveEditorChange=new E,this.onDidActiveEditorChange=this._onDidActiveEditorChange.event,this.onWillCloseEditor=n.None,this._onDidCloseEditor=new E,this.onDidCloseEditor=this._onDidCloseEditor.event,this.onWillMoveEditor=n.None,this._onWillOpenEditor=new E,this.onWillOpenEditor=this._onWillOpenEditor.event,this.id=--y.idCounter,this.index=-1,this.label=`standalone editor ${-this.id}`,this.ariaLabel=`standalone editor ${-this.id}`,this.previewEditor=null,this.isLocked=!0,this.stickyCount=0,this.getEditors=()=>this.editors,this.findEditors=t=>this.pane!=null&&t.toString()===this.pane.input.resource.toString()?[this.pane.input]:[],this.getEditorByIndex=t=>this.pane!=null&&t===0?this.pane.input:void 0,this.getIndexOfEditor=t=>this.pane!=null&&this.pane.input===t?0:-1,this.openEditor=async t=>{if(!t.isDisposed()&&t instanceof I&&t.resource.toString()===this.pane?.input.resource.toString())return this.focus(),this.pane},this.openEditors=async t=>{if(t.length===1)return await this.openEditor(t[0].editor)},this.isPinned=()=>!1,this.isSticky=()=>!1,this.isActive=()=>this.editor.hasWidgetFocus(),this.contains=t=>this.pane!=null&&this.pane.input===t,this.moveEditor=i,this.moveEditors=i,this.copyEditor=i,this.copyEditors=i,this.closeEditor=i,this.closeEditors=i,this.closeAllEditors=i,this.replaceEditors=i,this.pinEditor=()=>{},this.stickEditor=()=>{},this.unstickEditor=()=>{},this.lock=()=>{},this.isFirst=i,this.isLast=i;const e=t=>{const s=a.createInstance(I,t,void 0,void 0,void 0,void 0);this._onWillOpenEditor.fire({editor:s,groupId:this.id}),this.pane=new M(o,s,this),this._onDidModelChange.fire({kind:O.EDITOR_OPEN,editor:s,editorIndex:0}),this._onDidActiveEditorChange.fire({editor:s})},d=t=>{if(this.pane!=null&&this.pane.input.resource.toString()===t.toString()){const s=this.pane;this.pane=void 0,this._onDidModelChange.fire({kind:O.EDITOR_CLOSE,editorIndex:0}),this._onDidActiveEditorChange.fire({editor:void 0}),this._onDidCloseEditor.fire({context:B.UNKNOWN,editor:s.input,groupId:this.id,index:0,sticky:!1})}};o.onDidChangeModel(t=>{t.oldModelUrl!=null&&d(t.oldModelUrl),t.newModelUrl!=null&&e(t.newModelUrl)}),this._register({dispose:()=>{const t=o.getModel();t!=null&&d(t.uri)}});const c=o.getModel();if(c!=null){const t=a.createInstance(I,c.uri,void 0,void 0,void 0,void 0);this.pane=new M(o,t,this)}}get groupsView(){return i()}notifyLabelChanged(){}createEditorActions(){return{actions:{primary:[],secondary:[]},onDidChange:n.None}}get titleHeight(){return i()}setActive(o){this.active=o}get element(){return this.editor.getContainerDomNode()}get activeEditorPane(){return this.pane}get activeEditor(){return this.pane?.input??null}get count(){return this.pane!=null?1:0}get isEmpty(){return this.pane==null}get editors(){return this.pane!=null?[this.pane.input]:[]}focus(){this.editor.focus(),this.editor.getContainerDomNode().scrollIntoView()}};C.idCounter=0;C=y=w([h(1,x),h(2,k)],C);let R=class extends F{constructor(o,a,u){super(),this.delegate=o,this.instantiationService=u,this._serviceBrand=void 0,this.additionalGroups=[],this.activeGroupOverride=void 0,this.onDidCreateAuxiliaryEditorPart=this.delegate.onDidCreateAuxiliaryEditorPart,this.onDidChangeGroupMaximized=this.delegate.onDidChangeGroupMaximized,this._onDidChangeActiveGroup=new E,this.onDidChangeActiveGroup=n.any(this._onDidChangeActiveGroup.event,this.delegate.onDidChangeActiveGroup),this._onDidAddGroup=new E,this.onDidAddGroup=n.any(this._onDidAddGroup.event,this.delegate.onDidAddGroup),this._onDidRemoveGroup=new E,this.onDidRemoveGroup=n.any(this._onDidRemoveGroup.event,this.delegate.onDidRemoveGroup),this.onDidMoveGroup=this.delegate.onDidMoveGroup,this.onDidActivateGroup=this.delegate.onDidActivateGroup,this.onDidChangeGroupIndex=this.delegate.onDidChangeGroupIndex,this.onDidChangeGroupLocked=this.delegate.onDidChangeGroupLocked,this.getLayout=()=>this.delegate.getLayout(),this.getGroups=e=>[...this.delegate.getGroups(e),...this.additionalGroups],this.getGroup=e=>this.delegate.getGroup(e)??this.additionalGroups.find(d=>d.id===e),this.activateGroup=(...e)=>this.delegate.activateGroup(...e),this.getSize=(...e)=>this.delegate.getSize(...e),this.setSize=(...e)=>this.delegate.setSize(...e),this.arrangeGroups=(...e)=>this.delegate.arrangeGroups(...e),this.applyLayout=(...e)=>this.delegate.applyLayout(...e),this.setGroupOrientation=(...e)=>this.delegate.setGroupOrientation(...e),this.findGroup=(...e)=>this.delegate.findGroup(...e),this.addGroup=(...e)=>this.delegate.addGroup(...e),this.removeGroup=(...e)=>this.delegate.removeGroup(...e),this.moveGroup=(...e)=>this.delegate.moveGroup(...e),this.mergeGroup=(...e)=>this.delegate.mergeGroup(...e),this.mergeAllGroups=(...e)=>this.delegate.mergeAllGroups(...e),this.copyGroup=(...e)=>this.delegate.copyGroup(...e),this.onDidChangeEditorPartOptions=this.delegate.onDidChangeEditorPartOptions,this.enforcePartOptions=(...e)=>this.delegate.enforcePartOptions(...e),setTimeout(()=>{const e=G.get(N),d=t=>{if(t instanceof S){let s;const r=m=>{const D=m!=null?this.additionalGroups.find(b=>b.editor===m):void 0;this.activeGroupOverride!==D&&(this.activeGroupOverride=D,this._onDidChangeActiveGroup.fire(this.activeGroup))},f=m=>{!a&&this.activeGroupOverride===this.additionalGroups.find(D=>D.editor===m)&&r(void 0)},l=()=>{s!=null&&window.clearTimeout(s),r(t)},p=()=>{s!=null&&window.clearTimeout(s),s=window.setTimeout(()=>{s=void 0,f(t)},100)};t.onDidDispose(()=>{f(t)}),t.onDidFocusEditorText(l),t.onDidFocusEditorWidget(l),t.onDidBlurEditorText(p),t.onDidBlurEditorWidget(p),t.hasWidgetFocus()&&l();const v=u.createInstance(C,t);this.additionalGroups.push(v),this._onDidAddGroup.fire(v)}},c=t=>{if(t instanceof S){const s=this.additionalGroups.find(r=>r.editor===t);s!=null&&(s.dispose(),this.activeGroupOverride===s&&(this.activeGroupOverride=void 0,this._onDidChangeActiveGroup.fire(this.activeGroup)),this.additionalGroups=this.additionalGroups.filter(r=>r!==s),this._onDidRemoveGroup.fire(s))}};this._register(e.onCodeEditorAdd(d)),this._register(e.onCodeEditorRemove(c)),e.listCodeEditors().forEach(d)})}getScopedInstantiationService(){return this.instantiationService}registerContextKeyProvider(o){return this.delegate.registerContextKeyProvider(o)}saveWorkingSet(o){return this.delegate.saveWorkingSet(o)}getWorkingSets(){return this.delegate.getWorkingSets()}applyWorkingSet(o){return this.delegate.applyWorkingSet(o)}deleteWorkingSet(o){return this.delegate.deleteWorkingSet(o)}get isReady(){return this.delegate.isReady}get whenReady(){return this.delegate.whenReady}get whenRestored(){return this.delegate.whenRestored}get hasRestorableState(){return this.delegate.hasRestorableState}get parts(){return this.delegate.parts}createAuxiliaryEditorPart(o){return this.delegate.createAuxiliaryEditorPart(o)}get mainPart(){return this.delegate.mainPart}getPart(o){return this.delegate.getPart(o)}toggleMaximizeGroup(o){return this.delegate.toggleMaximizeGroup(o)}toggleExpandGroup(o){return this.delegate.toggleExpandGroup(o)}createEditorDropTarget(o,a){return this.delegate.createEditorDropTarget(o,a)}get groups(){return[...this.additionalGroups,...this.delegate.groups]}get activeGroup(){return this.activeGroupOverride??this.delegate.activeGroup}get sideGroup(){return this.delegate.sideGroup}get count(){return this.delegate.count+this.additionalGroups.length}get orientation(){return this.delegate.orientation}get partOptions(){return this.delegate.partOptions}};R=w([h(2,x)],R);export{T as M,R as a,st as f};