|
152 | 152 | "group": "test"
|
153 | 153 | },
|
154 | 154 |
|
| 155 | + // Neovim tasks |
| 156 | + { |
| 157 | + "label": "Neovim: Build extension", |
| 158 | + "dependsOn": [ |
| 159 | + "Neovim: Launch neovim", |
| 160 | + "Neovim: ESBuild", |
| 161 | + "Neovim: Populate dist" |
| 162 | + ], |
| 163 | + "group": "build" |
| 164 | + }, |
| 165 | + { |
| 166 | + "label": "Neovim: Build extension and tests", |
| 167 | + "dependsOn": [ |
| 168 | + "Neovim: Launch neovim (test)", |
| 169 | + "Neovim: ESBuild", |
| 170 | + "Neovim: Populate dist", |
| 171 | + "TSBuild", |
| 172 | + "Build test harness" |
| 173 | + ], |
| 174 | + "group": "build" |
| 175 | + }, |
| 176 | + { |
| 177 | + "label": "Neovim: ESBuild", |
| 178 | + "type": "npm", |
| 179 | + "script": "esbuild", |
| 180 | + "path": "packages/cursorless-neovim", |
| 181 | + "dependsOn": ["Generate grammar"], |
| 182 | + "presentation": { |
| 183 | + "reveal": "silent" |
| 184 | + }, |
| 185 | + "group": "build" |
| 186 | + }, |
| 187 | + { |
| 188 | + "label": "Neovim: Populate dist", |
| 189 | + "type": "npm", |
| 190 | + "script": "populate-dist", |
| 191 | + "path": "packages/cursorless-neovim", |
| 192 | + "presentation": { |
| 193 | + "reveal": "silent" |
| 194 | + }, |
| 195 | + "options": { |
| 196 | + "env": { |
| 197 | + "CURSORLESS_REPO_ROOT": "${workspaceFolder}" |
| 198 | + } |
| 199 | + }, |
| 200 | + "group": "build" |
| 201 | + }, |
| 202 | + { |
| 203 | + "label": "Neovim: Launch neovim", |
| 204 | + "type": "process", |
| 205 | + "command": "packages/cursorless-neovim/scripts/linux-terminal.sh", |
| 206 | + "args": [ |
| 207 | + "${workspaceFolder}/packages/cursorless-neovim/scripts/debug-neovim.sh ${workspaceFolder} development" |
| 208 | + ], |
| 209 | + "osx": { |
| 210 | + "command": "osascript", |
| 211 | + "args": [ |
| 212 | + "-e", |
| 213 | + "tell app \"Terminal\" to do script \"${workspaceFolder}/packages/cursorless-neovim/scripts/debug-neovim.sh ${workspaceFolder} development\" activate" |
| 214 | + ] |
| 215 | + }, |
| 216 | + "windows": { |
| 217 | + "command": "powershell", |
| 218 | + "args": [ |
| 219 | + "(New-Object -ComObject WScript.Shell).Run(\"\"\"${workspaceFolder}/packages/cursorless-neovim/scripts/debug-neovim.bat\"\"\", 1, $false)" |
| 220 | + ] |
| 221 | + }, |
| 222 | + "group": "build", |
| 223 | + "presentation": { |
| 224 | + "reveal": "silent" |
| 225 | + }, |
| 226 | + "options": { |
| 227 | + "env": { |
| 228 | + "CURSORLESS_REPO_ROOT": "${workspaceFolder}", |
| 229 | + "NVIM_NODE_HOST_DEBUG": "1", |
| 230 | + "NVIM_NODE_LOG_FILE": "${workspaceFolder}/packages/cursorless-neovim/out/nvim_node.log", |
| 231 | + "NVIM_NODE_LOG_LEVEL": "info", |
| 232 | + "CURSORLESS_MODE": "development" |
| 233 | + } |
| 234 | + } |
| 235 | + }, |
| 236 | + { |
| 237 | + "label": "Neovim: Launch neovim (test)", |
| 238 | + "type": "process", |
| 239 | + "command": "packages/cursorless-neovim/scripts/linux-terminal.sh", |
| 240 | + "args": [ |
| 241 | + "${workspaceFolder}/packages/cursorless-neovim/scripts/debug-neovim.sh ${workspaceFolder} test" |
| 242 | + ], |
| 243 | + "osx": { |
| 244 | + "command": "osascript", |
| 245 | + "args": [ |
| 246 | + "-e", |
| 247 | + "tell app \"Terminal\" to do script \"${workspaceFolder}/packages/cursorless-neovim/scripts/debug-neovim.sh ${workspaceFolder} test\" activate" |
| 248 | + ] |
| 249 | + }, |
| 250 | + "windows": { |
| 251 | + "command": "powershell", |
| 252 | + "args": [ |
| 253 | + "(New-Object -ComObject WScript.Shell).Run(\"\"\"${workspaceFolder}/packages/cursorless-neovim/scripts/debug-neovim.bat\"\"\", 1, $false)" |
| 254 | + ] |
| 255 | + }, |
| 256 | + "group": "build", |
| 257 | + "presentation": { |
| 258 | + "reveal": "silent" |
| 259 | + }, |
| 260 | + "options": { |
| 261 | + "env": { |
| 262 | + "CURSORLESS_REPO_ROOT": "${workspaceFolder}", |
| 263 | + "NVIM_NODE_HOST_DEBUG": "1", |
| 264 | + "NVIM_NODE_LOG_FILE": "${workspaceFolder}/packages/cursorless-neovim/out/nvim_node.log", |
| 265 | + "NVIM_NODE_LOG_LEVEL": "info", |
| 266 | + "CURSORLESS_MODE": "test" |
| 267 | + } |
| 268 | + } |
| 269 | + }, |
| 270 | + { |
| 271 | + "label": "Neovim: Show logs", |
| 272 | + "type": "shell", |
| 273 | + "command": "packages/cursorless-neovim/scripts/show-logs.sh", |
| 274 | + "problemMatcher": [], |
| 275 | + "isBackground": true, |
| 276 | + "presentation": { |
| 277 | + "echo": false, |
| 278 | + "reveal": "always", |
| 279 | + "focus": false, |
| 280 | + "panel": "dedicated", |
| 281 | + "showReuseMessage": false, |
| 282 | + "clear": true |
| 283 | + }, |
| 284 | + "options": { |
| 285 | + "env": { |
| 286 | + "CURSORLESS_REPO_ROOT": "${workspaceFolder}" |
| 287 | + } |
| 288 | + } |
| 289 | + // NOTE: We don't have a way on Windows atm due to command with argument inside Run() not working |
| 290 | + // so we need to show logs outside of vscode (see #2454) |
| 291 | + }, |
| 292 | + { |
| 293 | + "label": "Neovim: Launch neovim (lua test)", |
| 294 | + "type": "shell", |
| 295 | + "command": "busted --run unit", |
| 296 | + "options": { |
| 297 | + "cwd": "cursorless.nvim" |
| 298 | + } |
| 299 | + }, |
| 300 | + |
155 | 301 | // cursorless.org
|
156 | 302 | {
|
157 | 303 | "label": "Serve cursorless.org",
|
|
0 commit comments