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