This repository was archived by the owner on Dec 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,6 +69,10 @@ export const CONSTANTS = {
6969 "error.installationError" ,
7070 "Installation Error"
7171 ) ,
72+ INSTALLATION_ERROR : localize (
73+ "error.installationError" ,
74+ "Installation Error"
75+ ) ,
7276 INVALID_FILE_EXTENSION_DEBUG : localize (
7377 "error.invalidFileExtensionDebug" ,
7478 "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) {
921921 }
922922 ) ;
923923
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+
924940 UsbDetector . getInstance ( ) . initialize ( context . extensionPath ) ;
925941 UsbDetector . getInstance ( ) . startListening ( ) ;
926942
You can’t perform that action at this time.
0 commit comments