Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
189 lines (189 loc) · 4.49 KB
/
Copy pathpackage.json
File metadata and controls
189 lines (189 loc) · 4.49 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"name": "mplus",
"displayName": "MPlus Extension",
"description": "A VSCode extension for Mplus statistical software with syntax highlighting, execution, and advanced features",
"version": "0.1.1",
"license": "MIT-NC",
"publisher": "feewg",
"repository": {
"type": "git",
"url": "https://github.com/feewg/mplus.git"
},
"bugs": {
"url": "https://github.com/feewg/mplus/issues"
},
"homepage": "https://github.com/feewg/mplus#readme",
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Other"
],
"keywords": [
"mplus",
"statistics",
"structural equation modeling",
"sem",
"syntax highlighting"
],
"activationEvents": [
"onStartupFinished",
"onLanguage:mplus"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "mplus",
"aliases": ["Mplus", "mplus"],
"extensions": [".inp", ".out"],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "mplus",
"scopeName": "source.mplus",
"path": "./syntaxes/mplus.tmLanguage.json"
}
],
"configuration": {
"title": "Mplus",
"properties": {
"mplus.executablePath": {
"type": "string",
"default": "mplus",
"description": "Mplus 可执行文件的路径"
},
"mplus.autoOpenOutput": {
"type": "boolean",
"default": true,
"description": "执行完成后自动打开 .out 文件"
},
"mplus.clearTerminal": {
"type": "boolean",
"default": true,
"description": "执行前清除终端"
},
"mplus.saveBeforeRun": {
"type": "boolean",
"default": true,
"description": "执行前自动保存文件"
}
}
},
"commands": [
{
"command": "mplus.helloWorld",
"title": "Hello World"
},
{
"command": "mplus.run",
"title": "Run Mplus",
"icon": "$(play)"
},
{
"command": "mplus.stop",
"title": "Stop Mplus",
"icon": "$(debug-stop)"
},
{
"command": "mplus.openOutput",
"title": "Open Output File",
"icon": "$(file-code)"
},
{
"command": "mplus.clearTerminal",
"title": "Clear Terminal",
"icon": "$(trash)"
},
{
"command": "mplus.newFile",
"title": "New Mplus File",
"icon": "$(new-file)"
}
],
"menus": {
"editor/title": [
{
"command": "mplus.run",
"when": "resourceLangId == mplus",
"group": "navigation"
},
{
"command": "mplus.stop",
"when": "resourceLangId == mplus",
"group": "navigation"
},
{
"command": "mplus.openOutput",
"when": "resourceLangId == mplus",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "mplus.run",
"when": "resourceLangId == mplus"
},
{
"command": "mplus.stop",
"when": "resourceLangId == mplus"
},
{
"command": "mplus.openOutput",
"when": "resourceLangId == mplus"
}
]
},
"keybindings": [
{
"command": "mplus.run",
"key": "f5",
"when": "resourceLangId == mplus"
},
{
"command": "mplus.openOutput",
"key": "ctrl+shift+o",
"mac": "cmd+shift+o",
"when": "resourceLangId == mplus"
},
{
"command": "mplus.newFile",
"key": "ctrl+alt+n",
"mac": "cmd+alt+n"
},
{
"command": "mplus.clearTerminal",
"key": "ctrl+shift+k",
"mac": "cmd+shift+k"
}
],
"snippets": [
{
"language": "mplus",
"path": "./snippets/mplus.code-snippets"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "node ./out/test/runTest.js",
"package": "vsce package"
},
"devDependencies": {
"@types/vscode": "^1.96.0",
"@types/node": "20.x",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"eslint": "^9.0.0",
"typescript": "^5.0.0",
"@vscode/vsce": "^2.15.0"
}
}