Skip to content

Commit 689ae35

Browse files
authored
Fix typos (#150)
* Fix typos Signed-off-by: tinyboxvk <[email protected]>
1 parent b40c5c4 commit 689ae35

File tree

13 files changed

+33
-32
lines changed

13 files changed

+33
-32
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"capabilities": {
5757
"virtualWorkspaces": {
5858
"supported": false,
59-
"description": "Raspberry Pi Pico extension is intended to be used localy."
59+
"description": "Raspberry Pi Pico extension is intended to be used locally."
6060
},
6161
"untrustedWorkspaces": {
6262
"supported": false,

scripts/pico_project.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def ParseCommandLine():
613613
parser.add_argument(
614614
"-tcVersion",
615615
"--toolchainVersion",
616-
help="ARM/RISCV Embeded Toolchain version to use (required)",
616+
help="ARM/RISCV Embedded Toolchain version to use (required)",
617617
)
618618
parser.add_argument(
619619
"-picotoolVersion",
@@ -790,7 +790,7 @@ def GenerateCMake(folder, params):
790790
CMAKE_DO_NOT_EDIT_HEADER_PREFIX,
791791
)
792792
else:
793-
# Prexisting CMake configuration - just adding cmake_header_us
793+
# Preexisting CMake configuration - just adding cmake_header_us
794794
file.write(cmake_header_us)
795795
# If no PICO_BOARD, then add a line for that, defaulting to pico
796796
if not any(["set(PICO_BOARD" in line for line in lines]):
@@ -1372,7 +1372,7 @@ def DoEverything(params):
13721372
params["wantEntryProjName"],
13731373
)
13741374

1375-
# If we have any ancilliary files, copy them to our project folder
1375+
# If we have any ancillary files, copy them to our project folder
13761376
# Currently only the picow with lwIP support needs an extra file, so just check that list
13771377
for feat in features_and_examples:
13781378
if feat in features_list:
@@ -1454,7 +1454,7 @@ def DoEverything(params):
14541454
CheckSystemType()
14551455

14561456
if args.name == None:
1457-
print("No project name specfied\n")
1457+
print("No project name specified\n")
14581458
sys.exit(-1)
14591459

14601460
# Check if we were provided a compiler path, and override the default if so
@@ -1463,7 +1463,7 @@ def DoEverything(params):
14631463
codeToolchainPath(args.toolchainVersion) + "/bin/" + COMPILER_NAME()
14641464
)
14651465
else:
1466-
print("No toolchain version specfied\n")
1466+
print("No toolchain version specified\n")
14671467
sys.exit(-1)
14681468

14691469
projectRoot = Path(os.getcwd()) if not args.projectRoot else Path(args.projectRoot)

src/commands/switchSDK.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export default class SwitchSDKCommand extends Command {
208208
toolchain: toolchain,
209209
})),
210210
{
211-
placeHolder: "Select ARM/RISCV Embeded Toolchain version",
211+
placeHolder: "Select ARM/RISCV Embedded Toolchain version",
212212
}
213213
);
214214
} catch {

src/utils/cmakeUtil.mts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export async function cmakeUpdateBoard(
256256
folder: Uri,
257257
newBoard: string
258258
): Promise<boolean> {
259-
// TODO: support for scaning for seperate locations of the CMakeLists.txt file in the project
259+
// TODO: support for scanning for separate locations of the CMakeLists.txt file in the project
260260
const cmakeFilePath = join(folder.fsPath, "CMakeLists.txt");
261261
const picoBoardRegex = /^set\(PICO_BOARD\s+([^)]+)\)$/m;
262262

@@ -311,8 +311,8 @@ export async function cmakeUpdateBoard(
311311
* Updates the sdk and toolchain relay paths in the CMakeLists.txt file.
312312
*
313313
* @param folder The root folder of the workspace to configure.
314-
* @param newSDKVersion The verison in "$HOME/.picosdk/sdk/${newSDKVersion}"
315-
* @param newToolchainVersion The verison in "$HOME/.picosdk/toolchain/${newToolchainVersion}"
314+
* @param newSDKVersion The version in "$HOME/.picosdk/sdk/${newSDKVersion}"
315+
* @param newToolchainVersion The version in "$HOME/.picosdk/toolchain/${newToolchainVersion}"
316316
*/
317317
export async function cmakeUpdateSDK(
318318
folder: Uri,
@@ -321,7 +321,7 @@ export async function cmakeUpdateSDK(
321321
newPicotoolVersion: string,
322322
reconfigure: boolean = true
323323
): Promise<boolean> {
324-
// TODO: support for scaning for seperate locations of the CMakeLists.txt file in the project
324+
// TODO: support for scanning for separate locations of the CMakeLists.txt file in the project
325325
const cmakeFilePath = join(folder.fsPath, "CMakeLists.txt");
326326
// This regex requires multiline (m) and dotall (s) flags to work
327327
const updateSectionRegex = new RegExp(
@@ -437,7 +437,7 @@ export async function cmakeUpdateSDK(
437437
* Extracts the sdk and toolchain versions from the CMakeLists.txt file.
438438
*
439439
* @param cmakeFilePath The path to the CMakeLists.txt file.
440-
* @returns An tupple with the [sdk, toolchain, picotool] versions or null if the file could not
440+
* @returns A tuple with the [sdk, toolchain, picotool] versions or null if the file could not
441441
* be read or the versions could not be extracted.
442442
*/
443443
export async function cmakeGetSelectedToolchainAndSDKVersions(

src/utils/download.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ export async function downloadAndInstallNinja(
994994
/// by reading /proc/cpuinfo and /etc/os-release
995995
// async function isRaspberryPi(): Promise<boolean> {
996996
// try {
997-
// // TODO: imporove detection speed
997+
// // TODO: improve detection speed
998998
// const cpuInfo = await readFile("/proc/cpuinfo", "utf8");
999999
// const osRelease = await readFile("/etc/os-release", "utf8");
10001000
// const versionId = osRelease.match(/VERSION_ID="?(\d+)"?/)?.[1] ?? "0";
@@ -1046,7 +1046,7 @@ export async function downloadAndInstallOpenOCD(
10461046
const extraCallback = (): void => {
10471047
if (process.platform !== "win32") {
10481048
// on darwin and linux platforms create windows compatible alias
1049-
// so confiuration works on all platforms
1049+
// so configuration works on all platforms
10501050
symlinkSync(
10511051
join(targetDirectory, "openocd"),
10521052
join(targetDirectory, "openocd.exe"),
@@ -1264,10 +1264,10 @@ export async function downloadEmbedPython(
12641264
rmSync(archiveFilePath, { recursive: true, force: true });
12651265

12661266
return success ? `${settingsTargetDirectory}/python.exe` : undefined;
1267-
} catch (errror) {
1267+
} catch (error) {
12681268
Logger.error(
12691269
LoggerSource.downloader,
1270-
`Extracting Embed Python failed: ${unknownErrorToString(errror)}`
1270+
`Extracting Embed Python failed: ${unknownErrorToString(error)}`
12711271
);
12721272

12731273
return;

src/utils/downloadGit.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export async function downloadGit(
7979
Logger.error(
8080
LoggerSource.gitDownloader,
8181
"Downloading git failed:",
82-
response.statusMessage ?? "{No status message vailable}."
82+
response.statusMessage ?? "{No status message available}."
8383
);
8484

8585
resolve(undefined);
@@ -112,7 +112,7 @@ export async function downloadGit(
112112

113113
if (success) {
114114
// remove include section from gitconfig included in MiniGit
115-
// which hardcodes the a path in Programm Files to be used by this git executable
115+
// which hardcodes the a path in Program Files to be used by this git executable
116116
exec(
117117
`${
118118
process.env.ComSpec === "powershell.exe" ? "&" : ""

src/utils/githubREST.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface AuthorizationHeaders {
109109
*/
110110
export function getAuthorizationHeaders(): AuthorizationHeaders {
111111
const headers: AuthorizationHeaders = {};
112-
// takes some time to execute (noticable in UI)
112+
// takes some time to execute (noticeable in UI)
113113
const githubPAT = Settings.getInstance()?.getString(SettingsKey.githubToken);
114114
if (githubPAT && githubPAT.length > 0) {
115115
Logger.info(
@@ -248,7 +248,7 @@ async function getReleases(repository: GithubRepository): Promise<string[]> {
248248
return getReleases(repository);
249249
} else if (response.status === HTTP_STATUS_FORBIDDEN) {
250250
// return the default response as without a PAT
251-
// ther is no way a rerun will succeed in the near future
251+
// there is no way a rerun will succeed in the near future
252252
throw new Error("GitHub API Code 403 Forbidden. Rate limit exceeded.");
253253
} else if (response.status !== 200) {
254254
throw new Error("Error http status code: " + response.status);
@@ -364,7 +364,7 @@ export async function getGithubReleaseByTag(
364364
return getGithubReleaseByTag(repository, tag);
365365
} else if (response.status === HTTP_STATUS_FORBIDDEN) {
366366
// return the default response as without a PAT
367-
// ther is no way a rerun will succeed in the near future
367+
// there is no way a rerun will succeed in the near future
368368
throw new Error("GitHub API Code 403 Forbidden. Rate limit exceeded.");
369369
} else if (response.status !== 200) {
370370
throw new Error("Error http status code: " + response.status);

src/utils/macOSUtils.mts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ export default class MacOSPythonPkgExtractor {
7272
try {
7373
execSync(command);
7474
} catch (error) {
75-
const mesage = error instanceof Error ? error.message : (error as string);
75+
const message =
76+
error instanceof Error ? error.message : (error as string);
7677
this._logger.error(
77-
`Error executing command: ${command} Error: ${mesage}`
78+
`Error executing command: ${command} Error: ${message}`
7879
);
7980
throw error;
8081
}

src/utils/requirementsUtil.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export async function showRequirementsNotMetErrorMessage(
2525
}
2626

2727
/**
28-
* Checks if a git executable is avialable or try to install if possible.
28+
* Checks if a git executable is available or try to install if possible.
2929
*
3030
* @returns True if git is available, false otherwise.
3131
*/

src/webview/newProjectPanel.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ export class NewProjectPanel {
14931493

14941494
this._versionBundlesLoader = new VersionBundlesLoader(this._extensionUri);
14951495

1496-
// construct auxiliar html
1496+
// construct auxiliary html
14971497
// TODO: add offline handling - only load installed ones
14981498
let toolchainsHtml = "";
14991499
let picoSDKsHtml = "";
@@ -1883,7 +1883,7 @@ export class NewProjectPanel {
18831883
</div>
18841884
18851885
<div class="advanced-option" hidden>
1886-
<label for="sel-toolchain" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Select ARM/RISCV Embeded Toolchain version</label>
1886+
<label for="sel-toolchain" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Select ARM/RISCV Embedded Toolchain version</label>
18871887
<select id="sel-toolchain" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
18881888
${toolchainsHtml}
18891889
</select>
@@ -2212,7 +2212,7 @@ export class NewProjectPanel {
22122212
): Promise<void> {
22132213
const isWindows = process.platform === "win32";
22142214

2215-
// convert the selected board type to a vaild option
2215+
// convert the selected board type to a valid option
22162216
// for the project generator
22172217
let boardTypeFromEnum = "";
22182218
if ("boardType" in options) {

0 commit comments

Comments
 (0)