Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts')
-rw-r--r--src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts
index dcbddfc4097..210f171d0a8 100644
--- a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts
+++ b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts
@@ -364,28 +364,14 @@ export class WalkthroughsService extends Disposable implements IWalkthroughsServ
};
}
- // Legacy media config (only in use by remote-wsl at the moment)
+ // Throw error for unknown walkthrough format
else {
- const legacyMedia = step.media as unknown as { path: string; altText: string };
- if (typeof legacyMedia.path === 'string' && legacyMedia.path.endsWith('.md')) {
- media = {
- type: 'markdown',
- path: convertExtensionPathToFileURI(legacyMedia.path),
- base: convertExtensionPathToFileURI(dirname(legacyMedia.path)),
- root: FileAccess.asFileUri(extension.extensionLocation),
- };
- }
- else {
- const altText = legacyMedia.altText;
- if (altText === undefined) {
- console.error('Walkthrough item:', fullyQualifiedID, 'is missing altText for its media element.');
- }
- media = { type: 'image', altText, path: convertExtensionRelativePathsToBrowserURIs(legacyMedia.path) };
- }
+ throw new Error('Unknown walkthrough format detected for ' + fullyQualifiedID);
}
return ({
- description, media,
+ description,
+ media,
completionEvents: step.completionEvents?.filter(x => typeof x === 'string') ?? [],
id: fullyQualifiedID,
title: step.title,