-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
124 lines (124 loc) · 3.27 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
{
"name": "open-window-tab-context",
"displayName": "Open Window Tab Context",
"description": "Add an \"Open in new window\" option to tab context menu in editor.",
"version": "1.12.0",
"icon": "icon/icon.png",
"publisher": "takkaO",
"license": "MIT",
"engines": {
"vscode": "^1.45.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "open-window-tab-context.openFileInNewWindow",
"title": "Open in new window"
}
],
"menus": {
"editor/title/context": [
{
"when": "resourceScheme =~ /^untitled$|^file$/ && config.owtc.displayPosition == 'Top'",
"command": "open-window-tab-context.openFileInNewWindow",
"group": "navigation"
},
{
"when": "resourceScheme =~ /^untitled$|^file$/ && config.owtc.displayPosition == 'Bottom'",
"command": "open-window-tab-context.openFileInNewWindow",
"group": "command"
}
],
"explorer/context": [
{
"when": "resourceScheme =~ /^untitled$|^file$/ && config.owtc.explorerContextMenu && config.owtc.displayPosition == 'Top'",
"command": "open-window-tab-context.openFileInNewWindow",
"group": "navigation"
},
{
"when": "resourceScheme =~ /^untitled$|^file$/ && config.owtc.explorerContextMenu && config.owtc.displayPosition == 'Bottom'",
"command": "open-window-tab-context.openFileInNewWindow",
"group": "command"
}
]
},
"configuration": [
{
"title": "Open Window Tab Context",
"properties": {
"owtc.command": {
"type": "string",
"scope": "application",
"default": "auto",
"description": "Command to open new window."
},
"owtc.displayPosition": {
"type": "string",
"scope": "window",
"enum": [
"Top",
"Bottom"
],
"default": "Top",
"description": "Specify the context display position."
},
"owtc.autoClose": {
"type": "string",
"scope": "window",
"enum": [
"Enable",
"Disable"
],
"default": "Disable",
"description": "Close tabs in the original window if editor is active. (beta)"
},
"owtc.explorerContextMenu": {
"type": "boolean",
"scope": "window",
"default": false,
"description": "Display the 'Open in new window' context in File Explorer as well. (beta)"
}
}
}
]
},
"repository": {
"type": "git",
"url": "https://github.com/takkaO/VSCode-OpenWindowTabContext.git"
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"update": "ncu -u -x @types/vscode -x glob",
"test": "node ./out/test/runTest.js",
"lint": "eslint -c .eslintrc.js --ext .ts ./src",
"lint:fix": "eslint -c .eslintrc.js --fix --ext .ts ./src"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "^20.5.1",
"@types/vscode": "^1.45.0",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"glob": "^8.0.3",
"mocha": "^10.2.0",
"typescript": "^5.1.6",
"vscode-test": "^1.6.1"
},
"volta": {
"node": "16.15.1",
"npm": "8.13.1"
}
}