44//
55
66using Microsoft . PowerShell . EditorServices . Console ;
7+ using Microsoft . PowerShell . EditorServices . Utility ;
78using System ;
89using System . Management . Automation . Host ;
910
@@ -65,8 +66,10 @@ public override string Name
6566
6667 public override Version Version
6768 {
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+ }
7073 }
7174
7275 // TODO: Pull these from IConsoleHost
@@ -88,22 +91,22 @@ public override PSHostUserInterface UI
8891
8992 public override void EnterNestedPrompt ( )
9093 {
91- throw new NotImplementedException ( ) ;
94+ Logger . Write ( LogLevel . Verbose , "EnterNestedPrompt() called." ) ;
9295 }
9396
9497 public override void ExitNestedPrompt ( )
9598 {
96- throw new NotImplementedException ( ) ;
99+ Logger . Write ( LogLevel . Verbose , "ExitNestedPrompt() called." ) ;
97100 }
98101
99102 public override void NotifyBeginApplication ( )
100103 {
101- throw new NotImplementedException ( ) ;
104+ Logger . Write ( LogLevel . Verbose , "NotifyBeginApplication() called." ) ;
102105 }
103106
104107 public override void NotifyEndApplication ( )
105108 {
106- throw new NotImplementedException ( ) ;
109+ Logger . Write ( LogLevel . Verbose , "NotifyEndApplication() called." ) ;
107110 }
108111
109112 public override void SetShouldExit ( int exitCode )
0 commit comments