-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpackage.json
101 lines (101 loc) · 3.02 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
{
"name": "vscode-twoslash-queries",
"displayName": "Twoslash Query Comments",
"description": "Adds support for twoslash query comments (// ^?) in TypeScript and JavaScript projects",
"publisher": "Orta",
"version": "1.4.0",
"engines": {
"vscode": "^1.67.0"
},
"icon": "icon.png",
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:jsx-tags"
],
"repository": {
"type": "git",
"url": "https://github.com/orta/vscode-twoslash-queries"
},
"main": "./out/extension.js",
"browser": "./out/extension.js",
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/vscode": "^1.67.0",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "14.x",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"eslint": "^8.9.0",
"glob": "^7.2.0",
"mocha": "^9.2.1",
"typescript": "^4.9.0",
"@vscode/test-electron": "^2.1.2"
},
"contributes": {
"configuration": {
"title": "Twoslash Query Comments",
"properties": {
"orta.vscode-twoslash-queries.maxLength": {
"type": "number",
"default": 120,
"description": "Optionally set a maximum length for the hints to display."
},
"orta.vscode-twoslash-queries.enableStrictEnd": {
"type": "boolean",
"default": false,
"description": "If enabled, type hints are shown only for queries that strictly end with '^?'."
}
}
},
"commands": [
{
"command": "orta.vscode-twoslash-queries.insert-twoslash-query",
"title": "TwoSlash Query: Insert Below"
},
{
"command": "orta.vscode-twoslash-queries.insert-inline-query",
"title": "Inline TwoSlash Query: Insert EOL"
}
],
"menus": {
"commandPalette": [
{
"command": "orta.vscode-twoslash-queries.insert-twoslash-query",
"when": "editorLangId == typescript || editorLangId == typescriptreact || editorLangId == javascript || editorLangId == javascriptreact"
},
{
"command": "orta.vscode-twoslash-queries.insert-inline-query",
"when": "editorLangId == typescript || editorLangId == typescriptreact || editorLangId == javascript || editorLangId == javascriptreact"
}
]
},
"keybindings": [
{
"command": "orta.vscode-twoslash-queries.insert-twoslash-query",
"when": "editorTextFocus",
"key": "ctrl+k 6",
"mac": "cmd+k 6"
},
{
"command": "orta.vscode-twoslash-queries.insert-inline-query",
"when": "editorTextFocus",
"key": "ctrl+k 7",
"mac": "cmd+k 7"
}
]
}
}