You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Source/constants.ts
+58-58Lines changed: 58 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -51,84 +51,84 @@ export const CONSTANTS = {
51
51
"Writing to COM port (GetOverlappedResult): Unknown error code 121",
52
52
CPX_FILE_ERROR: localize(
53
53
"error.cpxFileFormat",
54
-
"The cpx.json file format is not correct."
54
+
"The cpx.json file format is not correct.",
55
55
),
56
56
DEBUGGER_SERVER_INIT_FAILED: (port: number)=>{
57
57
returnlocalize(
58
58
"error.debuggerServerInitFailed",
59
-
`Warning : The Debugger Server cannot be opened. Please try to free the port ${port} if it's already in use or select another one in your Settings 'Device Simulator Express: Debugger Server Port' and start another debug session.\n You can still debug your code but you won't be able to use the Simulator.`
59
+
`Warning : The Debugger Server cannot be opened. Please try to free the port ${port} if it's already in use or select another one in your Settings 'Device Simulator Express: Debugger Server Port' and start another debug session.\n You can still debug your code but you won't be able to use the Simulator.`,
60
60
);
61
61
},
62
62
DEBUGGING_SESSION_IN_PROGESS: localize(
63
63
"error.debuggingSessionInProgress",
64
-
"[ERROR] A debugging session is currently in progress, please stop it before running your code. \n"
64
+
"[ERROR] A debugging session is currently in progress, please stop it before running your code. \n",
65
65
),
66
66
DEPENDENCY_DOWNLOAD_ERROR:
67
67
"Dependency download could not be completed. Functionality may be limited. Please review the installation docs.",
`[ERROR] Failed to open serial port ${port} due to error: ${error}. \n`
78
+
`[ERROR] Failed to open serial port ${port} due to error: ${error}. \n`,
79
79
);
80
80
},
81
81
INSTALLATION_ERROR: localize(
82
82
"error.installationError",
83
-
"Installation Error"
83
+
"Installation Error",
84
84
),
85
85
86
86
INVALID_FILE_EXTENSION_DEBUG: localize(
87
87
"error.invalidFileExtensionDebug",
88
-
"The file you tried to run isn't a Python file."
88
+
"The file you tried to run isn't a Python file.",
89
89
),
90
90
INVALID_PYTHON_PATH: localize(
91
91
"error.invalidPythonPath",
92
-
'We found that your selected Python interpreter version is too low to run the extension. Please upgrade to version 3.7+ or select a different interpreter (CTRL+SHIFT+P and type "python.selectInterpreter") and restart the application.'
92
+
'We found that your selected Python interpreter version is too low to run the extension. Please upgrade to version 3.7+ or select a different interpreter (CTRL+SHIFT+P and type "python.selectInterpreter") and restart the application.',
"To deploy your code to the micro:bit, you must be using Python 3.3+"
96
+
"To deploy your code to the micro:bit, you must be using Python 3.3+",
97
97
),
98
98
NO_DEVICE: localize(
99
99
"error.noDevice",
100
-
"The device is not detected. Please double check if your board is connected and/or properly formatted"
100
+
"The device is not detected. Please double check if your board is connected and/or properly formatted",
101
101
),
102
102
NO_FILE_TO_RUN: localize(
103
103
"error.noFileToRun",
104
-
'[ERROR] We can\'t find a Python file to run. Please make sure you select or open a new ".py" code file, or use the "New File" command to get started and see useful links.\n'
104
+
'[ERROR] We can\'t find a Python file to run. Please make sure you select or open a new ".py" code file, or use the "New File" command to get started and see useful links.\n',
105
105
),
106
106
NO_FILE_TO_DEPLOY: localize(
107
107
"error.noFileToDeploy",
108
-
"[ERROR] We can't find a Python file to deploy to your device.\n"
108
+
"[ERROR] We can't find a Python file to deploy to your device.\n",
109
109
),
110
110
NO_FOLDER_OPENED: localize(
111
111
"error.noFolderCreated",
112
-
"In order to use the Serial Monitor, you need to open a folder and reload VS Code."
112
+
"In order to use the Serial Monitor, you need to open a folder and reload VS Code.",
113
113
),
114
114
NO_PROGRAM_FOUND_DEBUG: localize(
115
115
"error.noProgramFoundDebug",
116
-
"Cannot find a program to debug."
116
+
"Cannot find a program to debug.",
117
117
),
118
118
NO_PYTHON_PATH: localize(
119
119
"error.noPythonPath",
120
-
"We found that you don't have Python 3 installed on your computer, please install the latest version, add it to your PATH and try again."
120
+
"We found that you don't have Python 3 installed on your computer, please install the latest version, add it to your PATH and try again.",
121
121
),
122
122
RECONNECT_DEVICE: localize(
123
123
"error.reconnectDevice",
124
-
"Please disconnect your Circuit Playground Express and try again."
124
+
"Please disconnect your Circuit Playground Express and try again.",
"Your current configuration is already successfully set up for the Device Simulator Expresss."
144
+
"Your current configuration is already successfully set up for the Device Simulator Expresss.",
145
145
),
146
146
ARE_YOU_SURE: localize(
147
147
"info.areYouSure",
148
-
"Are you sure you don't want to install the dependencies? The extension can't run without installing them."
148
+
"Are you sure you don't want to install the dependencies? The extension can't run without installing them.",
149
149
),
150
150
CLOSED_SERIAL_PORT: (port: string)=>{
151
151
returnlocalize(
152
152
"info.closedSerialPort",
153
-
`[DONE] Closed the serial port - ${port} \n`
153
+
`[DONE] Closed the serial port - ${port} \n`,
154
154
);
155
155
},
156
156
COMPLETED_MESSAGE: "Completed",
157
157
CPX_JSON_ALREADY_GENERATED: localize(
158
158
"info.cpxJsonAlreadyGenerated",
159
-
"cpx.json has already been generated."
159
+
"cpx.json has already been generated.",
160
160
),
161
161
DEPLOY_DEVICE: localize(
162
162
"info.deployDevice",
163
-
"\n[INFO] Deploying code to the device...\n"
163
+
"\n[INFO] Deploying code to the device...\n",
164
164
),
165
165
DEPLOY_SIMULATOR: localize(
166
166
"info.deploySimulator",
167
-
"\n[INFO] Deploying code to the simulator...\n"
167
+
"\n[INFO] Deploying code to the simulator...\n",
168
168
),
169
169
DEPLOY_SUCCESS: localize(
170
170
"info.deploySuccess",
171
-
"\n[INFO] Code successfully copied! Your device should be loading and ready to go shortly.\n"
171
+
"\n[INFO] Code successfully copied! Your device should be loading and ready to go shortly.\n",
172
172
),
173
173
EXTENSION_ACTIVATED: localize(
174
174
"info.extensionActivated",
175
-
"Congratulations, your extension Device Simulator Express is now active!"
175
+
"Congratulations, your extension Device Simulator Express is now active!",
176
176
),
177
177
FILE_SELECTED: (filePath: string)=>{
178
178
returnlocalize(
179
179
"info.fileSelected",
180
-
`[INFO] File selected : ${filePath} \n`
180
+
`[INFO] File selected : ${filePath} \n`,
181
181
);
182
182
},
183
183
FIRST_TIME_WEBVIEW: localize(
184
184
"info.firstTimeWebview",
185
-
'To reopen the simulator select the command "Open Simulator" from command palette.'
185
+
'To reopen the simulator select the command "Open Simulator" from command palette.',
186
186
),
187
187
INSTALLING_PYTHON_VENV: localize(
188
188
"info.installingPythonVenv",
189
-
"A virtual environment is currently being created. The required Python packages will be installed. You will be prompted a message telling you when the installation is done."
189
+
"A virtual environment is currently being created. The required Python packages will be installed. You will be prompted a message telling you when the installation is done.",
190
190
),
191
191
INSTALL_PYTHON_DEPS: localize(
192
192
"info.installPythonDependencies",
193
-
"Do you want us to try and install this extension's dependencies on your selected Python interpreter for you?"
193
+
"Do you want us to try and install this extension's dependencies on your selected Python interpreter for you?",
194
194
),
195
195
INSTALL_PYTHON_VENV: localize(
196
196
"info.installPythonVenv",
197
-
"Do you want us to try and install this extension's dependencies via virtual environment for you?"
197
+
"Do you want us to try and install this extension's dependencies via virtual environment for you?",
198
198
),
199
199
NEW_FILE: localize(
200
200
"info.newFile",
201
-
"New to Python or the Circuit Playground Express? We are here to help!"
201
+
"New to Python or the Circuit Playground Express? We are here to help!",
202
202
),
203
203
NO_DEVICE_CHOSEN_TO_DEPLOY_TO: localize(
204
204
"info.noDeviceChosenToDeployTo",
205
-
"\n[INFO] No device was selected to deploy to.\n"
205
+
"\n[INFO] No device was selected to deploy to.\n",
206
206
),
207
207
NO_DEVICE_CHOSEN_TO_SIMULATE_TO: localize(
208
208
"info.noDeviceChosenToSimulateTo",
209
-
"\n[INFO] No device was selected to simulate.\n"
209
+
"\n[INFO] No device was selected to simulate.\n",
210
210
),
211
211
NO_DEVICE_CHOSEN_FOR_NEW_FILE: localize(
212
212
"info.noDeviceChosenForNewFile",
213
-
"\n[INFO] No device was selected to open a template file for.\n"
213
+
"\n[INFO] No device was selected to open a template file for.\n",
214
214
),
215
215
OPENED_SERIAL_PORT: (port: string)=>{
216
216
returnlocalize(
217
217
"info.openedSerialPort",
218
-
`[INFO] Opened the serial port - ${port} \n`
218
+
`[INFO] Opened the serial port - ${port} \n`,
219
219
);
220
220
},
221
221
OPENING_SERIAL_PORT: (port: string)=>{
222
222
returnlocalize(
223
223
"info.openingSerialPort",
224
-
`[STARTING] Opening the serial port - ${port} \n`
224
+
`[STARTING] Opening the serial port - ${port} \n`,
225
225
);
226
226
},
227
227
PLEASE_OPEN_FOLDER: localize(
228
228
"info.pleaseOpenFolder",
229
-
"Please open a folder first."
229
+
"Please open a folder first.",
230
230
),
231
231
REDIRECT: localize("info.redirect","You are being redirected."),
232
232
RUNNING_CODE: localize("info.runningCode","Running user code"),
233
233
SUCCESSFUL_INSTALL: localize(
234
234
"info.successfulInstall",
235
-
"Successfully set up the Python environment."
235
+
"Successfully set up the Python environment.",
236
236
),
237
237
THIRD_PARTY_WEBSITE_ADAFRUIT: localize(
238
238
"info.thirdPartyWebsiteAdafruit",
239
-
'By clicking "Agree and Proceed" you will be redirected to adafruit.com, a third party website not managed by Microsoft. Please note that your activity on adafruit.com is subject to Adafruit\'s privacy policy'
239
+
'By clicking "Agree and Proceed" you will be redirected to adafruit.com, a third party website not managed by Microsoft. Please note that your activity on adafruit.com is subject to Adafruit\'s privacy policy',
240
240
),
241
241
THIRD_PARTY_WEBSITE_PIP: localize(
242
242
"info.thirdPartyWebsitePip",
243
-
'By clicking "Agree and Proceed" you will be redirected to pip.pypa.io, a third party website not managed by Microsoft. Please note that your activity on pip.pypa.io is subject to PyPA\'s privacy policy'
243
+
'By clicking "Agree and Proceed" you will be redirected to pip.pypa.io, a third party website not managed by Microsoft. Please note that your activity on pip.pypa.io is subject to PyPA\'s privacy policy',
244
244
),
245
245
THIRD_PARTY_WEBSITE_PYTHON: localize(
246
246
"info.thirdPartyWebsitePython",
247
-
'By clicking "Agree and Proceed" you will be redirected to python.org, a third party website not managed by Microsoft. Please note that your activity on python.org is subject to Python\'s privacy policy'
247
+
'By clicking "Agree and Proceed" you will be redirected to python.org, a third party website not managed by Microsoft. Please note that your activity on python.org is subject to Python\'s privacy policy',
248
248
),
249
249
UPDATED_TO_EXTENSION_VENV: localize(
250
250
"info.updatedToExtensionsVenv",
251
-
"Automatically updated interpreter to point to extension's virtual environment."
251
+
"Automatically updated interpreter to point to extension's virtual environment.",
252
252
),
253
253
WELCOME_OUTPUT_TAB: localize(
254
254
"info.welcomeOutputTab",
255
-
"Welcome to the Device Simulator Express output tab!\n\n"
255
+
"Welcome to the Device Simulator Express output tab!\n\n",
0 commit comments