Skip to content

Commit d37e30c

Browse files
committed
Fixed: Settings for formatting now works correctly
1 parent 5f7ceba commit d37e30c

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/ViTeXFTW/ZeroSyntax-Highlight"
14+
"url": "https://github.com/ViTeXFTW/ZeroSyntax-Server"
1515
},
1616
"license": "MIT",
1717
"engines": {

client/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function formatDocument(document: vscode.TextDocument): vscode.TextEdit[] {
7373
const edits: vscode.TextEdit[] = [];
7474
let indentlevel = 0;
7575

76-
const config = vscode.workspace.getConfiguration('ZS-Server');
76+
const config = vscode.workspace.getConfiguration('ZeroSyntax');
7777
const indentSize = config.get<number>('indentNumber', 2); // Default to 2 if not set
7878

7979
let ObjectsRegex = ["^\\b([Oo]bject)\\s+[a-zA-Z0-9_]", "^\\b([Oo]bject[Rr]eskin)\\s+[a-zA-Z0-9_]", "^\\b([Aa]dd[Mm]odule)$", "^\\b([Rr]eplace[Mm]odule)$", "^\\b([Dd]efault[Cc]ondition[Ss]tate)$", "^\\b([Uu]nit[Ss]pecific[Ss]ounds)$", "^\\b([Pp]rerequisites)$", "^\\b([Aa]rmor[Ss]et)$", "^\\b([Ww]eapon[Ss]et)$", "^\\b([Dd]raw)\\s*=", "^\\b([Cc]ondition[Ss]tate)\\s*=", "^\\b([Tt]ransition[Ss]tate)\\s*=", "^\\b([Bb]ody)\\s*=", "^\\b([Bb]ehavior)\\s*=", "^\\b([Cc]lient[Uu]pdate)\\s*=", "^\\b(Turret)$"];

package.json

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
11
{
22
"name": "ZeroSyntax Server",
3-
"description": "A language server example",
4-
"author": "ViTeXFTW",
5-
"license": "MIT",
6-
"version": "1.0.0",
3+
"displayName": "ZeroSyntax-Server",
4+
"description": "Language server for Generals Zero Hour INI files",
5+
"icon": "./images/icon.png",
6+
"version": "0.1.0",
7+
"publisher": "ViTeXFTW",
8+
"author": {
9+
"name": "ViTeXFTW",
10+
"email": "[email protected]"
11+
},
712
"repository": {
813
"type": "git",
9-
"url": "https://github.com/Microsoft/vscode-extension-samples"
14+
"url": "https://github.com/ViTeXFTW/ZeroSyntax-Server"
1015
},
11-
"publisher": "vscode-samples",
12-
"categories": [],
16+
"license": "MIT",
17+
"categories": [
18+
"Formatters",
19+
"Programming Languages"
20+
],
1321
"keywords": [
1422
"multi-root ready"
1523
],
1624
"engines": {
17-
"vscode": "^1.75.0"
25+
"vscode": "^1.85.0"
1826
},
1927
"activationEvents": [
20-
"onLanguage:plaintext"
28+
"onLanguage:ini"
2129
],
2230
"main": "./client/out/extension",
2331
"contributes": {

0 commit comments

Comments
 (0)