feat: Add missing IDE configuration file check

- Ensure that the IDE configuration file exists before initializing the config
This commit is contained in:
bobo.yang 2024-04-11 13:59:03 +08:00
parent 1c80672e5e
commit b7f7b0581a

View File

@ -38,7 +38,7 @@ export class CodeLensManager {
}
private loadConfig(): void {
if (fs.existsSync(this.configFilePath)) {
if (!fs.existsSync(this.configFilePath)) {
this.initializeConfig();
} else {
const data = fs.readFileSync(this.configFilePath, "utf-8");