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
|
// A launch configuration that compiles the extension and then opens it inside a new window
{
"version": "0.2.0",
"configurations": [
{
"name": "测试",
"type": "lua",
"request": "launch",
"stopOnEntry": false,
"program": "${workspaceRoot}/server/test/main.lua",
"cwd": "${workspaceRoot}/server",
"env": {
"PATH": "${workspaceRoot}\\server\\bin\\"
},
"luaexe": "${workspaceRoot}\\server\\bin\\lua-language-server.exe",
"luadll": "${workspaceRoot}\\server\\bin\\lua54.dll",
"path": "${workspaceRoot}/server/bin/?.lua",
"cpath": "${workspaceRoot}/server/bin/?.dll;",
"arg": [
],
"consoleCoding": "utf8",
"sourceCoding": "utf8"
},
{
"name": "附加",
"type": "lua",
"request": "attach",
"stopOnEntry": true,
"sourceCoding": "utf8",
"consoleCoding": "utf8",
"ip": "127.0.0.1",
"port": 11411
},
{
"name": "编译",
"type": "lua",
"request": "launch",
"stopOnEntry": false,
"program": "${workspaceRoot}/server/compile.lua",
"cwd": "${workspaceRoot}/server",
"luaexe": "${workspaceRoot}/server/bee.lua/make/luamake.exe",
"luadll": "${workspaceRoot}/server/bee.lua/make/lua54.dll",
"path": "${workspaceRoot}/server/bee.lua/make/?.lua",
"cpath": "${workspaceRoot}/server/bee.lua/make/?.dll;",
"arg": [
],
"consoleCoding": "utf8",
"sourceCoding": "utf8"
},
{
"name": "发布",
"type": "lua",
"request": "launch",
"stopOnEntry": false,
"program": "${workspaceRoot}/server/publish.lua",
"cwd": "${workspaceRoot}/server",
"luaexe": "${workspaceRoot}\\server\\bin\\lua-language-server.exe",
"luadll": "${workspaceRoot}\\server\\bin\\lua54.dll",
"path": "${workspaceRoot}/server/bin/?.lua",
"cpath": "${workspaceRoot}/server/bin/?.dll;",
"arg": [
],
"consoleCoding": "utf8",
"sourceCoding": "utf8"
},
{
"type": "extensionHost",
"request": "launch",
"name": "Launch Client",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
"outFiles": ["${workspaceRoot}/client/out/**/*.js"],
"preLaunchTask": {
"type": "npm",
"script": "watch"
}
},
{
"type": "node",
"request": "attach",
"name": "Attach to Server",
"port": 6009,
"restart": true,
"outFiles": ["${workspaceRoot}/server/out/**/*.js"]
},
{
"name": "Language Server E2E Test",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/client/out/test",
"${workspaceRoot}/client/testFixture"
],
"outFiles": ["${workspaceRoot}/client/out/test/**/*.js"]
}
],
"compounds": [
{
"name": "Client + Server",
"configurations": ["Launch Client", "Attach to Server"]
}
]
}
|