120 private headerAddBlankLineAfterMultiline:
boolean = CONST.headerAddBlankLineAfterMultiline;
162 private headerLogo:
string[] = CONST.defaultHeaderLogo;
185 private maxScanLength: number = CONST.defaultMaxScanLength;
195 private randomLogo:
boolean = CONST.randomLogo;
202 private workspaceName:
string | undefined = undefined;
248 async refreshVariables(): Promise<void> {
249 const config =
vscode.workspace.getConfiguration(CONST.moduleName);
251 this.
extensionName = config.get<
string>(
"extensionName", CONST.extensionName);
252 this.
projectCopyright = config.get<
string>(
"projectCopyright", CONST.projectCopyright);
255 this.
headerCommentSpacing = config.get<
string>(
"headerCommentSpacing", CONST.headerCommentSpacing);
256 this.
telegraphBegin = config.get<
string>(
"telegraphBegin", CONST.telegraphBegin);
257 this.
telegraphEnd = config.get<
string>(
"telegraphEnd", CONST.telegraphEnd);
258 this.
telegraphBlockStop = config.get<
string>(
"telegraphBlockStop", CONST.telegraphBlockStop);
260 this.headerAddBlankLineAfterMultiline = config.get<
boolean>(
"headerAddBlankLineAfterMultiline", CONST.headerAddBlankLineAfterMultiline);
262 this.
headerLogoKey = config.get<
string>(
"headerLogoKey", CONST.headerLogoKey);
263 this.
headerProjectKey = config.get<
string>(
"headerProjectKey", CONST.headerProjectKey);
264 this.
headerFileKey = config.get<
string>(
"headerFileKey", CONST.headerFileKey);
265 this.
headerCreationDateKey = config.get<
string>(
"headerCreationDateKey", CONST.headerCreationDateKey);
266 this.
headerLastModifiedKey = config.get<
string>(
"headerLastModifiedKey", CONST.headerLastModifiedKey);
267 this.
headerDescriptionKey = config.get<
string>(
"headerDescriptionKey", CONST.headerDescriptionKey);
268 this.
headerCopyrightKey = config.get<
string>(
"headerCopyrightKey", CONST.headerCopyrightKey);
269 this.
headerTagKey = config.get<
string>(
"headerTagKey", CONST.headerTagKey);
270 this.
headerPurposeKey = config.get<
string>(
"headerPurposeKey", CONST.headerPurposeKey);
278 this.headerLogo = config.get<
string[]>(
"headerLogo", CONST.defaultHeaderLogo);
279 this.
headerLogoVersions = config.get<Record<string, string[]>>(
"headerLogoVersions", CONST.headerLogoVersions);
280 this.
useHeaderLogoVersion = config.get<
boolean>(
"useHeaderLogoVersion", CONST.useHeaderLogoVersion);
282 this.maxScanLength = config.get<number>(
"maxScanLength", CONST.defaultMaxScanLength);
283 this.
enableDebug = config.get<
boolean>(
"enableDebug", CONST.enableDebug);
284 this.
refreshOnSave = config.get<
boolean>(
"refreshOnSave", CONST.refreshOnSave);
286 this.
randomLogo = config.get<
boolean>(
"randomLogo", CONST.randomLogo);
287 this.
extensionIgnore = config.get<
string[]>(
"extensionIgnore", CONST.extensionIgnore);
289 this.
projectDescription = config.get<
string>(
"projectDescription", CONST.projectDescription);
290 this.
languagePrepend = config.get<Record<string, string>>(
"languagePrepend", CONST.languagePrepend);
291 this.
languageAppend = config.get<Record<string, string>>(
"languageAppend", CONST.languageAppend);
292 this.
languageSingleLineComment = config.get<Record<string, string>>(
"languageSingleLineComment", CONST.languageSingleLineComment);
293 this.
languageMultiLineComment = config.get<Record<string, string[]>>(
"languageMultiLineComment", CONST.languageMultiLineComment);
317 get(key: string): any {
319 return (
this as any)[key] ?? (CONST as any)[key];
331 setWorkspaceName(workpaceName:
string | undefined = undefined):
void {
332 this.workspaceName = workpaceName;
343 getWorkspaceName():
string | undefined {
344 return this.workspaceName;