This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
164 lines (164 loc) · 6.44 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"name": "mcfunction-debugger",
"displayName": "McFunction-Debugger",
"description": "A debugger for Minecraft's *.mcfunction files that does not require any Minecraft mods.",
"version": "1.0.3",
"publisher": "vanilla-technologies",
"repository": {
"type": "git",
"url": "https://github.com/vanilla-technologies/mcfunction-debugger-vscode.git"
},
"license": "GPL-3.0-or-later",
"engines": {
"vscode": "^1.63.0"
},
"categories": [
"Debuggers"
],
"activationEvents": [
"onDebugResolve:mcfunction",
"onCommand:mcfunction-debugger.askForFunctionPath"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "mcfunction",
"extensions": [
"mcfunction"
]
}
],
"breakpoints": [
{
"language": "mcfunction"
}
],
"debuggers": [
{
"type": "mcfunction",
"languages": [
"mcfunction"
],
"label": "mcfunction-debugger",
"windows": {
"program": "./bin/mcfunction-debug-adapter.exe"
},
"linux": {
"program": "./bin/mcfunction-debug-adapter"
},
"osx": {
"program": "./bin/mcfunction-debug-adapter"
},
"configurationAttributes": {
"launch": {
"required": [
"minecraftWorldDir"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to an mcfunction file.",
"default": "${file}"
},
"minecraftWorldDir": {
"type": "string",
"description": "Absolute path to the Minecraft world to run the function in."
},
"minecraftLogFile": {
"type": "string",
"description": "Absolute path to Minecraft's log file.",
"default": "${userHome}/AppData/Roaming/.minecraft/logs/latest.log"
}
}
}
},
"initialConfigurations": [
{
"name": "mcfunction: Debug current function",
"type": "mcfunction",
"request": "launch",
"program": "${file}",
"minecraftWorldDir": "${userHome}/AppData/Roaming/.minecraft/saves/New World",
"minecraftLogFile": "${userHome}/AppData/Roaming/.minecraft/logs/latest.log"
}
],
"configurationSnippets": [
{
"label": "mcfunction: Debug current function",
"description": "A new configuration for debugging the current mcfunction file.",
"body": {
"name": "mcfunction: Debug current function",
"type": "mcfunction",
"request": "launch",
"program": "^\"\\${file}\"",
"minecraftWorldDir": "^\"\\${userHome}/AppData/Roaming/.minecraft/saves/New World\"",
"minecraftLogFile": "^\"\\${userHome}/AppData/Roaming/.minecraft/logs/latest.log\""
}
},
{
"label": "mcfunction: Ask for function path",
"description": "A new configuration for debugging a user selected mcfunction file.",
"body": {
"name": "mcfunction: Ask for function path",
"type": "mcfunction",
"request": "launch",
"program": "^\"\\${command:askForFunctionPath}\"",
"minecraftWorldDir": "^\"\\${userHome}/AppData/Roaming/.minecraft/saves/New World\"",
"minecraftLogFile": "^\"\\${userHome}/AppData/Roaming/.minecraft/logs/latest.log\""
}
}
],
"variables": {
"askForFunctionPath": "mcfunction-debugger.askForFunctionPath"
}
}
],
"configuration": {
"title": "McFunction-Debugger",
"properties": {
"mcfunctionDebugger.adapter.log.file": {
"description": "Specifies the log file for the debug adapter. Relative paths are resolved relative to the first workspace folder.",
"type": "string",
"scope": "resource"
},
"mcfunctionDebugger.adapter.log.level": {
"description": "Specifies the log level for the debug adapter.",
"type": "string",
"enum": [
"OFF",
"ERROR",
"WARN",
"INFO",
"DEBUG",
"TRACE"
],
"default": "TRACE"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"postinstall": "node ./lib/postinstall.js",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.4",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/vscode": "^1.63.0",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"@vscode/test-electron": "^1.6.2",
"download": "^6.2.5",
"eslint": "^8.1.0",
"glob": "^7.1.7",
"mocha": "^9.1.3",
"typescript": "^4.4.4"
}
}