File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
apps/vscode-extension/src/providers Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import {
2020 Logger ,
2121 Notifications ,
2222} from '../services' ;
23- import { General } from '../constants' ;
2423import {
2524 checkSnippetArgs ,
2625 getDemoApiData ,
@@ -379,6 +378,8 @@ export class ConfigEditorProvider implements CustomTextEditorProvider {
379378 }
380379
381380 // Convert to ActConfig (version 3) if version is 3, otherwise keep as DemoConfig
381+ // Reason: the config is downgraded to the DemoConfig to keep supporting the older schema in the editor,
382+ // but we want to save in the latest ActConfig format if the config is already in that format (version 3)
382383 const configToSave = config . version === 3 ? demoConfigToActConfig ( config ) : config ;
383384
384385 const edit = new WorkspaceEdit ( ) ;
You can’t perform that action at this time.
0 commit comments