pickStringRemember: json templates (options, optionGroups) can contain variables
- node v22.12 ; npm v10.9; rollup v2.79
${index}variable, rememberstore and__keynames
remember: 'forget' a key
pickStringRemember: optionGroups from file (json format) or its options
- JSON files: allow comments and trailing commas
README:remembercommand: prompt-only-once exampleREADME:fileContentjson property with illegal identifier chars: use string-index method
pickStringRemember: save the picked items of a group in a separate remember key.
pickStringRemember:dependsOnfor groups
pickStringRemember: multi pick: if a picked value is an object its key-value pairs are put in the remember storage.config.expression: if value is a string do notJSON.stringify()
pickStringRemember: if a picked value is an object you can override the key used to pick a value from the remember storage: use__keyin the objectpickStringRemember: propertyjoinByKey: the picked value objects are joined by key using the separator into a single object.
remember:defaultproperty in case key is not foundpickStringRemember:pickeditem property of option, initial picked item
pickStringRemember: options from file: whenpattern: also setdescriptionwhenoptionnot defined, like v1.64
pickStringRemember: options from file: fix bug with handlingjsoninpatternobject
pickStringRemember: options from file: define a 'split' regex/flags
pickStringRemember: options from file: use multi line regex, capture possibledescriptionanddetail
pickStringRemember:addLabelToTopreorder the list and put a particular label on top (previous pick?)
transform:saveToFile- file path property - save result to a file and return the file pathtransform:empty- store in remember store or file but return empty sting
pickFile: select multiple filesopenDialog: select multiple filesjs.expression: alias forconfig.expression${jsExpression:name}${index},${index:name}: set when transforming multiple selected file URIs.
file.content: result of the expression/value anddefaultproperty can be the empty string
config.expression:configVariableis optional, evaluate JS expression without a config valueREADME: example variables in JS expression
${workspaceFolder:name:nomsg}: option to suppress error message
openDialog: get file path from the OS File/Directory open dialogsaveDialog: get file path from the OS File save dialog${openDialog}variable${saveDialog}variable
- README:
|is interpreted by Marketplace as a table character inpickFilevalueTransform
variableSubstitution: pass variable result to 1 or more filters (regexEscape,upperCase,lowerCase), use|
variableSubstitution:|is not allowed in a property separator in a variable
remember: when storing you can manipulate (append, prepend) an existing remembered value
variableSubstitution: ApplyvariableSubstitutionto the text until it no longer changes
pickFile:"display": "transform", usetransformcommand to manipilatevalue,labelanddescriptionof QuickPick list items
${result}variable
${command:name}: propertycommandcan contain variables
extension.commandvariable.getClipboard: get the content of the clipboard
file.content,config.expression:"debug": true, show debug log messages in Developer Tools Console
inTerminal:"when": "file.exists path"
pickFile:"display": "relativePath", and it is now the default
- README update for
${configExpression:name}:configVariablemust contain asectionpart (at least 1.) :sectionX.configY
file.content: fix error message if you escape a UI element due to variables, pass the escape forward
commandvariable.remember.persistent.file: (setting) persistent storage forrememberin local file system
promptStringRemember: on next call, with given key, use remembered/previous value as default
pickStringRemember: read options from a JSON file
pickStringRemember: multi pick -dependsOn: perform group validation based on picked items, filter picked items in output based on other picked items
pickStringRemember: remember previous multi pick items persistent (global or workspace)
pickStringRemember: multi pick items and remember previous multi pickpickStringRemember: create (named) item groups with optionalminCountandmaxCountconstraint
transformonly perform variable substitution onreplacewhenfindis found intext
pickStringRemember: options can be an object, variables can be shown resolved in pick list${command:name}: variable substitution inargsof command
pickFileandremember: transform the result, use part of the picked file pathpickFile: propertyemptyto return empty string, silent pick, use pick result inremembercommand/variabletransform: apply a sequence of find-replace operations
transform: use of variables allowed in all properties
transform: use of variables allowed in all properties
pickFile: use of variables allowed infromFolderfilepaths
pickFile:acceptIfOneFileto automatically accept the file if pickList has 1 entry
pickFile: transform label forfromFolderpickList if path is too long
- variables :
${env:name},${pathSeparator},${userHome} file.content: extract an expression value from a YAML file
promptStringRemember: allow to escape when a default is set, show default in inputbox
extension.commandvariable.number: from range of numbers - sequence of numbers with step or random numberremembercommand and variable can retrieve last value of namednumber:keyformat isnumber-name
- README: mark
pickStringRemember,promptStringRememberandrememberas Web commands
${workspaceFolderBasename}keyofremembercommand can have variables
transformstores the result for a given key{transform:name}transform command as variablecheckEscapedUIfor compound task/launch
extension.commandvariable.workspace.folderBasename: basename of workspace root of current fileextension.commandvariable.workspace.folder: workspace root of current file
pickStringRememberremember transformed value or not${remember}remember variable can have a named argument, so you can also store values- deprecation messages for
rememberPick(variable and command) (once per session)
README: prevent KaTex Markdown to recognize a math expression
pickStringRemembererror "text.replaceis not a function" when using multiple values to store.
pickFilepropertyfromFolderhas afixedoption (no picklist)
pickStringRememberin therememberstorage thevaluestring after variable substitution is stored.- if you escape a UI element in a variable the result of the variable substitution will be
undefined
pickFilecan now pick directorypickStringRemembervalues may contain variables
${workspaceFolder}also works if current editor is not part of a workspace
commandvariable.pickStringRememberread options from a file
extension.commandvariable.setClipboardset the content of the clipboard
- if VSC
${command}variable is used in launch config string the launch config is passed as argument, add workaround/check
- variable
${command}in argument strings
workspace.folderPosixworkspace.folderNUpworkspace.folderNUpPosix- add
CHANGELOG.md
workspace.workspaceFolderPosix
config.expression- variable
${configExpression:name}
file.relativeFileDotsfile.relativeFileDotsNoExtension
- web extension supports more commands
- web extension supports
datecommands (issue #25)
file.contentpropertieskeyandjsoncan contain variablesremembercan store key-value pair(s)rememberstore has a default content for keyempty, an empty string
- variable
${fileContent:name}(also for key-value and json property) - command
remember
rememberPick
pickFilecan remember the picked file by key ("keyRemember")
pickFilecan be used in a variable:${pickFile:name}pickFilehas propertydescription
pickStringRemembercan store multiple values with 1 pick
promptStringRemembercommand and variable
pickStringRemembercan be used in a variable:${pickStringRemember:name}rememberPickcan be used in a variable:${rememberPick:key}
inTerminal: type result of command in the terminal
fileAsKey: debug log (@debug)string.replaceAll()is not supported on VSC remote
pickStringRemembercan now also work with[label,value]tuples
fileAsKey: get file path from command (@useCommand)fileAsKey: set default value if no key matches (@default)
- update uuid.js to v4.2.8 and allow different output formats
- VSCode Server (Remote SSH) does not support
??and?.
pickFile: can be limited to a Workspace folder or any other folderpickFile: change how the file paths are displayedpickFile: can ask for a path via additional entry
pickFile: can return an emty string via additional entry
- In Multi Root Workspace you need to name the workspace in certain cases. In the variable or arguments.
${workspaceFolder}and${workspaceFolder:name}now also work if no file currently open.- everywhere a variable is allowed now all variables are allowed. (not all are usefull everywhere)
- process
${selectedText}first so selected text could contain variable descriptions (maybe useful to somebody).