Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Centralize module loading#1520

Closed
dkattan wants to merge 7 commits into
PowerShell:masterPowerShell/PowerShellEditorServices:masterfrom
dkattan:centralize-module-loadingdkattan/PowerShellEditorServices:centralize-module-loadingCopy head branch name to clipboard
Closed

Centralize module loading#1520
dkattan wants to merge 7 commits into
PowerShell:masterPowerShell/PowerShellEditorServices:masterfrom
dkattan:centralize-module-loadingdkattan/PowerShellEditorServices:centralize-module-loadingCopy head branch name to clipboard

Conversation

@dkattan

@dkattan dkattan commented Jul 5, 2021

Copy link
Copy Markdown
Contributor

This builds on top of #1514 and is a pre-requisite for

#1516 and #1507

By centralizing all module loading into PowerShellContextService.cs, we can more easily honor the -BundledModulesPath parameter as we aren't building the relative path to our modules folder in multiple locations. Additionally, since we have all the information we need in PowerShellContextService to determine which modules will be necessary, we can load them all using a method compatible with the runspace, as Import-Module isn't always available and sometimes you need to use initialSessionState.ImportPSModuleFromPath

dependabot Bot and others added 3 commits June 8, 2021 12:26
@dkattan

dkattan commented Jul 6, 2021

Copy link
Copy Markdown
Contributor Author

Closing as #1516 includes these changes

@dkattan dkattan closed this Jul 6, 2021
@dkattan dkattan reopened this Jul 13, 2021
@dkattan

dkattan commented Jul 13, 2021

Copy link
Copy Markdown
Contributor Author

Re-opening as #1516 didn't end up centralizing the module loading, just the PSReadLine changes.

@dkattan dkattan marked this pull request as ready for review July 28, 2021 21:26
@dkattan dkattan requested a review from rjmholt as a code owner July 28, 2021 21:26
@dkattan dkattan force-pushed the centralize-module-loading branch from 192d25e to 65ff98d Compare August 4, 2021 18:43
@dkattan dkattan requested a review from andyleejordan as a code owner August 4, 2021 18:43
@dkattan dkattan force-pushed the centralize-module-loading branch from 65ff98d to d1c5e1a Compare August 4, 2021 19:02
@dkattan

dkattan commented Aug 4, 2021

Copy link
Copy Markdown
Contributor Author

Will resubmit new merge request with squashed commits.

@dkattan dkattan closed this Aug 4, 2021
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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.