Skip to content

Commit 0554234

Browse files
committed
Fix typos in VS Code extension
1 parent beff47d commit 0554234

File tree

6 files changed

+14
-15
lines changed

6 files changed

+14
-15
lines changed

integration/vscode/ada/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,10 @@
359359
"always"
360360
],
361361
"enumDescriptions": [
362-
"Never list overridding and/or overridden suprograms.",
363-
"List overridding and/or overridden suprograms on dispatching calls and on abstract subprogram declarations.",
364-
"List overridding and/or overridden suprograms on declarations only.",
365-
"Always list overridding and/or overridden suprograms when possible."
362+
"Never list overriding and/or overridden subprograms.",
363+
"List overriding and/or overridden subprograms on dispatching calls and on abstract subprogram declarations.",
364+
"List overriding and/or overridden subprograms on declarations only.",
365+
"Always list overriding and/or overridden subprograms when possible."
366366
],
367367
"default": "usage_and_abstract_only",
368368
"description": "Controls the policy for displaying overriding and overridden subprograms on navigation requests such as 'Go To Definition' or 'Go To Implementations'."
@@ -401,7 +401,7 @@
401401
},
402402
{
403403
"type": "object",
404-
"title": "Miscelaneous",
404+
"title": "Miscellaneous",
405405
"properties": {
406406
"ada.enableIndexing": {
407407
"scope": "window",

integration/vscode/ada/src/commands.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const CMD_BUILD_AND_DEBUG_MAIN = 'ada.buildAndDebugMain';
3838
export function registerCommands(context: vscode.ExtensionContext, clients: ExtensionState) {
3939
context.subscriptions.push(vscode.commands.registerCommand('ada.otherFile', otherFileHandler));
4040
context.subscriptions.push(
41-
vscode.commands.registerCommand('ada.subprogramBox', addSupbrogramBoxCommand)
41+
vscode.commands.registerCommand('ada.subprogramBox', addSubprogramBoxCommand)
4242
);
4343
context.subscriptions.push(
4444
vscode.commands.registerCommand('ada.showExtensionOutput', () => mainOutputChannel.show())
@@ -108,7 +108,7 @@ export function registerCommands(context: vscode.ExtensionContext, clients: Exte
108108
*
109109
* procedure Foo is
110110
*/
111-
async function addSupbrogramBoxCommand() {
111+
async function addSubprogramBoxCommand() {
112112
const activeEditor = vscode.window.activeTextEditor;
113113

114114
await getEnclosingSymbol(activeEditor, [
@@ -202,7 +202,7 @@ interface TaskQuickPickItem extends vscode.QuickPickItem {
202202
* Propose to the User a list of build and run tasks, one for each main defined
203203
* in the project.
204204
*
205-
* Tasks defined explicitely in the workspace are identified as such in the
205+
* Tasks defined explicitly in the workspace are identified as such in the
206206
* offered list and proposed first.
207207
*
208208
* The User can choose either to run the task as is, or click the secondary
@@ -519,7 +519,7 @@ async function buildAndDebugSpecifiedMain(main: vscode.Uri): Promise<void> {
519519
* The vscode API doesn't provide a way to list both automatically
520520
* provided and User-defined debug configurations. So instead, we
521521
* inspect the launch.json data if it exists, and the dynamic configs
522-
* provided by the exctension. We look for a debug config that matches
522+
* provided by the extension. We look for a debug config that matches
523523
* the given main URI.
524524
*/
525525
// Create a launch config for this main to help with matching

integration/vscode/ada/src/debugConfigProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export function getOrFindGdb(): string | undefined {
171171
* @param program - the executable to debug (optional)
172172
* @param main - the main source file to be displayed in the configuration label (optional)
173173
* @param name - the full name of the configuration (optional). If provided,
174-
* this name shortcircuits the automatic naming based on the 'main' or the
174+
* this name short-circuits the automatic naming based on the 'main' or the
175175
* 'program' parameter.
176176
* @returns an AdaConfig
177177
*/

integration/vscode/ada/src/extension.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unsafe-call */
21
/*----------------------------------------------------------------------------
32
-- Language Server Protocol --
43
-- --

integration/vscode/ada/src/gnattest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export let testRunProfile: vscode.TestRunProfile;
1515
/**
1616
* Types definition for the Gnattest XML file structure. The types match the XML
1717
* generated by src/test-mapping.adb in the libadalang-tools repository. However
18-
* these types do not describe the entire XML strutcture. Only the elements used
18+
* these types do not describe the entire XML structure. Only the elements used
1919
* are described.
2020
*/
2121
export type Root = {
@@ -185,7 +185,7 @@ async function parseGnatTestXml(): Promise<Root> {
185185
// to obtain attributes.
186186
ignoreAttributes: false,
187187
// This prefix is used in the JS objects resulting from the parsing
188-
// to differenciate attributes from child nodes.
188+
// to differentiate attributes from child nodes.
189189
attributeNamePrefix: '@_',
190190
isArray: (_, jPath) => {
191191
return alwaysArray.indexOf(jPath) !== -1;

integration/vscode/ada/src/taskProviders.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ function quoteCommandLine(cmd: string[]): vscode.ShellQuotedString[] {
996996
/**
997997
*
998998
* @param task - a task
999-
* @returns `true` if the task is defined explicitely in the workspace's tasks.json
999+
* @returns `true` if the task is defined explicitly in the workspace's tasks.json
10001000
*/
10011001
export function isFromWorkspace(task: vscode.Task): boolean {
10021002
return task.source == 'Workspace';
@@ -1006,7 +1006,7 @@ export function isFromWorkspace(task: vscode.Task): boolean {
10061006
*
10071007
* @param task - a task
10081008
* @returns the label typically generated for that task by vscode. For tasks not
1009-
* defined explicitely in the workspace, this is `ada: <task name>`. For tasks
1009+
* defined explicitly in the workspace, this is `ada: <task name>`. For tasks
10101010
* defined in the workspace simply return the name which should already include
10111011
* the convention.
10121012
*/

0 commit comments

Comments
 (0)