File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ export function activate(context: vscode.ExtensionContext) {
24
24
vscode . window . showErrorMessage ( cliVersion . errorMessage ) ;
25
25
}
26
26
27
+ logInfo ( cliVersion . version . toString ( ) ) ;
28
+
27
29
let runCommand = ( project : Project ) => {
28
30
if ( vscode . workspace . rootPath === undefined ) {
29
31
vscode . window . showErrorMessage ( 'No workspace opened.' ) ;
@@ -68,6 +70,18 @@ export function activate(context: vscode.ExtensionContext) {
68
70
context . subscriptions . push ( runAndroidCommand ) ;
69
71
}
70
72
73
+ function logInfo ( cliVersion : string ) {
74
+ let channel = vscode . window . createOutputChannel ( "NativeScript Extension" ) ;
75
+ const packageJSON = vscode . extensions . getExtension ( "Telerik.nativescript" ) . packageJSON ;
76
+
77
+ packageJSON . version && channel . appendLine ( `Version: ${ packageJSON . version } ` ) ;
78
+ packageJSON . buildVersion && channel . appendLine ( `Build version: ${ packageJSON . buildVersion } ` ) ;
79
+ packageJSON . commitId && channel . appendLine ( `Commit id: ${ packageJSON . commitId } ` ) ;
80
+ channel . appendLine ( `NativeScript CLI: ${ cliVersion } ` ) ;
81
+
82
+ channel . show ( ) ;
83
+ }
84
+
71
85
export function deactivate ( ) {
72
86
Services . extensionServer ( ) . stop ( ) ;
73
87
}
You can’t perform that action at this time.
0 commit comments