MCPcopy Create free account
hub / github.com/VemtoOrg/vemto2 / fixCodeGenerationSettings

Method fixCodeGenerationSettings

src/common/models/Project.ts:167–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 }
166
167 fixCodeGenerationSettings() {
168 if (!this.codeGenerationSettings) return
169
170 const defaultCodeGenerationSettings = this.getDefaultCodeGenerationSettings()
171
172 Object.keys(defaultCodeGenerationSettings).forEach((key) => {
173 if (typeof this.codeGenerationSettings[key] === "undefined") {
174 this.codeGenerationSettings[key] = defaultCodeGenerationSettings[key]
175 }
176 })
177
178 this.save()
179 }
180
181 getDefaultCodeGenerationSettings(): ProjectCodeGenerationSettings {
182 return {

Callers 2

Project.test.tsFile · 0.80

Tested by

no test coverage detected