File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed
Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 3737 ],
3838 "configuration" : {
3939 "title" : " EmmyLua" ,
40- "properties" : {
41-
42- }
40+ "properties" : {}
4341 },
4442 "configurationDefaults" : {
4543 "[EmmyLua]" : {
5048 }
5149 }
5250 },
53- "colors" : [
54- ]
51+ "colors" : []
5552 },
5653 "scripts" : {
5754 "vscode:prepublish" : " npm run compile" ,
Original file line number Diff line number Diff line change @@ -36,7 +36,13 @@ export function deactivate() {
3636
3737function 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 : / d o | e l s e | t h e n | r e p e a t / ,
87+ decreaseIndentPattern : / e n d | e l s e | e l s e i f | u n t i l / ,
88+ }
89+ } ) ;
7790}
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments