-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
147 lines (147 loc) · 3.97 KB
/
Copy pathpackage.json
File metadata and controls
147 lines (147 loc) · 3.97 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"name": "mandolin",
"displayName": "Mandolin",
"description": "Mandolin is an extension designed to consume lint violations reported by Lute!",
"publisher": "RobloxCorporation",
"version": "0.1.0",
"engines": {
"vscode": "^1.105.1"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:luau",
"workspaceContains:**/*.luau",
"workspaceContains:**/*.lua"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "luau",
"extensions": [
".luau",
".lua"
]
}
],
"configuration": {
"title": "Mandolin",
"properties": {
"mandolin.luteExecPath": {
"type": "string",
"scope": "resource",
"markdownDescription": "The path to the Lute executable to use for lints"
},
"mandolin.lintRules": {
"type": "string",
"scope": "resource",
"markdownDescription": "Optional path to custom lint rules"
},
"mandolin.foremanTomlPath": {
"type": "string",
"scope": "resource",
"markdownDescription": "Optional path to a foreman.toml file describing which version of lute to use"
},
"mandolin.lintConfigPath": {
"type": "string",
"scope": "resource",
"markdownDescription": "Optional path to a .config.luau file containing lute lint configuration."
}
}
},
"breakpoints": [
{
"language": "luau"
}
],
"debuggers": [
{
"type": "lute",
"label": "Lute Debugger",
"languages": [
"luau"
],
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to the Luau file to debug.",
"default": "${file}"
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"description": "Command-line arguments to pass to the script being debugged. These are passed in as a top-level variadic argument to your script.",
"default": []
},
"trace": {
"type": "boolean",
"description": "Enable tracing of the Debug Adapter Protocol messages.",
"default": false
}
}
}
},
"initialConfigurations": [
{
"type": "lute",
"request": "launch",
"name": "Debug Luau File",
"program": "${file}",
"args": [],
"trace": false
}
],
"configurationSnippets": [
{
"label": "Lute Debug: Launch",
"description": "A new configuration for debugging a Luau file",
"body": {
"type": "lute",
"request": "launch",
"name": "Debug Luau File",
"program": "^\"\\${file}\"",
"args": [],
"trace": false
}
}
]
}
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/luau-lang/mandolin.git"
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"@types/sinon": "^21.0.0",
"@types/vscode": "^1.105.1",
"@types/which": "^3.0.4",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^3.1.0",
"@vscode/vsce": "^3.7.1",
"eslint": "^9.39.2",
"sinon": "^21.0.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.52.0",
"which": "^5.0.0"
}
}