Skip to content

Commit

Permalink
chore: add comment for caution
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxuanzhangsfdx committed Aug 13, 2024
1 parent 92652ef commit 6b6117a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/generators/baseGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ export abstract class BaseGenerator<
* @param partialPath the relative path from the templates folder to templates root folder.
*/
public sourceRootWithPartialPath(partialPath: string): void {
/**
* CAUTION:
* PLEASE make sure the relative path from this function to /templates does NOT change!
* The core VSCode extension bundles /templates separately, so the change of the relative path will make bundling fail!
* Reach out to [email protected] if unsure.
*/
this.builtInTemplatesRootPath = path.join(
__dirname,
'..',
Expand Down

0 comments on commit 6b6117a

Please sign in to comment.