@@ -6,6 +6,10 @@ const Site = Astro.site;
66
77const Worker = ` /Worker.js?BASE_REMOTE=${encodeURIComponent (Site ?.toString () ?? Astro .url .origin )} ` ;
88
9+ export const On =
10+ process .env [" NODE_ENV" ] === " development" ||
11+ process .env [" TAURI_ENV_DEBUG" ] === " true" ;
12+
913const Default = {
1014 // --- Core Local Configuration ---
1115 // Explicitly set to null to indicate no remote server authority
@@ -127,9 +131,9 @@ const Default = {
127131 // --- Development ---
128132 developmentOptions: {
129133 // Set to Trace (1) or Debug (2) for maximum insight during development
130- logLevel: 2 ,
134+ logLevel: On ? 2 : 0 ,
131135
132- enableSmokeTestDriver: false ,
136+ enableSmokeTestDriver: On ,
133137
134138 // Only set if running integration tests
135139 // extensionTestsPath: undefined,
@@ -145,7 +149,7 @@ const Default = {
145149} satisfies IWorkbenchConstructionOptions as IWorkbenchConstructionOptions ;
146150
147151const Bust = (Base : string ): string =>
148- ` ${Base }${Base .includes (" ?" ) ? " &" : " ?" }v =${encodeURIComponent (Date .now ())} ` ;
152+ ` ${Base }${Base .includes (" ?" ) ? " &" : " ?" }Time =${encodeURIComponent (Date .now ())} ` ;
149153
150154const Bundle = typeof process .env [" Bundle" ] !== " undefined" ;
151155---
@@ -199,7 +203,7 @@ const Bundle = typeof process.env["Bundle"] !== "undefined";
199203 type = " module"
200204 src = { Bust (" /Worker/CSS/Load.js" )}
201205 slot = " Head"
202- />
206+ />
203207
204208 <script
205209 is :inline
@@ -213,7 +217,6 @@ const Bundle = typeof process.env["Bundle"] !== "undefined";
213217 type = " module"
214218 src = { Bust (" /Worker/Register.js" )}
215219 slot = " Head"
216- defer
217220 />
218221
219222 <script
@@ -222,7 +225,6 @@ const Bundle = typeof process.env["Bundle"] !== "undefined";
222225 src = { Bust (
223226 " /Static/Application/vs/code/browser/workbench/workbench.js" ,
224227 )}
225- defer
226228 />
227229 </Fragment >
228230 )
0 commit comments