This repository was archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 236
/
Copy pathconstants.ts
51 lines (43 loc) · 2.14 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as path from "path";
import * as vscode from "vscode";
export const ARDUINO_CONFIG_FILE = path.join(".vscode", "arduino.json");
export const CPP_CONFIG_FILE = path.join(".vscode", "c_cpp_properties.json");
/** The name of the intellisense configuration managed by vscode-arduino. */
export const C_CPP_PROPERTIES_CONFIG_NAME = "Arduino";
export enum LogLevel {
Info = "info",
Verbose = "verbose",
}
export const ARDUINO_MODE: vscode.DocumentSelector = [
{ language: "cpp", scheme: "file" },
{ language: "arduino", scheme: "file" },
];
export const ARDUINO_MANAGER_PROTOCOL = "arduino-manager";
export const BOARD_MANAGER_URI = vscode.Uri.parse("arduino-manager://arduino/arduino-boardsmanager");
export const LIBRARY_MANAGER_URI = vscode.Uri.parse("arduino-manager://arduino/arduino-librariesmanager");
export const BOARD_CONFIG_URI = vscode.Uri.parse("arduino-manager://arduino/arduino-config");
export const EXAMPLES_URI = vscode.Uri.parse("arduino-manager://arduino/arduino-examples");
export const messages = {
ARDUINO_FILE_ERROR: "The arduino.json file format is not correct.",
NO_BOARD_SELECTED: "Please select the board type first.",
INVALID_ARDUINO_PATH: "Cannot find Arduino tools.",
INVALID_COMMAND_PATH: "Cannot find the command file:",
SWITCH_TO_BUNDLED_CLI: "Use Arduino CLI bundled with this extension instead?",
REMOVE_ARDUINO_IDE_SUPPORT: "Support for the legacy Arduino IDE will be removed soon.",
FAILED_SEND_SERIALPORT: "Failed to send message to serial port.",
SERIAL_PORT_NOT_STARTED: "Serial Monitor has not been started.",
SEND_BEFORE_OPEN_SERIALPORT: "Please open a serial port first.",
NO_PROGRAMMMER_SELECTED: "Please select the programmer first.",
ARDUINO_CLI_NOT_EXECUTABLE: "The bundled Arduino CLI could not be marked executable. Ensure that VS Code is able to execute:",
};
export const statusBarPriority = {
PORT: 20,
OPEN_PORT: 30,
TIMESTAMP_FORMAT: 50,
BOARD: 60,
ENDING: 70,
SKETCH: 80,
PROGRAMMER: 90,
};