Skip to content

Commit 07c6ab8

Browse files
"fix(workbench)"
1 parent 9742463 commit 07c6ab8

12,085 files changed

Lines changed: 4544 additions & 2135821 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Source/Function/Debug.ts

Lines changed: 98 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ if (Bundle) {
141141
default:
142142
break;
143143
}
144-
145144
Static.targets.push(
146145
...[
147146
{
@@ -161,6 +160,70 @@ if (Bundle) {
161160

162161
dest: ".",
163162
},
163+
164+
{
165+
src: "node_modules/@codeeditorland/wind/Target/*.js",
166+
167+
dest: "Static/Wind/",
168+
},
169+
170+
{
171+
src: "node_modules/@codeeditorland/wind/Target/Bootstrap/*",
172+
173+
dest: "Static/Wind/Bootstrap/",
174+
},
175+
176+
{
177+
src: "node_modules/@codeeditorland/wind/Target/Configuration/*",
178+
179+
dest: "Static/Wind/Configuration/",
180+
},
181+
182+
{
183+
src: "node_modules/@codeeditorland/wind/Target/Effect/*",
184+
185+
dest: "Static/Wind/Effect/",
186+
},
187+
188+
{
189+
src: "node_modules/@codeeditorland/wind/Target/Function/*",
190+
191+
dest: "Static/Wind/Function/",
192+
},
193+
194+
{
195+
src: "node_modules/@codeeditorland/wind/Target/Types/*",
196+
197+
dest: "Static/Wind/Types/",
198+
},
199+
200+
// Wind Polyfills - loaded as static scripts for approach A3 (Electron workbench)
201+
{
202+
src: "node_modules/@codeeditorland/wind/Target/Polyfills/*.js",
203+
204+
dest: "Static/Wind/Polyfills/",
205+
},
206+
207+
// Browser Workbench - for approaches A1 (BrowserProxy) and A2 (Mountain)
208+
{
209+
src: "node_modules/@codeeditorland/output/Target/CodeEditorLand/Editor/vs/code/browser/workbench/*",
210+
211+
dest: "Static/VSCode/Browser/Workbench/",
212+
},
213+
214+
// Electron Workbench - for approach A3 (Electron)
215+
{
216+
src: "node_modules/@codeeditorland/output/Target/CodeEditorLand/Editor/vs/code/electron-browser/workbench/*",
217+
218+
dest: "Static/VSCode/Electron/Workbench/",
219+
},
220+
221+
// VSCode Core - ensure all VSCode code is available
222+
{
223+
src: "node_modules/@codeeditorland/output/Target/CodeEditorLand/Editor/vs/*",
224+
225+
dest: "Static/VSCode/",
226+
},
164227
],
165228
);
166229
} else {
@@ -177,6 +240,40 @@ if (Bundle) {
177240

178241
dest: ".",
179242
},
243+
244+
{
245+
src: "node_modules/@codeeditorland/wind/Target/*",
246+
247+
dest: "Static/Wind/",
248+
},
249+
250+
// Wind Polyfills - loaded as static scripts
251+
{
252+
src: "node_modules/@codeeditorland/wind/Target/Polyfills/*.js",
253+
254+
dest: "Static/Wind/Polyfills/",
255+
},
256+
257+
// VSCode Browser Workbench
258+
{
259+
src: "node_modules/@codeeditorland/output/Target/CodeEditorLand/Editor/vs/code/browser/workbench/*",
260+
261+
dest: "Static/VSCode/Browser/Workbench/",
262+
},
263+
264+
// VSCode Electron Workbench
265+
{
266+
src: "node_modules/@codeeditorland/output/Target/CodeEditorLand/Editor/vs/code/electron-browser/workbench/*",
267+
268+
dest: "Static/VSCode/Electron/Workbench/",
269+
},
270+
271+
// VSCode Core
272+
{
273+
src: "node_modules/@codeeditorland/output/Target/CodeEditorLand/Editor/vs/*",
274+
275+
dest: "Static/VSCode/",
276+
},
180277
],
181278
);
182279
}

Source/Function/Shared.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Sky Shared Utilities
3+
* --------------------------------------------------------------------------------------------
4+
* Shared constants and utilities used across Astro components.
5+
*
6+
* This module provides:
7+
* - On: Development/debug mode flag
8+
* - Bust: Cache-busting function for static asset URLs
9+
*--------------------------------------------------------------------------------------------*/
10+
11+
/**
12+
* "On" represents the active development/debugging state.
13+
* True if NODE_ENV is 'development' OR TAURI_ENV_DEBUG is set.
14+
*/
15+
export const On =
16+
process.env["NODE_ENV"] === "development" ||
17+
process.env["TAURI_ENV_DEBUG"] === "true";
18+
19+
/**
20+
* Bust - Cache-busting utility for static asset URLs
21+
*
22+
* Appends a timestamp query parameter to URLs to force cache invalidation
23+
* during development or when needed.
24+
*
25+
* @param Base - The base URL or path
26+
* @returns The URL with a cache-busting timestamp parameter
27+
*
28+
* @example
29+
* Bust("/Static/Application/vs/workbench.js")
30+
* // Returns: "/Static/Application/vs/workbench.js?Time=1234567890"
31+
*/
32+
export const Bust = (Base: string): string =>
33+
`${Base}${Base.includes("?") ? "&" : "?"}Time=${encodeURIComponent(Date.now())}`;

0 commit comments

Comments
 (0)