mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Fixes #180 Changes from using `vscode` to `@types/vscode` for the majority of extension samples. The `@types/vscode` package is much smaller and does not pull in any dependencies. Other changes: - Remove so empty test files - Bump engine versions to match @types/vscode versions - Use `npm run compile` for most `vscode:prepublish` scripts
79 lines
1.5 KiB
JSON
79 lines
1.5 KiB
JSON
{
|
|
"name": "vim",
|
|
"displayName": "vim",
|
|
"description": "vim sample extension",
|
|
"version": "0.0.1",
|
|
"publisher": "vscode-samples",
|
|
"engines": {
|
|
"vscode": "^1.32.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"activationEvents": [
|
|
"*"
|
|
],
|
|
"main": "./out/extension.js",
|
|
"contributes": {
|
|
"keybindings": [
|
|
{
|
|
"command": "vim.goToNormalMode",
|
|
"key": "escape",
|
|
"when": "editorTextFocus && !vim.inNormalMode"
|
|
},
|
|
{
|
|
"command": "vim.clearInput",
|
|
"key": "escape",
|
|
"when": "editorTextFocus && vim.hasInput"
|
|
},
|
|
{
|
|
"command": "redo",
|
|
"key": "ctrl+r",
|
|
"mac": "cmd+r",
|
|
"when": "editorTextFocus"
|
|
},
|
|
{
|
|
"command": "e",
|
|
"key": "ctrl+e",
|
|
"when": "editorTextFocus && vim.inNormalMode"
|
|
},
|
|
{
|
|
"command": "d",
|
|
"key": "ctrl+d",
|
|
"when": "editorTextFocus && vim.inNormalMode"
|
|
},
|
|
{
|
|
"command": "f",
|
|
"key": "ctrl+f",
|
|
"when": "editorTextFocus && vim.inNormalMode"
|
|
},
|
|
{
|
|
"command": "y",
|
|
"key": "ctrl+y",
|
|
"when": "editorTextFocus && vim.inNormalMode"
|
|
},
|
|
{
|
|
"command": "u",
|
|
"key": "ctrl+u",
|
|
"when": "editorTextFocus && vim.inNormalMode"
|
|
},
|
|
{
|
|
"command": "b",
|
|
"key": "ctrl+b",
|
|
"when": "editorTextFocus && vim.inNormalMode"
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "tsc -p ./",
|
|
"watch": "tsc -watch -p ./"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "8.x.x",
|
|
"tslint": "^5.11.0",
|
|
"typescript": "^2.9.2",
|
|
"@types/vscode": "^1.32.0"
|
|
}
|
|
}
|