Skip to content
Permalink
Browse files Browse the repository at this point in the history
Change configuration scope for several settings, disallowing setting …
…them on the workspace level

This was a security concern, as a malicious workspace could hijack keystrokes or force you to open an arbitrary program (instead of neovim, as intended).
  • Loading branch information
J-Fields committed Mar 18, 2021
1 parent 666ea2f commit 939df0e
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions package.json
Expand Up @@ -454,19 +454,23 @@
},
"vim.normalModeKeyBindings": {
"type": "array",
"markdownDescription": "Remapped keys in Normal mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details."
"markdownDescription": "Remapped keys in Normal mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details.",
"scope": "application"
},
"vim.normalModeKeyBindingsNonRecursive": {
"type": "array",
"markdownDescription": "Non-recursive remapped keys in Normal mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details."
"markdownDescription": "Non-recursive remapped keys in Normal mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details.",
"scope": "application"
},
"vim.operatorPendingModeKeyBindings": {
"type": "array",
"markdownDescription": "Remapped keys in OperatorPending mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details."
"markdownDescription": "Remapped keys in OperatorPending mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details.",
"scope": "application"
},
"vim.operatorPendingModeKeyBindingsNonRecursive": {
"type": "array",
"markdownDescription": "Non-recursive remapped keys in OperatorPending mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details."
"markdownDescription": "Non-recursive remapped keys in OperatorPending mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details.",
"scope": "application"
},
"vim.useCtrlKeys": {
"type": "boolean",
Expand Down Expand Up @@ -518,27 +522,33 @@
},
"vim.insertModeKeyBindings": {
"type": "array",
"markdownDescription": "Remapped keys in Insert mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details."
"markdownDescription": "Remapped keys in Insert mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details.",
"scope": "application"
},
"vim.insertModeKeyBindingsNonRecursive": {
"type": "array",
"markdownDescription": "Non-recursive keybinding overrides to use for Insert mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details."
"markdownDescription": "Non-recursive keybinding overrides to use for Insert mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details.",
"scope": "application"
},
"vim.visualModeKeyBindings": {
"type": "array",
"markdownDescription": "Remapped keys in Visual mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details."
"markdownDescription": "Remapped keys in Visual mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details.",
"scope": "application"
},
"vim.visualModeKeyBindingsNonRecursive": {
"type": "array",
"markdownDescription": "Non-recursive keybinding overrides to use for Visual mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details."
"markdownDescription": "Non-recursive keybinding overrides to use for Visual mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details.",
"scope": "application"
},
"vim.commandLineModeKeyBindings": {
"type": "array",
"markdownDescription": "Remapped keys in command line mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details."
"markdownDescription": "Remapped keys in command line mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details.",
"scope": "application"
},
"vim.commandLineModeKeyBindingsNonRecursive": {
"type": "array",
"markdownDescription": "Non-recursive keybinding overrides to use for command line mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details."
"markdownDescription": "Non-recursive keybinding overrides to use for command line mode. Allows mapping to Vim commands or VS Code actions. See [README](https://github.com/VSCodeVim/Vim/#key-remapping) for details.",
"scope": "application"
},
"vim.textwidth": {
"type": "number",
Expand Down Expand Up @@ -904,7 +914,7 @@
"type": "string",
"markdownDescription": "Path to Neovim executable. For example, `/usr/bin/nvim`, or `C:\\Program Files\\Neovim\\bin\\nvim.exe`.",
"default": "",
"scope": "machine-overridable"
"scope": "machine"
},
"vim.neovimUseConfigFile": {
"type": "boolean",
Expand All @@ -915,7 +925,7 @@
"type": "string",
"markdownDescription": "Path to Neovim configuration file. `vim.neovimUseConfigFile` must be enabled. If path is left blank, Neovim will use its default config path, i.e. `~/.config/nvim/init.vim` or 'C:\\Users\\USERNAME\\AppData\\Local\\nvim\\init.vim'.",
"default": "",
"scope": "machine-overridable"
"scope": "machine"
},
"vim.vimrc.enable": {
"type": "boolean",
Expand Down

0 comments on commit 939df0e

Please sign in to comment.