-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
80 lines (80 loc) · 1.87 KB
/
package.json
File metadata and controls
80 lines (80 loc) · 1.87 KB
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
{
"name": "txthighcode",
"displayName": "txthighcode",
"description": "一个用于高亮文本文件中的关键字并显示提示信息的VSCode插件",
"version": "0.0.3",
"author": "colinsu",
"private": true,
"engines": {
"vscode": "^1.97.2"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:plaintext"
],
"main": "./extension.js",
"contributes": {
"commands": [{
"command": "txthighcode.highlightKeywords",
"title": "高亮文本关键字"
},
{
"command": "txthighcode.generateCharacter",
"title": "生成人物"
},
{
"command": "txthighcode.startWriting",
"title": "开始码字"
},
{
"command": "txthighcode.endWriting",
"title": "结束码字"
}],
"keybindings": [
{
"command": "txthighcode.startWriting",
"key": "ctrl+alt+s",
"mac": "cmd+alt+s"
},
{
"command": "txthighcode.endWriting",
"key": "ctrl+alt+e",
"mac": "cmd+alt+e"
}
],
"menus": {
"editor/context": [
{
"when": "editorLangId == plaintext",
"command": "txthighcode.startWriting",
"group": "navigation@1"
},
{
"when": "editorLangId == plaintext",
"command": "txthighcode.endWriting",
"group": "navigation@2"
},
{
"when": "editorHasSelection && editorLangId == plaintext",
"command": "txthighcode.generateCharacter",
"group": "navigation@3"
}
]
}
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "vscode-test"
},
"devDependencies": {
"@types/vscode": "^1.97.2",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"eslint": "^9.21.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1"
}
}