Merge pull request #483 from devchat-ai/fix_ideconfig_miss

feat: Ensure IDE Configuration File Existence Before Initialization
This commit is contained in:
boob.yang 2024-04-11 14:01:26 +08:00 committed by GitHub
commit e30cec3a04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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");