Skip to content

First phase of streamlined development setup #458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 24, 2017
Merged

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Jan 23, 2017

As detailed in #456, I'd like to streamline the development process for the PowerShell extension so that its easier for others to contribute. This change establishes a new build script which can compile both the extension code and PowerShell Editor Services so that all development can be done inside of VS Code. This development setup should work across Windows, Linux, and macOS.

Before merging I'm going to make sure that I can pull the changes for both this PR and PowerShell/PowerShellEditorServices#351 and build everything from scratch just by hitting F5, both on Windows and Ubuntu 16.04.

This change improves our handling of the bundledModulesPath setting by
only making it active when VS Code is in development mode (either running
in the debugger or with the --extensionDevelopmentPath setting).  This
enables extension developers to use their installed PowerShell extension's
bundled modules in normal circumstances, only switching to the
bundledModulesPath when they are running a development build.

This code also sets the default bundledModulesPath to a
peer (co-located) PowerShellEditorServices folder since most developers
will probably clone the two repos into the same folder.  One would only
need to set their bundledModulesPath if their PSES repo folder was in an
unconventional path.

The bundledModulesPath setting will likely be renamed to something more
appropriate in the next update.
@daviwil daviwil added this to the 0.9.1 milestone Jan 23, 2017
@daviwil
Copy link
Contributor Author

daviwil commented Jan 23, 2017

O hai AppVeyor. Haven't set that up yet...

@daviwil daviwil changed the base branch from master to develop January 24, 2017 00:21
This change introduces a new vscode-powershell.build.ps1 script powered by
Invoke-Build.  The goal of this script is to handle build tasks which
would affect both the PowerShell extension and PowerShell Editor Services
so that it's much easier to hit F5 and build everything before launching
the debugger.

This is also a starting point for release automation so we can start
shipping faster!
@daviwil daviwil force-pushed the daviwil/new-dev-setup branch from dd36d39 to 4e60081 Compare January 24, 2017 00:27
@daviwil
Copy link
Contributor Author

daviwil commented Jan 24, 2017

F5 Build -> Debug scenario works perfectly on Windows and Linux. Merging it!

@daviwil daviwil merged commit 9398a3f into develop Jan 24, 2017
@daviwil daviwil deleted the daviwil/new-dev-setup branch January 24, 2017 01:05
@daviwil daviwil modified the milestones: 0.9.1, 0.10.0 Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants