rioj7 / command-variable

Visual Studio Code extension for variable substitution via ${command:commandID}
51 stars 10 forks source link

Add object and pre-processing support for pickStringRemember #53

Closed tcm0116 closed 1 year ago

tcm0116 commented 1 year ago

This PR addresses https://github.com/rioj7/command-variable/issues/52 by adding the ability to specify if a value in a pickStringRemember option should be pre-processed before being displayed in the pick list. This is accomplished by allowing the options array to accept and object that specifies the value, label, description, and preProcess options.

The README.md has been updated to include documentation on the object that can be provided as an option to pickStringRemember and several examples have been updated to utilize the new mechanism.

rioj7 commented 1 year ago

@tcm0116 v1.48 contains a slightly different logic