4
4
//
5
5
6
6
using Microsoft . PowerShell . EditorServices . Console ;
7
+ using Microsoft . PowerShell . EditorServices . Utility ;
7
8
using System ;
8
9
using System . Management . Automation . Host ;
9
10
@@ -65,8 +66,10 @@ public override string Name
65
66
66
67
public override Version Version
67
68
{
68
- // TODO: Pull this from the host application
69
- get { return new Version ( "0.1.0" ) ; }
69
+ get
70
+ {
71
+ return this . GetType ( ) . Assembly . GetName ( ) . Version ;
72
+ }
70
73
}
71
74
72
75
// TODO: Pull these from IConsoleHost
@@ -88,22 +91,22 @@ public override PSHostUserInterface UI
88
91
89
92
public override void EnterNestedPrompt ( )
90
93
{
91
- throw new NotImplementedException ( ) ;
94
+ Logger . Write ( LogLevel . Verbose , "EnterNestedPrompt() called." ) ;
92
95
}
93
96
94
97
public override void ExitNestedPrompt ( )
95
98
{
96
- throw new NotImplementedException ( ) ;
99
+ Logger . Write ( LogLevel . Verbose , "ExitNestedPrompt() called." ) ;
97
100
}
98
101
99
102
public override void NotifyBeginApplication ( )
100
103
{
101
- throw new NotImplementedException ( ) ;
104
+ Logger . Write ( LogLevel . Verbose , "NotifyBeginApplication() called." ) ;
102
105
}
103
106
104
107
public override void NotifyEndApplication ( )
105
108
{
106
- throw new NotImplementedException ( ) ;
109
+ Logger . Write ( LogLevel . Verbose , "NotifyEndApplication() called." ) ;
107
110
}
108
111
109
112
public override void SetShouldExit ( int exitCode )
0 commit comments