Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
7bf0f35
Modified previous ConstrainedLanguage changes to support spawning run…
dkattan May 3, 2020
e50beb5
Removed unused code for creating ConstrainedRunspace
dkattan May 3, 2020
e7e2bfe
Updated PowerShellContextFactory.cs to not specify a LanguageMode and…
dkattan May 3, 2020
0dc040e
Removed unnecessary changes.
dkattan May 3, 2020
bbbcd07
Fixed compilation error.
dkattan May 4, 2020
6d425d2
Created internal overload for CreateRunspace that accepts InitialSess…
dkattan May 8, 2020
fd0e360
Removed comment
dkattan May 8, 2020
0548349
Modified previous ConstrainedLanguage changes to support spawning run…
dkattan May 3, 2020
8af273c
Removed unused code for creating ConstrainedRunspace
dkattan May 3, 2020
fecc78f
Removed unnecessary changes.
dkattan May 3, 2020
d418d26
Fixed compilation error.
dkattan May 4, 2020
46f2324
Created internal overload for CreateRunspace that accepts InitialSess…
dkattan May 8, 2020
a8753ee
Removed comment
dkattan May 8, 2020
d7ea74e
This works in a constrained runspace, but performance poor as PSES co…
dkattan Jun 1, 2020
79f4b8c
Added null check for profile when loaded from a Constrained Runspace
dkattan Jun 2, 2020
6c7da2b
Added default TabExpansion2 implementation so PSES works out of the b…
dkattan Jun 2, 2020
18dd6df
Merge remote-tracking branch 'upstream/master' into feature/constrain…
dkattan Jun 2, 2020
3ba1f4e
Added Default InitialSessionState to test suite
dkattan Jun 2, 2020
8866896
Merged latest changes from upstream.
dkattan May 21, 2021
db87496
Modified code to work from a Constrained Runspace.
dkattan Jun 2, 2021
99854df
Got modules to load as expected in Constrained Runspace by switching …
dkattan Jun 3, 2021
7111814
Removed reference to local profile
dkattan Jun 7, 2021
bdd993c
Removed BuildInfo.cs
dkattan Jun 18, 2021
1f738a6
Revert "Removed BuildInfo.cs"
dkattan Jun 18, 2021
bce3396
Undoing changes to BuildInfo.cs
dkattan Jun 18, 2021
124bd95
Undoing changes to BuildInfo.cs
dkattan Jun 18, 2021
9309e27
Copied BuildInfo.cs from master
dkattan Jun 18, 2021
74013af
Copied BuildInfo.cs from master
dkattan Jun 18, 2021
1fad2d0
Merge branch 'feature/constrained-runspace-support' of github.com:dka…
dkattan Jun 18, 2021
54196a8
Added comment indicating the purpose of the InitialSessionState varia…
dkattan Jun 18, 2021
87b94c9
Removed profile null check changes as those are done differently in P…
dkattan Jun 18, 2021
c697af8
Adding comments, removing unnecessary changes.
dkattan Jun 18, 2021
b893e08
Removing more unnecessary changes
dkattan Jun 18, 2021
e281448
Removing unintentional changes
dkattan Jun 18, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed compilation error.
  • Loading branch information
dkattan committed Jun 2, 2020
commit d418d2624c0f2e42d92f257521817c45b6d5f462
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,7 @@ private EditorServicesConfig CreateConfigObject()
var profile = (PSObject)GetVariableValue("profile");

var hostInfo = new HostInfo(HostName, HostProfileId, HostVersion);
// This ensures that all Runspaces are created with the same InitialSessionState as the runspace that started EditorServices
var initialSessionState = Runspace.DefaultRunspace.InitialSessionState;
var initialSessionState = InitialSessionState ?? Runspace.DefaultRunspace.InitialSessionState;
var editorServicesConfig = new EditorServicesConfig(hostInfo, Host, SessionDetailsPath, bundledModulesPath, LogPath)
{
FeatureFlags = FeatureFlags,
Expand Down