Skip to main content

migrate_old_input_state

Function migrate_old_input_state 

Source
pub fn migrate_old_input_state(state: &mut Value)
Expand description

Migrate old-format inputState fields from top-level to a nested inputState object. VS Code version 3 expects inputState as a sub-object with keys attachments, mode, inputText, selections, contrib.

Old format (pre-v3): { "attachments": [...], "mode": {...}, "inputText": "...", ... } New format (v3): { "inputState": { "attachments": [...], "mode": {...}, ... } }