Skip to content

Commit 6467b8e

Browse files
committed
update
1 parent f4fc53a commit 6467b8e

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@
3737
],
3838
"configuration": {
3939
"title": "EmmyLua",
40-
"properties": {
41-
42-
}
40+
"properties": {}
4341
},
4442
"configurationDefaults": {
4543
"[EmmyLua]": {
@@ -50,8 +48,7 @@
5048
}
5149
}
5250
},
53-
"colors": [
54-
]
51+
"colors": []
5552
},
5653
"scripts": {
5754
"vscode:prepublish": "npm run compile",

src/extension.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ export function deactivate() {
3636

3737
function startClient() {
3838
let clientOptions: LanguageClientOptions = {
39-
documentSelector: [ { scheme: 'file', language: 'EmmyLua' } ]
39+
documentSelector: [ { scheme: 'file', language: 'EmmyLua' } ],
40+
synchronize: {
41+
configurationSection: 'EmmyLua',
42+
fileEvents: [
43+
vscode.workspace.createFileSystemWatcher("**/*.lua")
44+
]
45+
}
4046
};
4147

4248
// The server is a started as a separate app and listens on port 5007
@@ -74,4 +80,11 @@ function startClient() {
7480
});
7581
let disposable = client.start();
7682
savedContext.subscriptions.push(disposable);
83+
84+
vscode.languages.setLanguageConfiguration("EmmyLua", {
85+
indentationRules: {
86+
increaseIndentPattern: /do|else|then|repeat/,
87+
decreaseIndentPattern: /end|else|elseif|until/,
88+
}
89+
});
7790
}

syntaxes/lua.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
"name": "comment.line.double-dash.lua",
183183
"patterns": [
184184
{
185-
"match": "@(\\w+)",
185+
"match": "(@\\w+)",
186186
"captures": {
187187
"1": {
188188
"name": "keyword.other.documentation.lua"

0 commit comments

Comments
 (0)