-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
181 lines (181 loc) · 5.44 KB
/
package.json
File metadata and controls
181 lines (181 loc) · 5.44 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
{
"name": "controlforge-structured-text",
"displayName": "ControlForge Structured Text",
"description": "Professional Structured Text (IEC 61131-3) IDE with real-time diagnostics, code actions & quick fixes, function block IntelliSense, and smart code completion for PLC programming",
"version": "1.4.0",
"author": "Michael Distel",
"publisher": "ControlForgeSystems",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ControlForge-Systems/controlforge-structured-text"
},
"bugs": {
"url": "https://github.com/ControlForge-Systems/controlforge-structured-text/issues"
},
"homepage": "https://controlforge.dev/",
"icon": "icon.png",
"engines": {
"vscode": "^1.100.0",
"node": ">=22.0.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"PLC",
"Structured Text",
"IEC 61131-3",
"automation",
"industrial",
"function blocks",
"intellisense",
"autocomplete",
"siemens",
"beckhoff",
"schneider",
"control systems"
],
"main": "./dist/extension.js",
"//": "Note: iec61131-definitions folder is required at runtime for hover, navigation and completion features",
"activationEvents": [],
"contributes": {
"configurationDefaults": {
"[structured-text]": {
"editor.defaultFormatter": "ControlForgeSystems.controlforge-structured-text"
}
},
"languages": [
{
"id": "structured-text",
"aliases": [
"Structured Text",
"ST",
"IEC 61131-3"
],
"extensions": [
".st",
".iecst"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "structured-text",
"scopeName": "source.structured-text",
"path": "./syntaxes/structured-text.tmLanguage.json"
},
{
"scopeName": "markdown.structured-text.codeblock",
"path": "./syntaxes/structured-text.markdown-injection.tmLanguage.json",
"injectTo": [
"text.html.markdown"
]
},
{
"scopeName": "xml.structured-text.injection",
"path": "./syntaxes/structured-text.xml-injection.tmLanguage.json",
"injectTo": [
"text.xml"
]
}
],
"snippets": [
{
"language": "structured-text",
"path": "./syntaxes/structured-text.code-snippets"
}
],
"snippets": [
{
"language": "structured-text",
"path": "./syntaxes/structured-text.code-snippets"
}
],
"snippets": [
{
"language": "structured-text",
"path": "./syntaxes/structured-text.code-snippets"
}
],
"commands": [
{
"command": "controlforge-structured-text.validateSyntax",
"title": "ControlForge Structured Text: Validate Syntax"
},
{
"command": "controlforge-structured-text.showIndexStats",
"title": "ControlForge Structured Text: Show Index Statistics"
},
{
"command": "controlforge-structured-text.checkLspStatus",
"title": "ControlForge Structured Text: Check LSP Status"
}
],
"configuration": {
"title": "ControlForge Structured Text",
"properties": {
"structured-text.format.keywordCase": {
"type": "string",
"enum": ["upper", "lower", "preserve"],
"default": "upper",
"description": "Keyword casing preference: UPPER, lower, or preserve existing case"
},
"structured-text.format.insertSpacesAroundOperators": {
"type": "boolean",
"default": true,
"description": "Insert spaces around operators (:=, +, -, *, /, =, <>, etc.)"
},
"structured-text.format.alignVarDeclarations": {
"type": "boolean",
"default": true,
"description": "Align colon positions in VAR block declarations"
},
"structured-text.format.trimTrailingWhitespace": {
"type": "boolean",
"default": true,
"description": "Remove trailing whitespace from lines"
},
"structured-text.format.insertFinalNewline": {
"type": "boolean",
"default": true,
"description": "Ensure file ends with a newline"
}
}
}
},
"scripts": {
"test": "npm run test:unit && npm run test:e2e",
"test:unit": "npm run compile && node ./out/runUnitTests.js",
"test:e2e": "npm run compile && node ./out/runTest.js",
"clean": "rm -rf out dist",
"prepare": "husky",
"vscode:prepublish": "npm run webpack-prod",
"compile": "rm -rf out && tsc -p ./",
"webpack": "rm -rf dist && webpack --config webpack.config.js --mode development",
"webpack-prod": "rm -rf dist && webpack --config webpack.config.js --mode production",
"watch": "webpack --config webpack.config.js --mode development --watch",
"package": "vsce package",
"publish": "vsce publish"
},
"dependencies": {
"vscode-languageclient": "^9.0.1",
"vscode-languageserver": "^9.0.1",
"vscode-languageserver-textdocument": "^1.0.11"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^25.0.0",
"@types/vscode": "^1.100.0",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"glob": "^13.0.0",
"husky": "^9.1.7",
"mocha": "^11.6.0",
"ts-loader": "^9.5.2",
"typescript": "^5.9.3",
"webpack": "^5.99.9",
"webpack-cli": "^6.0.1"
}
}