Commit graph

12 commits

Author SHA1 Message Date
Steve Lee 2f8e691e05 Fix build in vscode (#5453)
- Fix build in vscode
- Add v2.0.0 tasks.json thanks to Keith Hill
- Add '/property:GenerateFullPaths=true' to build to fix the $mscompile 'problem matcher' not working issue.
2017-11-15 11:40:49 -08:00
Keith Hill cef7762d18 Add standard set of vscode workspace setting files (#5457)
* Add standard set of vscode workspace setting files

Add an extensions.json file that will prompt folks to install extensions that are recommended for this workspace (c++, c#, powershell, cmake (editing syntax) and markdown linter.

Add settings.json to start to configure C# syntax, PoweShell trim trailing whitespace and configure the markdown lint extension.

Update launch.json to provide ability to debug PowerShell scripts.

* Clean up grammar

* Instruct VSCode to ensure a final newline.

If this is not wanted for certain file types, we can restrict this option to only specified file types.
2017-11-15 11:18:37 +04:00
Steve Lee 17c16ce4c5 Fix vscode launch.json to point to pwsh (#5189) 2017-10-23 09:29:48 -07:00
Keith Hill ef33c30219 Update launch.json Attach config to use process picker. (#3928) 2017-06-03 10:59:30 -07:00
Andrew Schwartzmeyer 9a9b6eddcb Enable external console for VS Code debugging
Instead of half-running PowerShell with -noninteractive (and expecting
the user debugging to enter more arguments), the latest stable version
of VS Code allows us to launch an external console. This requires either
Gnome Terminal or xterm (sadly not Xfce Terminal), but given either (and
xterm is almost always available to install), we can now launch an
interactive PowerShell session to debug.
2016-07-21 16:18:32 -07:00
Andrew Schwartzmeyer 77ffc715dc Make VS Code debug powershell with -NonInteractive 2016-05-06 10:48:01 -07:00
Andrew Schwartzmeyer 403ba4f735 Use -Output switch to fix VS Code debugging story 2016-05-06 10:30:48 -07:00
Andrew Schwartzmeyer b88980590c Put version back to make VS Code happy 2016-04-01 10:26:50 -07:00
Andrew Schwartzmeyer b8435da8db Fix up .vscode files 2016-03-30 23:30:26 -07:00
Andrew Schwartzmeyer 18ba3f3365 Fix VS Code attach debugging configuration
Needs to be `processName`, not `program`. Go figure.
2016-03-26 15:27:15 -07:00
Andrew Schwartzmeyer 840d14e6df Add attach configuration 2016-03-25 14:16:38 -07:00
Andrew Schwartzmeyer 94e3a905bd Add VS Code launch and task files
This enables building PowerShell through VS Code. The build task
launches the installed version of PowerShell and runs
`Start-PSBuild` (after importing the module).

This enables a `launch` debug task to immediately debug the `powershell`
process, without having to attach to an external process.

The defaults of `justMyCode` and `stopAtEntry` have been reversed, so
that all code is debugged, and the process is stopped at entry for
easier debugging.

Note that an interactive PowerShell process requires access to `stdin`,
which the debug console does not provide, so once it requests access,
`System.Console` will throw a (correct) exception.
2016-03-24 16:26:05 -07:00