Merge pull request #483 from devchat-ai/fix_ideconfig_miss
feat: Ensure IDE Configuration File Existence Before Initialization
This commit is contained in:
commit
e30cec3a04
@ -38,7 +38,7 @@ export class CodeLensManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private loadConfig(): void {
|
private loadConfig(): void {
|
||||||
if (fs.existsSync(this.configFilePath)) {
|
if (!fs.existsSync(this.configFilePath)) {
|
||||||
this.initializeConfig();
|
this.initializeConfig();
|
||||||
} else {
|
} else {
|
||||||
const data = fs.readFileSync(this.configFilePath, "utf-8");
|
const data = fs.readFileSync(this.configFilePath, "utf-8");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user