@@ -40,7 +40,7 @@ import { ResInstaller } from './ResInstaller';
4040import {
4141 ERROR , WARNING , INFORMATION ,
4242 view_str$operation$serialport , view_str$operation$baudrate , view_str$operation$serialport_name ,
43- txt_install_now , txt_yes
43+ txt_install_now , txt_yes , view_str$prompt$feedback , rating_text , later_text
4444} from './StringTable' ;
4545import { LogDumper } from './LogDumper' ;
4646import { StatusBarManager } from './StatusBarManager' ;
@@ -294,6 +294,23 @@ function postLaunchHook(extensionCtx: vscode.ExtensionContext) {
294294 }
295295 }
296296
297+ // not first launch
298+ else {
299+
300+ // A few days ago, show feedback message
301+ const some_days = 7 * ( 24 * 3600 * 1000 ) ;
302+ if ( ! appUsrData [ 'Feedbacked' ] &&
303+ Date . now ( ) - appUsrData [ 'InstallTime' ] > some_days ) {
304+ resManager . setAppUsrData ( 'Feedbacked' , true ) ;
305+ const msg = view_str$prompt$feedback ;
306+ vscode . window . showInformationMessage ( msg , rating_text ) . then ( ( ans ) => {
307+ if ( ans == rating_text ) {
308+ utility . openUrl ( `https://marketplace.visualstudio.com/items?itemName=CL.eide&ssr=false#review-details` ) ;
309+ }
310+ } ) ;
311+ }
312+ }
313+
297314 // refresh external tools now
298315 ResInstaller . instance ( ) . refreshExternalToolsIndex ( ) . catch ( err => {
299316 GlobalEvent . emit ( 'globalLog' , ExceptionToMessage ( err , 'Warning' ) ) ;
0 commit comments