ONE-vscode icon indicating copy to clipboard operation
ONE-vscode copied to clipboard

[OneExplorer] Add more APIs to OneStorage

Open dayo09 opened this issue 2 years ago • 0 comments

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

dayo09 avatar Nov 01 '22 02:11 dayo09