Skip to content

Commit 5940ad1

Browse files
authored
Merge pull request #271 from PowerShell/release/0.7.0
Release 0.7.0
2 parents 3303b56 + ce86bac commit 5940ad1

36 files changed

+828
-375
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ lock
2626
.corext/gen
2727
registered_data.ini
2828
.vs/
29+
module/
2930

3031
docs/_site/
3132
docs/_repo/

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# PowerShell Editor Services Release History
22

3+
## 0.7.0
4+
### Thursday, August 18, 2016
5+
6+
#### Introducing support for Linux and macOS!
7+
8+
This release marks the beginning of our support for Linux and macOS via
9+
the new [cross-platform release of PowerShell](https://github.com/PowerShell/PowerShell).
10+
11+
NuGet packages will be provided in the upcoming 0.7.1 release.
12+
13+
#### Other improvements
14+
15+
- Introduced a new TCP channel to provide a commonly-available communication channel
16+
across multiple editors and platforms
17+
- PowerShell Script Analyzer integration has been shifted from direct use via DLL to
18+
consuming the PowerShell module and cmdlets
19+
- Updated code to account for platform differences across Windows and Linux/macOS
20+
- Improved stability of the language service when being used in Sublime Text
21+
322
## 0.6.2
423
### Tuesday, August 9, 2016
524

PowerShellEditorServices.sln

-16
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{F594E7FD-1E7
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{422E561A-8118-4BE7-A54F-9309E4F03AAE}"
99
EndProject
10-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "submodules", "submodules", "{AF08DA0C-B0A6-47AD-AC55-E13C687D4A91}"
11-
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScriptAnalyzerEngine", "submodules\PSScriptAnalyzer\Engine\ScriptAnalyzerEngine.csproj", "{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}"
13-
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScriptAnalyzerBuiltinRules", "submodules\PSScriptAnalyzer\Rules\ScriptAnalyzerBuiltinRules.csproj", "{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}"
15-
EndProject
1610
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerShellEditorServices", "src\PowerShellEditorServices\PowerShellEditorServices.csproj", "{81E8CBCD-6319-49E7-9662-0475BD0791F4}"
1711
EndProject
1812
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerShellEditorServices.Host", "src\PowerShellEditorServices.Host\PowerShellEditorServices.Host.csproj", "{B2F6369A-D737-4AFD-8B81-9B094DB07DA7}"
@@ -55,14 +49,6 @@ Global
5549
Release|Any CPU = Release|Any CPU
5650
EndGlobalSection
5751
GlobalSection(ProjectConfigurationPlatforms) = postSolution
58-
{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
59-
{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}.Debug|Any CPU.Build.0 = Debug|Any CPU
60-
{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}.Release|Any CPU.ActiveCfg = Release|Any CPU
61-
{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60}.Release|Any CPU.Build.0 = Release|Any CPU
62-
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
63-
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}.Debug|Any CPU.Build.0 = Debug|Any CPU
64-
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}.Release|Any CPU.ActiveCfg = Release|Any CPU
65-
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E}.Release|Any CPU.Build.0 = Release|Any CPU
6652
{81E8CBCD-6319-49E7-9662-0475BD0791F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
6753
{81E8CBCD-6319-49E7-9662-0475BD0791F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
6854
{81E8CBCD-6319-49E7-9662-0475BD0791F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -108,8 +94,6 @@ Global
10894
HideSolutionNode = FALSE
10995
EndGlobalSection
11096
GlobalSection(NestedProjects) = preSolution
111-
{F4BDE3D0-3EEF-4157-8A3E-722DF7ADEF60} = {AF08DA0C-B0A6-47AD-AC55-E13C687D4A91}
112-
{C33B6B9D-E61C-45A3-9103-895FD82A5C1E} = {AF08DA0C-B0A6-47AD-AC55-E13C687D4A91}
11397
{81E8CBCD-6319-49E7-9662-0475BD0791F4} = {EE0A010C-E246-49AE-92E7-AD4320C45086}
11498
{B2F6369A-D737-4AFD-8B81-9B094DB07DA7} = {EE0A010C-E246-49AE-92E7-AD4320C45086}
11599
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028} = {422E561A-8118-4BE7-A54F-9309E4F03AAE}

appveyor.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ version: '$(core_version).{build}'
22
os: WMF 5
33
configuration: Release
44
clone_depth: 10
5+
skip_tags: true
56

67
environment:
7-
core_version: '0.6.2'
8+
core_version: '0.7.0'
89
prerelease_name: '-beta'
910

1011
branches:
1112
only:
1213
- master
14+
- develop
1315

1416
# NOTE: If you need to debug a problem with the AppVeyor build, uncomment the
1517
# following two lines and push them to your PR branch. Once the next
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,120 @@
1-
#
2-
# Module manifest for module 'PowerShellEditorServices'
3-
#
4-
# Generated by: daviwil
5-
#
6-
# Generated on: 5/12/2016
7-
#
8-
9-
@{
10-
11-
# Script module or binary module file associated with this manifest.
12-
RootModule = 'PowerShellEditorServices.psm1'
13-
14-
# Version number of this module.
15-
ModuleVersion = '0.7.0'
16-
17-
# Supported PSEditions
18-
#CompatiblePSEditions = @("Desktop", "Core")
19-
20-
# ID used to uniquely identify this module
21-
GUID = '9ca15887-53a2-479a-9cda-48d26bcb6c47'
22-
23-
# Author of this module
24-
Author = 'Microsoft'
25-
26-
# Company or vendor of this module
27-
CompanyName = 'Microsoft'
28-
29-
# Copyright statement for this module
30-
Copyright = '(c) 2016 Microsoft. All rights reserved.'
31-
32-
# Description of the functionality provided by this module
33-
# Description = ''
34-
35-
# Minimum version of the Windows PowerShell engine required by this module
36-
# PowerShellVersion = ''
37-
38-
# Name of the Windows PowerShell host required by this module
39-
#PowerShellHostName = ''
40-
41-
# Minimum version of the Windows PowerShell host required by this module
42-
# PowerShellHostVersion = ''
43-
44-
# Minimum version of Microsoft .NET Framework required by this module
45-
# DotNetFrameworkVersion = ''
46-
47-
# Minimum version of the common language runtime (CLR) required by this module
48-
# CLRVersion = ''
49-
50-
# Processor architecture (None, X86, Amd64) required by this module
51-
# ProcessorArchitecture = ''
52-
53-
# Modules that must be imported into the global environment prior to importing this module
54-
# RequiredModules = @()
55-
56-
# Assemblies that must be loaded prior to importing this module
57-
# RequiredAssemblies = @()
58-
59-
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
61-
62-
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
64-
65-
# Format files (.ps1xml) to be loaded when importing this module
66-
# FormatsToProcess = @()
67-
68-
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
69-
# NestedModules = @()
70-
71-
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = @('Start-EditorServicesHost')
73-
74-
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
75-
CmdletsToExport = @()
76-
77-
# Variables to export from this module
78-
VariablesToExport = '*'
79-
80-
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
81-
AliasesToExport = @()
82-
83-
# DSC resources to export from this module
84-
# DscResourcesToExport = @()
85-
86-
# List of all modules packaged with this module
87-
# ModuleList = @()
88-
89-
# List of all files packaged with this module
90-
# FileList = @()
91-
92-
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
93-
PrivateData = @{
94-
95-
PSData = @{
96-
97-
# Tags applied to this module. These help with module discovery in online galleries.
98-
# Tags = @()
99-
100-
# A URL to the license for this module.
101-
# LicenseUri = ''
102-
103-
# A URL to the main website for this project.
104-
# ProjectUri = ''
105-
106-
# A URL to an icon representing this module.
107-
# IconUri = ''
108-
109-
# ReleaseNotes of this module
110-
# ReleaseNotes = ''
111-
112-
} # End of PSData hashtable
113-
114-
} # End of PrivateData hashtable
115-
116-
# HelpInfo URI of this module
117-
# HelpInfoURI = ''
118-
119-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
120-
# DefaultCommandPrefix = ''
121-
122-
}
123-
1+
#
2+
# Module manifest for module 'PowerShellEditorServices'
3+
#
4+
# Generated by: daviwil
5+
#
6+
# Generated on: 5/12/2016
7+
#
8+
9+
@{
10+
11+
# Script module or binary module file associated with this manifest.
12+
RootModule = 'PowerShellEditorServices.psm1'
13+
14+
# Version number of this module.
15+
ModuleVersion = '0.7.0'
16+
17+
# ID used to uniquely identify this module
18+
GUID = '9ca15887-53a2-479a-9cda-48d26bcb6c47'
19+
20+
# Author of this module
21+
Author = 'Microsoft'
22+
23+
# Company or vendor of this module
24+
CompanyName = 'Microsoft'
25+
26+
# Copyright statement for this module
27+
Copyright = '(c) 2016 Microsoft. All rights reserved.'
28+
29+
# Description of the functionality provided by this module
30+
# Description = ''
31+
32+
# Minimum version of the Windows PowerShell engine required by this module
33+
# PowerShellVersion = ''
34+
35+
# Name of the Windows PowerShell host required by this module
36+
#PowerShellHostName = ''
37+
38+
# Minimum version of the Windows PowerShell host required by this module
39+
# PowerShellHostVersion = ''
40+
41+
# Minimum version of Microsoft .NET Framework required by this module
42+
# DotNetFrameworkVersion = ''
43+
44+
# Minimum version of the common language runtime (CLR) required by this module
45+
# CLRVersion = ''
46+
47+
# Processor architecture (None, X86, Amd64) required by this module
48+
# ProcessorArchitecture = ''
49+
50+
# Modules that must be imported into the global environment prior to importing this module
51+
# RequiredModules = @()
52+
53+
# Assemblies that must be loaded prior to importing this module
54+
# RequiredAssemblies = @()
55+
56+
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
57+
# ScriptsToProcess = @()
58+
59+
# Type files (.ps1xml) to be loaded when importing this module
60+
# TypesToProcess = @()
61+
62+
# Format files (.ps1xml) to be loaded when importing this module
63+
# FormatsToProcess = @()
64+
65+
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
66+
# NestedModules = @()
67+
68+
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
69+
FunctionsToExport = @('Start-EditorServicesHost')
70+
71+
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
72+
CmdletsToExport = @()
73+
74+
# Variables to export from this module
75+
VariablesToExport = '*'
76+
77+
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
78+
AliasesToExport = @()
79+
80+
# DSC resources to export from this module
81+
# DscResourcesToExport = @()
82+
83+
# List of all modules packaged with this module
84+
# ModuleList = @()
85+
86+
# List of all files packaged with this module
87+
# FileList = @()
88+
89+
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
90+
PrivateData = @{
91+
92+
PSData = @{
93+
94+
# Tags applied to this module. These help with module discovery in online galleries.
95+
# Tags = @()
96+
97+
# A URL to the license for this module.
98+
# LicenseUri = ''
99+
100+
# A URL to the main website for this project.
101+
# ProjectUri = ''
102+
103+
# A URL to an icon representing this module.
104+
# IconUri = ''
105+
106+
# ReleaseNotes of this module
107+
# ReleaseNotes = ''
108+
109+
} # End of PSData hashtable
110+
111+
} # End of PrivateData hashtable
112+
113+
# HelpInfo URI of this module
114+
# HelpInfoURI = ''
115+
116+
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
117+
# DefaultCommandPrefix = ''
118+
119+
}
120+

module/PowerShellEditorServices/PowerShellEditorServices.psm1

+10-19
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
if (!$PSVersionTable.PSEdition -or $PSVersionTable.PSEdition -eq "Desktop") {
2-
Add-Type -Path "$PSScriptRoot\bin\Desktop\Microsoft.PowerShell.EditorServices.dll"
3-
Add-Type -Path "$PSScriptRoot\bin\Desktop\Microsoft.PowerShell.EditorServices.Host.dll"
2+
Add-Type -Path "$PSScriptRoot/bin/Desktop/Microsoft.PowerShell.EditorServices.dll"
3+
Add-Type -Path "$PSScriptRoot/bin/Desktop/Microsoft.PowerShell.EditorServices.Host.dll"
44
}
55
else {
6-
Add-Type -Path "$PSScriptRoot\bin\Nano\Microsoft.PowerShell.EditorServices.Nano.dll"
6+
Add-Type -Path "$PSScriptRoot/bin/Nano/Microsoft.PowerShell.EditorServices.Nano.dll"
77
}
88

99
function Start-EditorServicesHost {
@@ -26,13 +26,13 @@ function Start-EditorServicesHost {
2626

2727
[Parameter(Mandatory=$true)]
2828
[ValidateNotNullOrEmpty()]
29-
[string]
30-
$LanguageServicePipeName,
29+
[int]
30+
$LanguageServicePort,
3131

3232
[Parameter(Mandatory=$true)]
3333
[ValidateNotNullOrEmpty()]
34-
[string]
35-
$DebugServicePipeName,
34+
[int]
35+
$DebugServicePort,
3636

3737
[ValidateNotNullOrEmpty()]
3838
[string]
@@ -45,9 +45,6 @@ function Start-EditorServicesHost {
4545
[ValidateSet("Normal", "Verbose", "Error")]
4646
$LogLevel = "Normal",
4747

48-
[switch]
49-
$WaitForCompletion,
50-
5148
[switch]
5249
$WaitForDebugger
5350
)
@@ -69,19 +66,13 @@ function Start-EditorServicesHost {
6966
[System.IO.Path]::GetDirectoryName($profile.CurrentUserAllHosts));
7067

7168
$editorServicesHost.StartLogging($LogPath, $LogLevel);
72-
$editorServicesHost.StartLanguageService($LanguageServicePipeName, $profilePaths);
73-
$editorServicesHost.StartDebugService($DebugServicePipeName, $profilePaths);
74-
75-
Write-Output "PowerShell Editor Services host has started."
76-
77-
if ($WaitForCompletion.IsPresent) {
78-
$editorServicesHost.WaitForCompletion();
79-
}
69+
$editorServicesHost.StartLanguageService($LanguageServicePort, $profilePaths);
70+
$editorServicesHost.StartDebugService($DebugServicePort, $profilePaths);
8071
}
8172
catch {
8273
Write-Error "PowerShell Editor Services host initialization failed, terminating."
8374
Write-Error $_.Exception
8475
}
8576

8677
return $editorServicesHost
87-
}
78+
}

0 commit comments

Comments
 (0)