This repository was archived by the owner on Dec 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,10 @@ export const CONSTANTS = {
69
69
"error.installationError" ,
70
70
"Installation Error"
71
71
) ,
72
+ INSTALLATION_ERROR : localize (
73
+ "error.installationError" ,
74
+ "Installation Error"
75
+ ) ,
72
76
INVALID_FILE_EXTENSION_DEBUG : localize (
73
77
"error.invalidFileExtensionDebug" ,
74
78
"The file you tried to run isn't a Python file."
Original file line number Diff line number Diff line change @@ -921,6 +921,22 @@ export async function activate(context: vscode.ExtensionContext) {
921
921
}
922
922
) ;
923
923
924
+ const showReleaseNote = vscode . commands . registerCommand (
925
+ "deviceSimulatorExpress." ,
926
+ ( port , showWarning = true ) => {
927
+ if ( serialMonitor ) {
928
+ telemetryAI . runWithLatencyMeasure ( ( ) => {
929
+ serialMonitor . closeSerialMonitor ( port , showWarning ) ;
930
+ } , TelemetryEventName . COMMAND_SERIAL_MONITOR_CLOSE ) ;
931
+ } else {
932
+ vscode . window . showErrorMessage (
933
+ CONSTANTS . ERROR . NO_FOLDER_OPENED
934
+ ) ;
935
+ console . info ( "Serial monitor is not defined." ) ;
936
+ }
937
+ }
938
+ ) ;
939
+
924
940
UsbDetector . getInstance ( ) . initialize ( context . extensionPath ) ;
925
941
UsbDetector . getInstance ( ) . startListening ( ) ;
926
942
You can’t perform that action at this time.
0 commit comments