mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
60e482aa80
I'm not sure how my setup was different but I was unable to get the extension to run locally without adding a binary. This mirrors what Svelte does so I'm assuming it's the way it's supposed to be loaded.
29 lines
832 B
JSON
29 lines
832 B
JSON
// A launch configuration that compiles the extension and then opens it inside a new window
|
|
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Launch Client",
|
|
"type": "extensionHost",
|
|
"request": "launch",
|
|
"runtimeExecutable": "${execPath}",
|
|
"args": ["--extensionDevelopmentPath=${workspaceRoot}/tools/astro-vscode"],
|
|
"outFiles": ["${workspaceRoot}/tools/astro-vscode/dist/**/*.js"]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "attach",
|
|
"name": "Attach to Server",
|
|
"port": 6040,
|
|
"restart": true,
|
|
"outFiles": ["${workspaceRoot}/tools/astro-languageserver/dist/**/*.js"],
|
|
"skipFiles": ["<node_internals>/**"]
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "Launch Extension",
|
|
"configurations": ["Launch Client", "Attach to Server"]
|
|
}
|
|
]
|
|
}
|