summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vscode/launch.json8
-rw-r--r--build/extension/.gitignore3
-rw-r--r--main.lua1
3 files changed, 10 insertions, 2 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index d3ea8e8e..f218c889 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -29,7 +29,13 @@
"sourceCoding": "utf8",
"consoleCoding": "utf8",
"ip": "localhost",
- "port": 546858
+ "port": 546858,
+ "sourceMaps": [
+ [
+ "C:\\Users\\sunyi\\.vscode\\extensions\\sumneko.lua-lsp\\server",
+ "${workspaceFolder}"
+ ]
+ ]
},
]
}
diff --git a/build/extension/.gitignore b/build/extension/.gitignore
index bf962da1..d38ba5dd 100644
--- a/build/extension/.gitignore
+++ b/build/extension/.gitignore
@@ -1,4 +1,5 @@
out
node_modules
client/server
-.vscode-test \ No newline at end of file
+.vscode-test
+/server/log
diff --git a/main.lua b/main.lua
index 69a8f5d8..773fb0a8 100644
--- a/main.lua
+++ b/main.lua
@@ -9,6 +9,7 @@ log.info('Lua 语言服务启动,路径为:', ROOT)
local dbg = require 'debugger'
dbg:io 'listen:0.0.0.0:546858'
+dbg:start()
require 'utility'
require 'global_protect'