ONE-vscode
ONE-vscode copied to clipboard
[OneExplorer] Add more APIs to OneStorage
What?
Let's add more APIs to OneStorage.
Currently, there are only
- getCfgs
- getCfgObjs
- getNode
Let's add
- addCfg
- addBaseModel
- addProduct
- deleteCfg
- deleteBaseModel
- deleteProduct
- replaceCfg (rename)
- replaceBaseModel (rename)
- replaceProduct (rename)
Why?
To perform more specific actions triggered by workspace changes.
Currently, when a file is created or changed, it resets all the OneStorage. It not only delays the whole extension's execution time, but also undermines User eXperience by making the view flicker or fold the collapsible states of the tree items.
Helps #1436