()
| 23 | } |
| 24 | |
| 25 | async function copyConfigSchema() { |
| 26 | process.chdir(path.join(continueDir, "extensions", "vscode")); |
| 27 | // Modify and copy for .continuerc.json |
| 28 | const schema = JSON.parse(fs.readFileSync("config_schema.json", "utf8")); |
| 29 | schema.$defs.SerializedContinueConfig.properties.mergeBehavior = { |
| 30 | type: "string", |
| 31 | enum: ["merge", "overwrite"], |
| 32 | default: "merge", |
| 33 | title: "Merge behavior", |
| 34 | markdownDescription: |
| 35 | "If set to 'merge', .continuerc.json will be applied on top of config.json (arrays and objects are merged). If set to 'overwrite', then every top-level property of .continuerc.json will overwrite that property from config.json.", |
| 36 | "x-intellij-html-description": |
| 37 | "<p>If set to <code>merge</code>, <code>.continuerc.json</code> will be applied on top of <code>config.json</code> (arrays and objects are merged). If set to <code>overwrite</code>, then every top-level property of <code>.continuerc.json</code> will overwrite that property from <code>config.json</code>.</p>", |
| 38 | }; |
| 39 | fs.writeFileSync("continue_rc_schema.json", JSON.stringify(schema, null, 2)); |
| 40 | |
| 41 | // Copy config schemas to intellij |
| 42 | fs.copyFileSync( |
| 43 | "config_schema.json", |
| 44 | path.join( |
| 45 | "..", |
| 46 | "intellij", |
| 47 | "src", |
| 48 | "main", |
| 49 | "resources", |
| 50 | "config_schema.json", |
| 51 | ), |
| 52 | ); |
| 53 | fs.copyFileSync( |
| 54 | "continue_rc_schema.json", |
| 55 | path.join( |
| 56 | "..", |
| 57 | "intellij", |
| 58 | "src", |
| 59 | "main", |
| 60 | "resources", |
| 61 | "continue_rc_schema.json", |
| 62 | ), |
| 63 | ); |
| 64 | } |
| 65 | |
| 66 | process.on("message", (msg) => { |
| 67 | const { operation } = msg.payload; |
no outgoing calls
no test coverage detected