Skip to content

Commit 5d0e569

Browse files
committed
refactor: remove constructor visibility in ModuleParser and update error message in ConfigurationManager
#1 (review)
1 parent a22e6eb commit 5d0e569

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/parsers/moduleParser.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export function getAllAvailableConfigurations(): ModuleInterface[] {
4949
*/
5050
export class ModuleParser implements Parser {
5151
private static instance: ModuleParser;
52-
private constructor() {}
5352

5453
static getInstance(): ModuleParser {
5554
if (!ModuleParser.instance) {
@@ -102,7 +101,6 @@ export const moduleParser = ModuleParser.getInstance();
102101
* Extract code lenses from matched modules and parsed sections.
103102
* These will be shown in the editor as clickable links to documentation.
104103
*/
105-
// For testing only
106104
export function extractCodeLenses(
107105
source: string,
108106
matchedModules: ModuleInterface[]

src/utils/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class ConfigurationManager {
5252
case "enableHoverInfo":
5353
return config.get("enableHoverInfo", false) as AshStudioConfig[T];
5454
default:
55-
throw new Error(`Unknown configuration key: ${String(key)}`);
55+
throw new Error(`Unknown configuration key: ${key}`);
5656
}
5757
}
5858

0 commit comments

Comments
 (0)