Skip to content

Commit

Permalink
Remove dependency on env variable for local VSIX testing (#3562)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-c-martin committed Jul 12, 2021
1 parent 4516557 commit 27c12bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
9 changes: 3 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@
"--enable-proposed-api",
"--extensionDevelopmentPath=${workspaceRoot}/src/vscode-bicep"
],
"env": {
"BICEP_LANGUAGE_SERVER_PATH": "${workspaceRoot}/src/Bicep.LangServer/bin/Debug/net5.0/Bicep.LangServer.dll"
},
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/src/**/*.js"],
"preLaunchTask": "vscodeext-build"
"preLaunchTask": "Build VSIX"
},
{
"name": "Bicep Playground",
Expand All @@ -27,13 +24,13 @@
"cwd": "${workspaceFolder}/src/playground",
"autoAttachChildProcesses": true,
"stopOnEntry": false,
"preLaunchTask": "playground-build-wasm"
"preLaunchTask": "Build WASM for Playground"
},
{
"name": "Bicep CLI",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-cli",
"preLaunchTask": "Build CLI",
"program": "${workspaceFolder}/src/Bicep.Cli/bin/Debug/net5.0/Bicep.dll",
"args": [
"build",
Expand Down
16 changes: 9 additions & 7 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "2.0.0",
"tasks": [
{
"label": "build",
"label": "Build Solution",
"command": "dotnet",
"type": "process",
"args": [
Expand All @@ -14,7 +14,7 @@
"problemMatcher": "$msCompile"
},
{
"label": "build-cli",
"label": "Build CLI",
"command": "dotnet",
"type": "process",
"args": [
Expand All @@ -26,19 +26,21 @@
"problemMatcher": "$msCompile"
},
{
"label": "build-langserver",
"label": "Build Language Server for VSIX",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/Bicep.LangServer/Bicep.LangServer.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
"/consoleloggerparameters:NoSummary",
"--output",
"${workspaceFolder}/src/vscode-bicep/bicepLanguageServer"
],
"problemMatcher": "$msCompile"
},
{
"label": "vscodeext-build",
"label": "Build VSIX",
"command": "npm",
"args": ["run", "build", "--loglevel", "silent"],
"type": "shell",
Expand All @@ -47,11 +49,11 @@
"cwd": "${workspaceFolder}/src/vscode-bicep"
},
"dependsOn": [
"build-langserver"
"Build Language Server for VSIX"
]
},
{
"label": "playground-build-wasm",
"label": "Build WASM for Playground",
"command": "npm",
"args": ["run", "build-wasm"],
"type": "shell",
Expand Down

0 comments on commit 27c12bf

Please sign in to comment.