-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
93 lines (93 loc) · 2.08 KB
/
package.json
File metadata and controls
93 lines (93 loc) · 2.08 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
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"name": "rust-fmt",
"displayName": "rust fmt",
"description": "Format Rust code using rustfmt",
"version": "0.1.3",
"publisher": "vremyavnikuda",
"repository": {
"type": "git",
"url": "https://github.com/shikoucore/rust-fmt.git"
},
"icon": "assets/icon_rust_fmt.png",
"engines": {
"vscode": "^1.108.0"
},
"categories": [
"Formatters"
],
"keywords": [
"rust",
"rustfmt",
"cargo fmt",
"formatter"
],
"activationEvents": [
"onLanguage:rust"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "rust",
"extensions": [
".rs"
]
}
],
"configuration": {
"type": "object",
"title": "Rust Formatter",
"properties": {
"rustfmt.path": {
"type": "string",
"default": "rustfmt",
"description": "Path to rustfmt executable"
},
"rustfmt.extraArgs": {
"type": "array",
"default": [],
"description": "Additional arguments for rustfmt",
"items": {
"type": "string"
}
}
}
},
"commands": [
{
"command": "rust-fmt.format",
"title": "Format Document with rustfmt"
},
{
"command": "rust-fmt.formatWorkspace",
"title": "Format Workspace with rustfmt"
},
{
"command": "rust-fmt.useAsDefaultFormatter",
"title": "Use rust-fmt as Default Formatter"
}
],
"keybindings": [
{
"command": "rust-fmt.formatWorkspace",
"key": "shift+alt+f",
"mac": "shift+option+f",
"when": "editorTextFocus && editorLangId == rust"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@types/vscode": "^1.108.1",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.0.0",
"typescript": "^5.0.0"
}
}