-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlevelcode-core.patch
More file actions
393 lines (373 loc) · 39.6 KB
/
Copy pathlevelcode-core.patch
File metadata and controls
393 lines (373 loc) · 39.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
diff --git a/build/lib/copilot.ts b/build/lib/copilot.ts
index 74babc79..4d696744 100644
--- a/build/lib/copilot.ts
+++ b/build/lib/copilot.ts
@@ -185,7 +185,10 @@ export function prepareBuiltInCopilotRipgrepShim(platform: string, arch: string,
const copilotBase = path.join(extensionNodeModules, '@github', 'copilot');
const copilotSdkBase = path.join(copilotBase, 'sdk');
if (!fs.existsSync(copilotSdkBase)) {
- throw new Error(`[prepareBuiltInCopilotRipgrepShim] Copilot SDK directory not found at ${copilotSdkBase}`);
+ // [LevelCode] We don't ship the proprietary GitHub Copilot extension, so there's
+ // no Copilot SDK to shim — skip instead of failing the build. (M2 adds our own AI.)
+ console.log('[prepareBuiltInCopilotRipgrepShim] Copilot not bundled (LevelCode); skipping ripgrep shim.');
+ return;
}
pruneNonTargetCopilotSdkPrebuilds(platformArch, path.join(copilotSdkBase, 'prebuilds'), copilotPlatforms);
pruneNonTargetCopilotSdkPrebuilds(tgrepPlatformArch, path.join(copilotSdkBase, path.join('tgrep', 'bin')), copilotTgrepPlatforms);
diff --git a/build/lib/extensions.ts b/build/lib/extensions.ts
index e487ff5c..778c3de9 100644
--- a/build/lib/extensions.ts
+++ b/build/lib/extensions.ts
@@ -461,26 +461,12 @@ function doPackageLocalExtensionsStream(forWeb: boolean, disableMangle: boolean,
* This is used by non-CI local builds where copilot is not downloaded as a VSIX
* but must be compiled from source and included in the build.
*/
-export function packageCopilotExtensionStream(disableMangle: boolean): Stream {
- const extensionPath = path.join(root, 'extensions', 'copilot');
- if (!fs.existsSync(extensionPath)) {
- return es.readArray([]);
- }
-
- const localExtensionsStream = minifyExtensionResources(
- fromLocal(extensionPath, false, disableMangle)
- .pipe(rename(p => p.dirname = `extensions/copilot/${p.dirname}`))
- );
-
- const productionDependencies = getProductionDependencies('extensions/copilot');
- const dependenciesSrc = productionDependencies.map(d => path.relative(root, d)).map(d => [`${d}/**`, `!${d}/**/{test,tests}/**`]).flat();
-
- return es.merge(
- localExtensionsStream,
- gulp.src(dependenciesSrc, { base: '.' })
- .pipe(util2.cleanNodeModules(path.join(root, 'build', '.moduleignore')))
- .pipe(util2.cleanNodeModules(path.join(root, 'build', `.moduleignore.${process.platform}`)))
- ).pipe(util2.setExecutableBit(['**/*.sh']));
+export function packageCopilotExtensionStream(_disableMangle: boolean): Stream {
+ // [LevelCode] Do not bundle the proprietary GitHub Copilot Chat extension. It is not
+ // MIT-licensed and cannot be redistributed in a non-Microsoft product; LevelCode's own
+ // AI layer (M2) replaces it. Returning an empty stream drops it from the build and
+ // also avoids its fragile from-source packaging (missing shims.txt, prebuilt binaries).
+ return es.readArray([]);
}
export function packageMarketplaceExtensionsStream(forWeb: boolean): Stream {
diff --git a/src/vs/workbench/api/node/loopbackServer.ts b/src/vs/workbench/api/node/loopbackServer.ts
index 1d32a486..6313ce39 100644
--- a/src/vs/workbench/api/node/loopbackServer.ts
+++ b/src/vs/workbench/api/node/loopbackServer.ts
@@ -187,12 +187,11 @@ export class LoopbackAuthServer implements ILoopbackServer {
getHtml(): string {
// TODO: Bring this in via mixin. Skipping exploration for now.
- let backgroundImage = 'url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQABAMAAACNMzawAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJ1BMVEUAAAD///9Qm8+ozed8tNsWer+Lvd9trNfF3u9Ck8slgsMzi8eZxeM/Qa6mAAAAAXRSTlMAQObYZgAAAAFiS0dEAf8CLd4AAAAHdElNRQfiCwYULRt0g+ZLAAAJRUlEQVR42u3SUY0CQRREUSy0hSZtBA+wfOwv4wAPYwAJSMAfAthkB6YD79HnKqikzmYjSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIk6cmKhg4AAASAABAAAkAACAABIAAEgAAQAAJAAAgAAaBvBVAjtV2wfFe1ogcA+0gdFgBoe60IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3ciIHJlc3VsdD0ic2hhcGUiLz4KPC9maWx0ZXI+CjwvZGVmcz4KPC9zdmc+Cg==\')';
- }
+ // [LevelCode] Always show the LevelCode chevron on the GitHub OAuth success page. Upstream chose the
+ // artwork from this._appName (=== the VS Code / Insiders app names); neither ever matches our
+ // product name, so it fell through to the stock blue VS Code 'book' default — flashing a VS Code logo
+ // on every sign-in. Replace all three with our own mark (this._appName is still rendered as text below).
+ const backgroundImage = 'url(\'data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0Ij4KICA8ZGVmcz4KICAgIDxsaW5lYXJHcmFkaWVudCBpZD0ibGNnIiB4MT0iMTgwIiB5MT0iMTQwIiB4Mj0iODYwIiB5Mj0iOTAwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgIDxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzZhM2ZlMCIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjAuNTIiIHN0b3AtY29sb3I9IiM3MDY5ZmYiLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjNGZiMmZmIi8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogIDwvZGVmcz4KICA8cmVjdCB4PSI5NiIgeT0iOTYiIHdpZHRoPSI4MzIiIGhlaWdodD0iODMyIiByeD0iMjIwIiBmaWxsPSJ1cmwoI2xjZykiLz4KICA8ZyBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+CiAgICA8cGF0aCBkPSJNMzEyIDU0OCBMNTEyIDM2MCBMNzEyIDU0OCIgc3Ryb2tlLXdpZHRoPSI5MiIvPgogICAgPHBhdGggZD0iTTMxMiA3MjAgTDUxMiA1MzIgTDcxMiA3MjAiIHN0cm9rZS13aWR0aD0iOTIiIHN0cm9rZS1vcGFjaXR5PSIwLjU1Ii8+CiAgPC9nPgo8L3N2Zz4K\')';
return `<!DOCTYPE html>
<html lang="en">
diff --git a/src/vs/workbench/browser/actions/helpActions.ts b/src/vs/workbench/browser/actions/helpActions.ts
index 8251c4a4..d2da153b 100644
--- a/src/vs/workbench/browser/actions/helpActions.ts
+++ b/src/vs/workbench/browser/actions/helpActions.ts
@@ -343,7 +343,7 @@ class AskVSCodeCopilot extends Action2 {
id: AskVSCodeCopilot.ID,
title: localize2('askVScode', 'Ask @vscode'),
category: Categories.Help,
- f1: true,
+ f1: false, // [LevelCode] hide "Ask @vscode" from the command palette too
precondition: ContextKeyExpr.and(ContextKeyExpr.equals('chatSetupHidden', false), ContextKeyExpr.equals('chatSetupDisabledInWorkspace', false), IsSessionsWindowContext.negate())
});
}
@@ -362,7 +362,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
},
order: 7,
group: '1_welcome',
- when: ContextKeyExpr.and(ContextKeyExpr.equals('chatSetupHidden', false), ContextKeyExpr.equals('chatSetupDisabledInWorkspace', false), IsSessionsWindowContext.negate())
+ when: ContextKeyExpr.false() // [LevelCode] hide the "Ask @vscode" Help item — Copilot participant, not shipped
});
// --- Actions Registration
diff --git a/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.ts b/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.ts
index ac91175c..883a7ed6 100644
--- a/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.ts
+++ b/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.ts
@@ -38,13 +38,12 @@ import { ITelemetryService } from '../../../../../platform/telemetry/common/tele
import { ToggleTitleBarConfigAction } from '../../../../browser/parts/titlebar/titlebarActions.js';
import { IWorkbenchContribution } from '../../../../common/contributions.js';
import { IViewDescriptorService, ViewContainerLocation } from '../../../../common/views.js';
-import { ChatEntitlement, ChatEntitlementContext, ChatEntitlementContextKeys, ChatEntitlementRequests, ChatEntitlementService, IChatEntitlementService, isProUser } from '../../../../services/chat/common/chatEntitlementService.js';
+import { ChatEntitlement, ChatEntitlementContext, ChatEntitlementRequests, ChatEntitlementService, IChatEntitlementService, isProUser } from '../../../../services/chat/common/chatEntitlementService.js';
import { EnablementState, IWorkbenchExtensionEnablementService } from '../../../../services/extensionManagement/common/extensionManagement.js';
import { ExtensionUrlHandlerOverrideRegistry, IExtensionUrlHandlerOverride } from '../../../../services/extensions/browser/extensionUrlHandler.js';
import { IExtensionService } from '../../../../services/extensions/common/extensions.js';
import { IHostService } from '../../../../services/host/browser/host.js';
import { IWorkbenchLayoutService, Parts } from '../../../../services/layout/browser/layoutService.js';
-import { InEditorZenModeContext } from '../../../../common/contextkeys.js';
import { ILifecycleService } from '../../../../services/lifecycle/common/lifecycle.js';
import { IPreferencesService } from '../../../../services/preferences/common/preferences.js';
import { IExtension, IExtensionsWorkbenchService } from '../../../extensions/common/extensions.js';
@@ -367,12 +366,10 @@ export class ChatSetupContribution extends Disposable implements IWorkbenchContr
menu: {
id: MenuId.AccountsContext,
group: '2_copilot',
- when: ContextKeyExpr.and(
- ChatContextKeys.Setup.hidden.negate(),
- ChatContextKeys.Setup.disabledInWorkspace.negate(),
- ChatContextKeys.Setup.completed.negate(),
- ChatContextKeys.Entitlement.signedOut
- )
+ // [LevelCode] Hidden: a GitHub Copilot sign-in funnel for an extension we do not ship. Gated on
+ // THIS MENU ITEM, deliberately not via ChatEntitlement's Setup.hidden — that flag also gates the
+ // Agents window, the Agent Plugins view and chat participants, and forcing it hid all of them.
+ when: ContextKeyExpr.false()
}
});
}
@@ -399,16 +396,10 @@ export class ChatSetupContribution extends Disposable implements IWorkbenchContr
menu: [{
id: MenuId.TitleBarAdjacentCenter,
order: 0, // same position as the update button
- when: ContextKeyExpr.and(
- IsWebContext.negate(),
- ChatContextKeys.Entitlement.signedOut,
- ChatEntitlementContextKeys.hasByokModels.negate(),
- ChatContextKeys.Setup.hidden.negate(),
- ChatContextKeys.Setup.disabledInWorkspace.negate(),
- ContextKeyExpr.equals(`config.${ChatConfiguration.TitleBarSignInEnabled}`, true),
- ContextKeyExpr.has('updateTitleBar').negate(),
- InEditorZenModeContext.negate(),
- ),
+ // [LevelCode] Hidden: a GitHub Copilot sign-in funnel for an extension we do not ship. Gated on
+ // THIS MENU ITEM, deliberately not via ChatEntitlement's Setup.hidden — that flag also gates the
+ // Agents window, the Agent Plugins view and chat participants, and forcing it hid all of them.
+ when: ContextKeyExpr.false(),
}]
});
}
diff --git a/src/vs/workbench/contrib/files/browser/files.contribution.ts b/src/vs/workbench/contrib/files/browser/files.contribution.ts
index 574c2d8e..f6b8c7af 100644
--- a/src/vs/workbench/contrib/files/browser/files.contribution.ts
+++ b/src/vs/workbench/contrib/files/browser/files.contribution.ts
@@ -125,7 +125,7 @@ const hotExitConfiguration: IConfigurationPropertySchema = isNative ?
'type': 'string',
'scope': ConfigurationScope.APPLICATION,
'enum': [HotExitConfiguration.OFF, HotExitConfiguration.ON_EXIT, HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE],
- 'default': HotExitConfiguration.ON_EXIT,
+ 'default': HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE, // [LevelCode] Sublime-style persistence by default (was ON_EXIT)
'markdownEnumDescriptions': [
nls.localize('hotExit.off', 'Disable hot exit. A prompt will show when attempting to close a window with editors that have unsaved changes.'),
nls.localize('hotExit.onExit', 'Hot exit will be triggered when the last window is closed on Windows/Linux or when the `workbench.action.quit` command is triggered (command palette, keybinding, menu). All windows without folders opened will be restored upon next launch. A list of previously opened windows with unsaved files can be accessed via `File > Open Recent > More...`'),
diff --git a/src/vs/workbench/contrib/update/browser/releaseNotesEditor.ts b/src/vs/workbench/contrib/update/browser/releaseNotesEditor.ts
index 835f4980..f452db2c 100644
--- a/src/vs/workbench/contrib/update/browser/releaseNotesEditor.ts
+++ b/src/vs/workbench/contrib/update/browser/releaseNotesEditor.ts
@@ -91,6 +91,15 @@ export class ReleaseNotesManager extends Disposable {
}
public async show(version: string, useCurrentFile: boolean): Promise<boolean> {
+ // [LevelCode] Never render Microsoft's hosted VS Code release notes in-editor (loadReleaseNotes
+ // hardcodes code.visualstudio.com/raw/v{ver}.md → showed "Visual Studio Code 1.126"). Open our own
+ // releases page (product.releaseNotesUrl) in the browser instead. The `useCurrentFile` dev command
+ // (Developer: Open Current File as Release Notes) still renders the local .md below.
+ if (!useCurrentFile && this._productService.releaseNotesUrl) {
+ await this._openerService.open(URI.parse(this._productService.releaseNotesUrl));
+ return true;
+ }
+
const releaseNoteText = await this.loadReleaseNotes(version, useCurrentFile);
const base = await this.getBase(useCurrentFile);
this._lastMeta = { text: releaseNoteText, base };
diff --git a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts
index 067580a4..92e3a697 100644
--- a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts
+++ b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts
@@ -50,7 +50,7 @@ registerAction2(class extends Action2 {
order: 1,
},
metadata: {
- description: localize2('minWelcomeDescription', 'Opens a Walkthrough to help you get started in VS Code.')
+ description: localize2('minWelcomeDescription', 'Opens a Walkthrough to help you get started in LevelCode.')
}
});
}
@@ -320,7 +320,7 @@ configurationRegistry.registerConfiguration({
'enum': ['none', 'welcomePage', 'readme', 'newUntitledFile', 'welcomePageInEmptyWorkbench', 'terminal', 'agentSessionsWelcomePage'],
'enumDescriptions': [
localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.none' }, "Start without an editor."),
- localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.welcomePage' }, "Open the Welcome page, with content to aid in getting started with VS Code and extensions."),
+ localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.welcomePage' }, "Open the Welcome page, with content to aid in getting started with LevelCode and extensions."),
localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.readme' }, "Open the README when opening a folder that contains one, fallback to 'welcomePage' otherwise. Note: This is only observed as a global configuration, it will be ignored if set in a workspace or folder configuration."),
localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.newUntitledFile' }, "Open a new untitled text file (only applies when opening an empty window)."),
localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.welcomePageInEmptyWorkbench' }, "Open the Welcome page when opening an empty workbench."),
@@ -342,12 +342,10 @@ configurationRegistry.registerConfiguration({
'workbench.welcomePage.experimentalOnboarding': {
scope: ConfigurationScope.APPLICATION,
type: 'boolean',
- default: true,
+ default: false, // [LevelCode] off by default — suppress the Copilot-centric "Welcome to VS Code" onboarding overlay
tags: ['experimental'],
description: localize('workbench.welcomePage.experimentalOnboarding', "When enabled, show the new onboarding experience instead of the classic walkthrough on first launch."),
- experiment: {
- mode: 'auto'
- }
+ // [LevelCode] removed `experiment: { mode: 'auto' }` so the experiment service can't silently re-enable the upstream onboarding
}
}
});
diff --git a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts
index ac89ae8e..1f1fdf31 100644
--- a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts
+++ b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts
@@ -181,7 +181,10 @@ export class WalkthroughsService extends Disposable implements IWalkthroughsServ
private registerWalkthroughs() {
- walkthroughs.forEach(async (category, index) => {
+ // [LevelCode] Register NONE of the built-in VS Code walkthroughs (Setup / Web / Accessibility). LevelCode
+ // ships its own via the extension path. Iterate an empty slice — not an early `return`, which the
+ // compiler flags as unreachable code — while keeping `walkthroughs` referenced.
+ walkthroughs.slice(0, 0).forEach(async (category, index) => {
this._registerWalkthrough({
...category,
diff --git a/src/vs/workbench/contrib/welcomeOnboarding/browser/welcomeOnboarding.contribution.ts b/src/vs/workbench/contrib/welcomeOnboarding/browser/welcomeOnboarding.contribution.ts
index d725507e..fe7144c8 100644
--- a/src/vs/workbench/contrib/welcomeOnboarding/browser/welcomeOnboarding.contribution.ts
+++ b/src/vs/workbench/contrib/welcomeOnboarding/browser/welcomeOnboarding.contribution.ts
@@ -22,7 +22,7 @@ registerAction2(class extends Action2 {
id: 'workbench.action.welcomeOnboarding2026',
title: localize2('welcomeOnboarding2026', "Welcome Onboarding 2026"),
category: Categories.Developer,
- f1: true,
+ f1: false, // [LevelCode] hide from the Command Palette — its onboardingService.show() renders the stock "Welcome to VS Code / Sign in to use GitHub Copilot" modal, which we do not ship
});
}
diff --git a/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.ts b/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.ts
index 1a1f1e1d..56af75ac 100644
--- a/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.ts
+++ b/src/vs/workbench/contrib/welcomeWalkthrough/browser/walkThrough.contribution.ts
@@ -8,11 +8,10 @@ import { WalkThroughInput } from './walkThroughInput.js';
import { WalkThroughPart } from './walkThroughPart.js';
import { WalkThroughArrowUp, WalkThroughArrowDown, WalkThroughPageUp, WalkThroughPageDown } from './walkThroughActions.js';
import { WalkThroughSnippetContentProvider } from '../common/walkThroughContentProvider.js';
-import { EditorWalkThroughAction, EditorWalkThroughInputSerializer } from './editor/editorWalkThrough.js';
+import { EditorWalkThroughInputSerializer } from './editor/editorWalkThrough.js'; // [LevelCode] dropped EditorWalkThroughAction (Editor Playground)
import { Registry } from '../../../../platform/registry/common/platform.js';
import { EditorExtensions, IEditorFactoryRegistry } from '../../../common/editor.js';
import { SyncDescriptor } from '../../../../platform/instantiation/common/descriptors.js';
-import { MenuRegistry, MenuId, registerAction2 } from '../../../../platform/actions/common/actions.js';
import { registerWorkbenchContribution2 } from '../../../common/contributions.js';
import { IEditorPaneRegistry, EditorPaneDescriptor } from '../../../browser/editor.js';
import { KeybindingsRegistry } from '../../../../platform/keybinding/common/keybindingsRegistry.js';
@@ -25,7 +24,7 @@ Registry.as<IEditorPaneRegistry>(EditorExtensions.EditorPane)
),
[new SyncDescriptor(WalkThroughInput)]);
-registerAction2(EditorWalkThroughAction);
+// [LevelCode] Editor Playground action NOT registered — its walkthrough is verbatim Microsoft VS Code content.
Registry.as<IEditorFactoryRegistry>(EditorExtensions.EditorFactory).registerEditorSerializer(EditorWalkThroughInputSerializer.ID, EditorWalkThroughInputSerializer);
@@ -39,11 +38,4 @@ KeybindingsRegistry.registerCommandAndKeybindingRule(WalkThroughPageUp);
KeybindingsRegistry.registerCommandAndKeybindingRule(WalkThroughPageDown);
-MenuRegistry.appendMenuItem(MenuId.MenubarHelpMenu, {
- group: '1_welcome',
- command: {
- id: 'workbench.action.showInteractivePlayground',
- title: localize({ key: 'miPlayground', comment: ['&& denotes a mnemonic'] }, "Editor Playgrou&&nd")
- },
- order: 3
-});
+// [LevelCode] Removed the Help ▸ "Editor Playground" menu item (Microsoft VS Code walkthrough content).
diff --git a/src/vs/base/common/product.ts b/src/vs/base/common/product.ts
index 5a1a2018..7d238537 100644
--- a/src/vs/base/common/product.ts
+++ b/src/vs/base/common/product.ts
@@ -89,6 +89,25 @@ export interface IProductConfiguration {
readonly quality?: string;
readonly commit?: string;
+ /**
+ * [LevelCode] The LevelCode RELEASE version ("0.8.0"), stamped at build time from the git tag.
+ *
+ * Distinct from `version`, which is and must remain the Code-OSS base ("1.126.0") — that is the
+ * value extensions' `engines.vscode` is validated against, so renaming it would reject every
+ * extension requiring ^1.x. Use this for anything a HUMAN reads (update UI, About); use `version`
+ * for compatibility checks. Absent in dev builds, so always fall back to `version`.
+ */
+ readonly levelcodeVersion?: string;
+
+ /**
+ * [LevelCode] When this build's commit was COMMITTED (ISO 8601, git `%cI`), stamped alongside
+ * `levelcodeVersion`. Committer date, not author date: "Released" means when the build's commit
+ * landed, and a cherry-picked or rebased commit's author date can predate the release by weeks.
+ * `date` is the Code-OSS build date and is misleading in release UI — it reflects the upstream base,
+ * not when this LevelCode release shipped.
+ */
+ readonly levelcodeReleaseDate?: string;
+
readonly nameShort: string;
readonly nameLong: string;
diff --git a/src/vs/platform/dialogs/electron-browser/dialog.ts b/src/vs/platform/dialogs/electron-browser/dialog.ts
index ec26804c..766198c2 100644
--- a/src/vs/platform/dialogs/electron-browser/dialog.ts
+++ b/src/vs/platform/dialogs/electron-browser/dialog.ts
@@ -11,19 +11,33 @@ import { IProductService } from '../../product/common/productService.js';
import { process } from '../../../base/parts/sandbox/electron-browser/globals.js';
export function createNativeAboutDialogDetails(productService: IProductService, osProps: IOSProperties): { title: string; details: string; detailsToCopy: string } {
- let version = productService.version;
+ // [LevelCode] Lead with the RELEASE version — that is what a user installed and what the release,
+ // the update feed and the download page all call it. `productService.version` is the Code-OSS base
+ // ("1.126.0") and must stay 1.x for extensions' engines.vscode, so it cannot simply be renamed.
+ // About is a diagnostics surface people paste into bug reports, so keep BOTH: the release version
+ // identifies the build, the base version explains extension-compatibility behaviour. Dev builds
+ // carry no stamp and fall back to showing the base alone.
+ let version = productService.levelcodeVersion ?? productService.version;
if (productService.target) {
version = `${version} (${productService.target} setup)`;
} else if (productService.darwinUniversalAssetId) {
version = `${version} (Universal)`;
}
+ if (productService.levelcodeVersion) {
+ version = `${version} — Code-OSS ${productService.version}`;
+ }
const getDetails = (useAgo: boolean): string => {
return localize({ key: 'aboutDetail', comment: ['Electron, Chromium, Node.js and V8 are product names that need no translation'] },
"Version: {0}\nCommit: {1}\nDate: {2}\nElectron: {3}\nElectronBuildId: {4}\nChromium: {5}\nNode.js: {6}\nV8: {7}\nOS: {8}",
version,
productService.commit || 'Unknown',
- productService.date ? `${productService.date}${useAgo ? ' (' + fromNow(new Date(productService.date), true) + ')' : ''}` : 'Unknown',
+ // [LevelCode] Same reasoning as the version: `date` is the Code-OSS base's build date, reading as a
+ // release date months before the build the user actually installed.
+ (() => {
+ const d = productService.levelcodeReleaseDate ?? productService.date;
+ return d ? `${d}${useAgo ? ' (' + fromNow(new Date(d), true) + ')' : ''}` : 'Unknown';
+ })(),
process.versions['electron'],
process.versions['microsoft-build'],
process.versions['chrome'],
diff --git a/src/vs/workbench/contrib/update/browser/updateTooltip.ts b/src/vs/workbench/contrib/update/browser/updateTooltip.ts
index 85e34cca..3f9b67ba 100644
--- a/src/vs/workbench/contrib/update/browser/updateTooltip.ts
+++ b/src/vs/workbench/contrib/update/browser/updateTooltip.ts
@@ -137,7 +137,11 @@ export class UpdateTooltip extends Disposable {
}
private updateCurrentVersion() {
- const productVersion = this.productService.version;
+ // [LevelCode] Show the RELEASE version ("0.8.0"), never `version` — that is the Code-OSS base
+ // ("1.126.0"), which must stay 1.x for extensions' engines.vscode. Pairing it with a LevelCode
+ // commit made this read as a different product than the one that was installed. Dev builds carry
+ // no stamp, so fall back rather than showing nothing.
+ const productVersion = this.productService.levelcodeVersion ?? this.productService.version;
if (productVersion) {
const currentCommitId = this.productService.commit?.substring(0, 7);
this.currentVersionNode.textContent = currentCommitId
@@ -381,8 +385,11 @@ export class UpdateTooltip extends Disposable {
this.latestVersionNode.parentElement!.style.display = 'none';
}
- // Release date
- const releaseDate = update?.timestamp ?? tryParseDate(this.productService.date);
+ // [LevelCode] Release date: for the running build prefer the LevelCode date — `date` is the Code-OSS
+ // base's build date, so it reported a "Released" months before the release the user installed.
+ const releaseDate = update?.timestamp
+ ?? tryParseDate(this.productService.levelcodeReleaseDate)
+ ?? tryParseDate(this.productService.date);
if (typeof releaseDate === 'number' && releaseDate > 0) {
this.releaseDateNode.textContent = localize('updateTooltip.releasedLabel', "Released {0}", formatDate(releaseDate));
this.releaseDateNode.style.display = '';