-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
93 lines (93 loc) · 3.42 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
{
"name": "rust-mod-generator",
"displayName": "Rust Mod Generator",
"description": "Create a mod quickly.",
"author": "Kamasylvia",
"publisher": "ZhangYue",
"license": "MIT",
"repository": "https://github.com/kamasylvia/rust-mod-generator",
"icon": "images/logo256.png",
"version": "1.0.7",
"engines": {
"vscode": "^1.46.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onCommand:rust-mod-generator.createRustMod",
"workspaceContains:**/Cargo.toml"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "Rust Mod Generator",
"properties": {
"rust-mod-generator.autoFocus": {
"type": "boolean",
"default": true,
"description": "Enable to auto focusing on the new created module."
},
"rust-mod-generator.selectAccessModifier": {
"type": "boolean",
"default": true,
"description": "Enable to set the access modifier when creating a new module. If this option is disable while 'rust-mod-generator.addModDeclaration' is enabled, the default access modifier (private) will be used."
},
"rust-mod-generator.addModDeclaration": {
"type": "boolean",
"default": true,
"description": "Enable to prepend '<modifier> mod <mod_name>;' to the resource file. If this option is disabled, the option 'rust-mod-generator.selectAccessModifier' will be unavailable."
},
"rust-mod-generator.enableFileMenuItem": {
"type": "boolean",
"default": true,
"description": "Enable to show the context menu item on Rust files in addition to folders."
}
}
},
"commands": [
{
"command": "rust-mod-generator.createRustMod",
"title": "New Rust module"
}
],
"menus": {
"explorer/context": [
{
"when": "resourceLangId == rust && config.rust-mod-generator.enableFileMenuItem",
"group": "navigation",
"command": "rust-mod-generator.createRustMod"
},
{
"when": "explorerResourceIsFolder && rust-mod-generator.customWhenClause",
"group": "navigation@10",
"command": "rust-mod-generator.createRustMod"
}
]
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.2",
"@types/node": "^14.4.0",
"@types/vscode": "^1.46.0",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
"eslint": "^6.8.0",
"glob": "^7.1.6",
"mocha": "^7.1.2",
"typescript": "^3.8.3",
"vscode-test": "^1.3.0"
},
"dependencies": {
"insert-line": "^1.1.0"
}
}