mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Add instructions for developing VS Code version of sql-database-projects (#17705)
This commit is contained in:
@@ -4,14 +4,11 @@
|
|||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
// Note for debugging the VS Code version of the extension, currently you will need to modify
|
// This task is meant for running the VS Code version of the extension. See VSCODE_DEVELOPMENT.md for more information
|
||||||
// the package.json and manually copy over the values from package.vscode.json into package.json
|
|
||||||
// (otherwise you'll get errors since other extensions depend on an extension with the name
|
|
||||||
// data-workspace-vscode, not data-workspace)
|
|
||||||
{
|
{
|
||||||
"type": "extensionHost",
|
"type": "extensionHost",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Launch Extension",
|
"name": "Launch Extension in VS Code",
|
||||||
"runtimeExecutable": "${execPath}",
|
"runtimeExecutable": "${execPath}",
|
||||||
"args": [
|
"args": [
|
||||||
"--extensionDevelopmentPath=${workspaceFolder}"
|
"--extensionDevelopmentPath=${workspaceFolder}"
|
||||||
|
|||||||
15
extensions/sql-database-projects/VSCODE_DEVELOPMENT.md
Normal file
15
extensions/sql-database-projects/VSCODE_DEVELOPMENT.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# VS Code Extension Development
|
||||||
|
|
||||||
|
For working on the VS Code version of the package follow these steps for local development/testing.
|
||||||
|
|
||||||
|
1. Copy the values from [package.vscode.json](./package.vscode.json) into [package.json](./package.json) (overwriting the properties with the same name there)
|
||||||
|
2. Delete the following properties (this includes their arrays of values as well) from the `contributes/menus` property in the [package.json](./package.json)
|
||||||
|
* `objectExplorer/item/context`
|
||||||
|
* `dataExplorer/context`
|
||||||
|
* `dashboard/toolbar`
|
||||||
|
3. Compile Azure Data Studio as normal and wait for it to finish
|
||||||
|
4. Run `code <PathToAzureDataStudioSource>/extensions/sql-database-projects` from the command line to open a new VS Code instance at the `sql-database-projects` folder
|
||||||
|
5. Run the `Launch Extension in VS Code` launch target from the `Run and Debug` view
|
||||||
|
6. This should launch an `Extension Development Host` version of VS Code that is running the extension from sources.
|
||||||
|
|
||||||
|
If you have the compilation running as watch then once you make changes you can just reload the window to pick up the latest changes being made.
|
||||||
Reference in New Issue
Block a user