You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing this extension and defining one macro, my keybindings list shows that one macro, but it also shows a second macro called macros.inspect. Invoking this just logs a JavaScript error.
Upon inspection, it appears that the vscode.WorkspaceConfiguration object returned from vscode.workspace.getConfiguration() includes this extra inspect key, and experimentally it appears that inspect is an undocumented key that can be used to get information about settings in this configuration (in particular, it appears to let you extract default vs global vs workspace settings).
In any case, right now the code just hardcodes several keys to ignore
and really what it should do is skip the hardcoding and just invoke settings.get(name) for each key, as that appears to handle this for you. This will also fix the bug where a macro named "get" will just be silently ignored, as settings.get(name) does the right thing even if the name is one of the functions (such as "get" or "inspect").
The text was updated successfully, but these errors were encountered:
After installing this extension and defining one macro, my keybindings list shows that one macro, but it also shows a second macro called
macros.inspect
. Invoking this just logs a JavaScript error.Upon inspection, it appears that the
vscode.WorkspaceConfiguration
object returned fromvscode.workspace.getConfiguration()
includes this extrainspect
key, and experimentally it appears thatinspect
is an undocumented key that can be used to get information about settings in this configuration (in particular, it appears to let you extract default vs global vs workspace settings).In any case, right now the code just hardcodes several keys to ignore
macros/extension.js
Lines 23 to 25 in 96b0d7b
and really what it should do is skip the hardcoding and just invoke
settings.get(name)
for each key, as that appears to handle this for you. This will also fix the bug where a macro named "get" will just be silently ignored, assettings.get(name)
does the right thing even if the name is one of the functions (such as"get"
or"inspect"
).The text was updated successfully, but these errors were encountered: