2019-01-14 20:58:34 +00:00
|
|
|
diff --git a/src/vs/workbench/parts/welcome/walkThrough/node/walkThroughContentProvider.ts b/src/vs/workbench/parts/welcome/walkThrough/node/walkThroughContentProvider.ts
|
2019-01-18 21:46:40 +00:00
|
|
|
index 7b4e8721ac..8f26dc2f28 100644
|
2019-01-14 20:58:34 +00:00
|
|
|
--- a/src/vs/workbench/parts/welcome/walkThrough/node/walkThroughContentProvider.ts
|
|
|
|
+++ b/src/vs/workbench/parts/welcome/walkThrough/node/walkThroughContentProvider.ts
|
2019-01-18 21:46:40 +00:00
|
|
|
@@ -28,7 +28,9 @@ export class WalkThroughContentProvider implements ITextModelContentProvider, IW
|
|
|
|
public provideTextContent(resource: URI): Thenable<ITextModel> {
|
2019-01-14 20:58:34 +00:00
|
|
|
const query = resource.query ? JSON.parse(resource.query) : {};
|
2019-01-18 21:46:40 +00:00
|
|
|
const content: Thenable<string | ITextBufferFactory> = (query.moduleId ? new Promise<string>((resolve, reject) => {
|
2019-01-14 20:58:34 +00:00
|
|
|
- require([query.moduleId], content => {
|
2019-01-18 21:46:40 +00:00
|
|
|
+ // Webpack needs this to be static or it can't include it.
|
2019-01-14 20:58:34 +00:00
|
|
|
+ import("vs/workbench/parts/welcome/page/electron-browser/vs_code_welcome_page").then((content) => {
|
|
|
|
+ // require([query.moduleId], content => {
|
2019-01-18 21:46:40 +00:00
|
|
|
try {
|
|
|
|
resolve(content.default());
|
|
|
|
} catch (err) {
|