Skip to content

Commit e5aca89

Browse files
authored
Merge pull request #1170 from microsoft/benibenj/wicked-goose
Improve error message for missing entrypoints
2 parents eb01a55 + 3971f0a commit e5aca89

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/package.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,9 +1116,10 @@ class LaunchEntryPointProcessor extends BaseProcessor {
11161116

11171117
if (missingEntryPoints.length > 0) {
11181118
const files: string = missingEntryPoints.join(',\n ');
1119-
throw new Error(
1120-
`Extension entrypoint(s) missing. Make sure these files exist and aren't ignored by '.vscodeignore':\n ${files}`
1121-
);
1119+
const hint = this.manifest.files && this.manifest.files.length > 0
1120+
? `Make sure these files exist and are included by your "files" field in 'package.json'`
1121+
: `Make sure these files exist and aren't ignored by '.vscodeignore'`;
1122+
throw new Error(`Extension entrypoint(s) missing. ${hint}:\n ${files}`);
11221123
}
11231124
}
11241125
}

0 commit comments

Comments
 (0)