-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
125 lines (125 loc) · 5.14 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"name": "quitcontrol-vscode",
"displayName": "Quit Control for VSCode",
"description": "Stop mistyping keyboard shortctus that close/quit VSCode unintentionally",
"version": "4.0.0",
"publisher": "artdiniz",
"author": {
"name": "Artur Diniz Adam",
"email": "[email protected]"
},
"license": "MIT",
"homepage": "https://github.com/artdiniz/quitControlVSCode/blob/master/README.md",
"repository": {
"type": "git",
"url": "https://github.com/artdiniz/quit-control-vscode"
},
"icon": "images/icon.png",
"engines": {
"vscode": "^1.5.0"
},
"extensionKind": [
"ui",
"workspace"
],
"categories": [
"Keymaps",
"Other"
],
"activationEvents": [
"onStartupFinished",
"onCommand:quitControl.keybindings.quit",
"onCommand:quitControl.keybindings.quitEmptyWindow",
"onCommand:quitControl.keybindings.closeWindow",
"onCommand:quitControl.keybindings.stopCloseEmptyWindow"
],
"main": "./out/extension",
"contributes": {
"keybindings": [
{
"command": "quitControl.keybindings.quit",
"title": "Quit Visual Studio Code",
"key": "ctrl+Q",
"mac": "cmd+Q",
"when": "quitControl.isActive && isWindows && config.quitControl.enableQuitKeybindingOnWindows || quitControl.isActive && isMac || quitControl.isActive && isLinux"
},
{
"command": "quitControl.keybindings.quitEmptyWindow",
"title": "Quit Visual Studio Code",
"key": "ctrl+Q",
"mac": "cmd+Q",
"when": "quitControl.isActive && isWindows && config.quitControl.enableQuitKeybindingOnWindows && config.quitControl.closeTabShouldTryToCloseEmptyWindow && !editorIsOpen && !multipleEditorGroups || quitControl.isActive && isMac && config.quitControl.closeTabShouldTryToCloseEmptyWindow && !editorIsOpen && !multipleEditorGroups || quitControl.isActive && isLinux && config.quitControl.closeTabShouldTryToCloseEmptyWindow && !editorIsOpen && !multipleEditorGroups"
},
{
"command": "quitControl.keybindings.closeWindow",
"title": "Close Window",
"key": "ctrl+shift+W",
"mac": "cmd+shift+W"
},
{
"command": "quitControl.keybindings.closeWindow",
"title": "Close Window",
"key": "alt+f4",
"when": "isLinux || isWindows"
},
{
"command": "quitControl.keybindings.closeWindow",
"title": "Close Editor",
"key": "ctrl+W",
"mac": "cmd+W",
"when": "!editorIsOpen && !multipleEditorGroups && config.quitControl.closeTabShouldTryToCloseEmptyWindow"
},
{
"command": "quitControl.keybindings.closeWindow",
"title": "Close Editor",
"key": "ctrl+f4",
"when": "!editorIsOpen && !multipleEditorGroups && config.quitControl.closeTabShouldTryToCloseEmptyWindow && isWindows"
},
{
"command": "quitControl.keybindings.stopCloseEmptyWindow",
"title": "Close Editor",
"key": "ctrl+W",
"mac": "cmd+W",
"when": "isMac && !editorIsOpen && !multipleEditorGroups && !config.quitControl.closeTabShouldTryToCloseEmptyWindow"
}
],
"configuration": {
"title": "QuitControl",
"properties": {
"quitControl.closeTabShouldTryToCloseEmptyWindow": {
"type": "boolean",
"default": true,
"description": "Enables macOS-like behavior of closing an empty window with the same shortcut of closing a tab: `Cmd+W` (macOS); `Ctrl+W` (Linux and Windows); `Ctrl+F4` (Windows)."
},
"quitControl.enableQuitKeybindingOnWindows": {
"type": "boolean",
"default": true,
"description": "Enables `Ctrl+Q` to quit VSCode on Windows."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run clean && npm run compile",
"clean": "rimraf ./out",
"compile": "tsc --outDir ./out -p ./",
"package": "vsce package",
"publish": "vsce:publish && open-vsx:publish",
"vsce:publish": "vsce publish",
"open-vsx:publish": "printf 'open-vsx publisher token: '; read -r _token; npx ovsx publish -p \"$_token\"",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test",
"lint": "tslint 'src/**/*.ts'"
},
"devDependencies": {
"@types/mocha": "^2.2.32",
"@types/node": "^8.10.47",
"rimraf": "^2.6.3",
"tslint": "^5.11.0",
"typescript": "^2.9.2",
"vsce": "^1.88.0",
"vscode": "^1.1.33"
},
"dependencies": {}
}