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
In #147215, the user called code --install-extension --force matklad.rust-analyzer.
Correct would have been to have matklad.rust-analyzer right after --install-extension
This change adds a warning when a string (or string[]) command line option is invoked without an argument.
Options that want to allow the empty argument can override the check by specifying allowEmptyValue in the option description.
Activity
Warn when using an empty argument. Fixes #150714
Warn when using an empty argument. Fixes #150714 (#150715)
aeschli commentedon May 31, 2022
To verify:
code-insiders --install-extensionshould issue a warningcode-insiders --enable-proposed-apishould not issue a warningDesktop CLI:
String options that require an argument:
waitMarkerFilePath, locale, user-data-dir, extensions-dir, extensions-download-dir, builtin-extensions-dir, category, install-extension, uninstall-extension, log, prof-append-timers, prof-startup-prefix, disable-extension, sync, max-memory, folder-uri, file-uri, locate-extension, extensionDevelopmentPath, extensionDevelopmentKind, extensionTestsPath, extensionEnvironment, debugId, export-default-configuration, install-source, crash-reporter-directory, crash-reporter-id, install-builtin-extension, trace-category-filter, trace-options, logsPath, proxy-server, proxy-bypass-list, proxy-pac-url, js-flags, force-device-scale-factor, log-net-log, vmodule
String options that allow empty argument:
enable-proposed-api, inspect-extensions, inspect-brk-extensions, remote, inspect-ptyhost, inspect-brk-ptyhost, inspect-search, inspect-brk-search, inspect, inspect-brk
Server CLI:
String options that require argument:
host, port, pick-port, socket-path, connection-token, connection-token-file, server-data-dir, telemetry-level, user-data-dir, file-watcher-polling, log, logsPath, folder, workspace, default-folder, default-workspace, github-auth, extensions-dir, extensions-download-dir, builtin-extensions-dir, install-extension, install-builtin-extension, uninstall-extension, locate-extension, category, compatibility
String options that allow empty argument:
(none)