@@ -717,6 +717,8 @@ or removing a command fails until the table changes in the same commit.
717717| `runConfig.editorForm` | Describe the editor fields and current values of a built-in run configuration |
718718| `runConfig.saveConfiguration` | Validate an editor form's values and return field errors or the file changes that save it |
719719| `runConfig.deleteConfiguration` | Return the file changes that delete a saved user configuration |
720+ | `runConfig.copyConfiguration` | Return the file changes that save a copy of any configuration under a new name |
721+ | `runConfig.arrange` | Return the file changes that move configurations between folders and save the list order |
720722| `runConfig.beforeLaunch` | Expand the built-in process runs a configuration starts first, and say whether the user must confirm them |
721723| `runConfig.createLaunchPlan` | Project one effective configuration into a platform-neutral Run or Debug plan |
722724| `runConfig.providerLaunchInputs` | Resolve user choices for a provider-owned launch |
@@ -3965,6 +3967,47 @@ extension namespaces the editor does not show are kept.
39653967returns `{changes}` that remove the saved `user:` configuration from every layer.
39663968Generated entries cannot be deleted.
39673969
3970+ `runConfig.copyConfiguration` accepts `{root, configurationId, name, plugins?}`
3971+ and replies `{id, changes}`: the copy's new `user:` ID and the changes that
3972+ save it. The copy is the resolved configuration with every saved choice, its
3973+ folder included, under the new ID and `name` (trimmed, 1 to 256 bytes). It is
3974+ saved in the project layer when the original is a user configuration defined
3975+ there without a local override, and in the local layer otherwise, so local
3976+ choices never reach the team. A saved `build.provider` run supersedes the
3977+ generated run with the same selector, so copying a generated one also saves the
3978+ original whole in the local layer under its own ID; both stay listed, and the
3979+ original stops following later name changes of the build model.
3980+
3981+ #### Folders and order
3982+
3983+ A configuration may name a `folder`, the folder it is listed in within its
3984+ kind (IntelliJ IDEA's `folderName`): 1 to 256 bytes, without surrounding
3985+ whitespace or control characters. A folder is display metadata saved in the
3986+ configuration, so a project configuration carries its folder to the team, and
3987+ a local entry `{id, folder}` overrides it like any other key; launching
3988+ ignores it. An invalid folder makes the configuration unavailable
3989+ (`invalidConfiguration`).
3990+
3991+ The order of the list and whether it is sorted by name are this machine's
3992+ choice, saved only in the local Lithe document under `arrangement:
3993+ {sortAlphabetically?: boolean, order?: string[]}`. The default sorts by name,
3994+ ignoring case. `runConfig.resolve` returns the configurations in the order the
3995+ list shows them and adds `sortAlphabetically`: by name when sorted, otherwise in
3996+ the saved `order`, with the configurations it does not name after it by name;
3997+ IDs that no longer resolve are skipped. A malformed `arrangement` is ignored
3998+ and reported as the `invalidArrangement` diagnostic.
3999+
4000+ `runConfig.arrange` accepts `{root, folders?, order?, sortAlphabetically?,
4001+ plugins?}` and returns `{changes}`. `folders` maps configuration IDs to the
4002+ folder each moves to, or `null` to take it out of its folder; each ID must
4003+ resolve. The folder is written to the layer that defines the configuration:
4004+ the project layer for a configuration saved there, otherwise the local layer,
4005+ where a generated configuration gets a sparse `{id, folder}` entry, and the
4006+ other layer's folder for it is removed. `order` replaces the whole saved order
4007+ (at most 4,096 IDs, repeats dropped) and `sortAlphabetically` the sort choice;
4008+ an omitted field keeps the saved value, and saving the defaults removes
4009+ `arrangement`. Nothing to change returns no changes.
4010+
39684011#### Steps before launch
39694012
39704013A configuration of any provider may name `beforeLaunch`, an ordered list of at
0 commit comments