Skip to content

Commit 0283d5f

Browse files
committed
Improve existing .psd1 and .psm1 files for consistency
1 parent 4ee75b2 commit 0283d5f

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

module/PowerShellEditorServices/Commands/PowerShellEditorServices.Commands.psd1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Author = 'Microsoft'
2424
CompanyName = 'Microsoft'
2525

2626
# Copyright statement for this module
27-
Copyright = '(c) 2016 Microsoft. All rights reserved.'
27+
Copyright = '(c) 2017 Microsoft. All rights reserved.'
2828

2929
# Description of the functionality provided by this module
3030
Description = 'Provides internal commands for PowerShell Editor Services that only work in an editor session.'
@@ -105,10 +105,10 @@ PrivateData = @{
105105
# Tags = @()
106106

107107
# A URL to the license for this module.
108-
# LicenseUri = ''
108+
LicenseUri = 'https://github.com/PowerShell/PowerShellEditorServices/blob/master/LICENSE'
109109

110110
# A URL to the main website for this project.
111-
# ProjectUri = ''
111+
ProjectUri = 'https://github.com/PowerShell/PowerShellEditorServices'
112112

113113
# A URL to an icon representing this module.
114114
# IconUri = ''
@@ -127,4 +127,3 @@ PrivateData = @{
127127
# DefaultCommandPrefix = ''
128128

129129
}
130-

module/PowerShellEditorServices/Commands/PowerShellEditorServices.Commands.psm1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# Copyright (c) Microsoft. All rights reserved.
3+
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
#
5+
16
Import-LocalizedData -BindingVariable Strings -FileName Strings -ErrorAction Ignore
27

38
Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 | ForEach-Object {

module/PowerShellEditorServices/PowerShellEditorServices.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Author = 'Microsoft'
2424
CompanyName = 'Microsoft'
2525

2626
# Copyright statement for this module
27-
Copyright = '(c) 2016 Microsoft. All rights reserved.'
27+
Copyright = '(c) 2017 Microsoft. All rights reserved.'
2828

2929
# Description of the functionality provided by this module
3030
# Description = ''
@@ -95,10 +95,10 @@ PrivateData = @{
9595
# Tags = @()
9696

9797
# A URL to the license for this module.
98-
# LicenseUri = ''
98+
LicenseUri = 'https://github.com/PowerShell/PowerShellEditorServices/blob/master/LICENSE'
9999

100100
# A URL to the main website for this project.
101-
# ProjectUri = ''
101+
ProjectUri = 'https://github.com/PowerShell/PowerShellEditorServices'
102102

103103
# A URL to an icon representing this module.
104104
# IconUri = ''

module/PowerShellEditorServices/PowerShellEditorServices.psm1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# Copyright (c) Microsoft. All rights reserved.
3+
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
#
5+
16
if (!$PSVersionTable.PSEdition -or $PSVersionTable.PSEdition -eq "Desktop") {
27
Add-Type -Path "$PSScriptRoot/bin/Desktop/Microsoft.PowerShell.EditorServices.dll"
38
Add-Type -Path "$PSScriptRoot/bin/Desktop/Microsoft.PowerShell.EditorServices.Host.dll"
@@ -52,6 +57,9 @@ function Start-EditorServicesHost {
5257
[switch]
5358
$DebugServiceOnly,
5459

60+
[string[]]
61+
$AdditionalModules = @(),
62+
5563
[string[]]
5664
[ValidateNotNull()]
5765
$FeatureFlags = @(),
@@ -69,6 +77,7 @@ function Start-EditorServicesHost {
6977
$BundledModulesPath,
7078
$EnableConsoleRepl.IsPresent,
7179
$WaitForDebugger.IsPresent,
80+
$AdditionalModules,
7281
$FeatureFlags)
7382

7483
# Build the profile paths using the root paths of the current $profile variable

0 commit comments

Comments
 (0)