Skip to content

Commit c94caea

Browse files
repo: misc typos fixes
The commit fixes misc typos in preparation for the `1.43.0` release. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
1 parent 0a4bb1c commit c94caea

File tree

12 files changed

+28
-27
lines changed

12 files changed

+28
-27
lines changed

examples/api-samples/src/browser/test/test-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ export class TestControllerImpl implements TestController {
375375
get tests(): readonly TestItemImpl[] {
376376
return this.items.values;
377377
}
378-
onItemsChanged: Event<TreeDelta<string, TestItemImpl>[]> = this.deltaBuilder.ondDidFlush;
378+
onItemsChanged: Event<TreeDelta<string, TestItemImpl>[]> = this.deltaBuilder.onDidFlush;
379379

380380
resolveChildren(item: TestItem): void {
381381
// nothing to do

packages/core/src/common/collections.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// *****************************************************************************
1616

1717
/**
18-
* A convencience class for managing a "map of maps" of arbitrary depth
18+
* A convenience class for managing a "map of maps" of arbitrary depth
1919
*/
2020
export class MultiKeyMap<K, V> {
2121
private rootMap = new Map();
@@ -33,7 +33,7 @@ export class MultiKeyMap<K, V> {
3333

3434
set(key: readonly K[], value: V): V | undefined {
3535
if (this.keyLength !== key.length) {
36-
throw new Error(`innappropriate key length: ${key.length}, should be ${this.keyLength}`);
36+
throw new Error(`inappropriate key length: ${key.length}, should be ${this.keyLength}`);
3737
}
3838
let map = this.rootMap;
3939
for (let i = 0; i < this.keyLength - 1; i++) {
@@ -51,7 +51,7 @@ export class MultiKeyMap<K, V> {
5151

5252
get(key: readonly K[]): V | undefined {
5353
if (this.keyLength !== key.length) {
54-
throw new Error(`innappropriate key length: ${key.length}, should be ${this.keyLength}`);
54+
throw new Error(`inappropriate key length: ${key.length}, should be ${this.keyLength}`);
5555
}
5656
let map = this.rootMap;
5757
for (let i = 0; i < this.keyLength - 1; i++) {
@@ -70,7 +70,7 @@ export class MultiKeyMap<K, V> {
7070
*/
7171
has(key: readonly K[]): boolean {
7272
if (this.keyLength < key.length) {
73-
throw new Error(`innappropriate key length: ${key.length}, should <= ${this.keyLength}`);
73+
throw new Error(`inappropriate key length: ${key.length}, should <= ${this.keyLength}`);
7474
}
7575
let map = this.rootMap;
7676
for (let i = 0; i < key.length - 1; i++) {
@@ -89,7 +89,7 @@ export class MultiKeyMap<K, V> {
8989
*/
9090
delete(key: readonly K[]): boolean {
9191
if (this.keyLength < key.length) {
92-
throw new Error(`innappropriate key length: ${key.length}, should <= ${this.keyLength}`);
92+
throw new Error(`inappropriate key length: ${key.length}, should <= ${this.keyLength}`);
9393
}
9494
let map = this.rootMap;
9595
for (let i = 0; i < this.keyLength - 1; i++) {
@@ -102,7 +102,7 @@ export class MultiKeyMap<K, V> {
102102
}
103103

104104
/**
105-
* Iterates over all entries in the map. The ordering semantices are like iterating over a map of maps.
105+
* Iterates over all entries in the map. The ordering semantics are like iterating over a map of maps.
106106
* @param handler Handler for each entry
107107
*/
108108
forEach(handler: (value: V, key: K[]) => void): void {

packages/debug/src/browser/model/debug-thread.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export class DebugThread extends DebugThreadData implements TreeElement {
230230

231231
render(): React.ReactNode {
232232
const reason = this.stoppedDetails && this.stoppedDetails.reason;
233-
const localizedReason = this.getlocalizedReason(reason);
233+
const localizedReason = this.getLocalizedReason(reason);
234234

235235
const status = this.stoppedDetails
236236
? reason
@@ -245,7 +245,7 @@ export class DebugThread extends DebugThreadData implements TreeElement {
245245
);
246246
}
247247

248-
protected getlocalizedReason(reason: string | undefined): string {
248+
protected getLocalizedReason(reason: string | undefined): string {
249249
switch (reason) {
250250
case 'step':
251251
return nls.localize('theia/debug/step', 'step');

packages/notebook/src/browser/service/notebook-kernel-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export class NotebookKernelService implements Disposable {
212212
* @returns and object containing:
213213
* all kernels sorted to match the notebook best first (affinity ascending, score descending, label))
214214
* the selected kernel (if any)
215-
* specificly suggested kernels (if any)
215+
* specific suggested kernels (if any)
216216
* hidden kernels (if any)
217217
*/
218218
getMatchingKernel(notebook: NotebookTextModelLike): NotebookKernelMatchResult {

packages/plugin-ext/src/common/plugin-api-rpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2181,7 +2181,7 @@ export interface TestingMain {
21812181
$registerTestController(controllerId: string, label: string): void;
21822182
/** Updates the label of an existing test controller. */
21832183
$updateController(controllerId: string, patch: Partial<TestControllerUpdate>): void;
2184-
/** Diposes of the test controller with the given ID */
2184+
/** Disposes of the test controller with the given ID */
21852185
$unregisterTestController(controllerId: string): void;
21862186
$notifyDelta(controllerId: string, diff: TreeDelta<string, TestItemDTO>[]): void;
21872187

packages/plugin-ext/src/main/browser/test-main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ class TestControllerImpl implements TestController {
527527
get tests(): readonly TestItemImpl[] {
528528
return this.items.values;
529529
}
530-
onItemsChanged: Event<TreeDelta<string, TestItemImpl>[]> = this.deltaBuilder.ondDidFlush;
530+
onItemsChanged: Event<TreeDelta<string, TestItemImpl>[]> = this.deltaBuilder.onDidFlush;
531531

532532
resolveChildren(item: TestItem): void {
533533
if (this.canResolveChildren) {
@@ -554,7 +554,7 @@ export class TestingMainImpl implements TestingMain {
554554
processArgument(arg: any): any {
555555
if (arg instanceof TestItemImpl) {
556556
if (!arg.controller || !arg.path) {
557-
throw new Error(`Passing unnattached test item ${arg.id} as a command arugment`);
557+
throw new Error(`Passing unattached test item ${arg.id} as a command argument`);
558558
}
559559
return TestItemReference.create(arg.controller.id, arg.path);
560560
}

packages/plugin-ext/src/plugin/test-item.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ export class TestItemImpl implements theia.TestItem {
8787

8888
protected iterate(toDo: (v: TestItemImpl) => boolean): boolean {
8989
if (toDo(this)) {
90-
for (const tupel of this.children) {
91-
const child: TestItemImpl = tupel[1] as TestItemImpl;
90+
for (const tuple of this.children) {
91+
const child: TestItemImpl = tuple[1] as TestItemImpl;
9292
if (!child.iterate(toDo)) {
9393
return false;
9494
}

packages/plugin-ext/src/plugin/tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class TestControllerImpl implements theia.TestController {
6464
this.proxy.$registerTestController(id, _label);
6565

6666
this.deltaBuilder = new AccumulatingTreeDeltaEmitter<string, TestItemImpl>(200);
67-
this.deltaBuilder.ondDidFlush(delta => {
67+
this.deltaBuilder.onDidFlush(delta => {
6868
// console.debug('flushing delta'); // logging levels don't work in plugin host: https://github.com/eclipse-theia/theia/issues/12234
6969
const mapped = this.mapDeltas(delta);
7070
// console.debug(JSON.stringify(mapped, undefined, 3));
@@ -196,7 +196,7 @@ export class TestControllerImpl implements theia.TestController {
196196
.filter(isDefined);
197197

198198
const request = new TestRunRequest(
199-
includeTests, excludeTests, profile, false // don't support continouus run yet
199+
includeTests, excludeTests, profile, false // don't support continuous run yet
200200
);
201201

202202
const run = this.testRunStarted(request, name, false, false);

packages/remote/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ This facilitates features similar to the features offered by Microsoft's popular
1919

2020
The following explains the basic flow of any remote connection. It will be exemplified using the remote SSH feature:
2121

22-
1. When the user runs the `SSH: Connect to Host...` command, we send the host info to the local backend.
22+
1. When the user runs the `SSH: Connect to Host...` command, we send the host info to the local backend.
2323
The corresponding `RemoteSSHConnectionProvider` is scoped to the current connection and can request additional information from the user, such as SSH key passphrases.
2424
2. Once the `RemoteSSHConnectionProvider` has every information it needs, it creates a SSH connection and registers this connection to the general `RemoteConnectionService`.
2525
Every `RemoteConnection` type implements an interface that is able to handle 3 kinds of messages to the remote system:
2626
1. Executing commands in the shell of the remote system
2727
2. Copying data to the remote
2828
3. Once the connection has been established, a setup process takes place on the remote system:
29-
1. Idenfying the remote platform (i.e. Windows, MacOS or Linux). This information is needed for all the following steps.
29+
1. Identifying the remote platform (i.e. Windows, MacOS or Linux). This information is needed for all the following steps.
3030
2. Setting up various directories for storing the application and its dependencies.
3131
3. Download and install the correct Node.js version for the remote platform.
3232
4. Packaging, copying, and unpackaging the local backend to the remote backend.
@@ -56,5 +56,6 @@ Although these backend services live on a different remote system, the frontend
5656
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
5757

5858
## Trademark
59+
5960
"Theia" is a trademark of the Eclipse Foundation
6061
https://www.eclipse.org/theia

packages/remote/src/electron-node/setup/remote-native-dependency-contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface DownloadOptions {
5656
export const RemoteNativeDependencyContribution = Symbol('RemoteNativeDependencyContribution');
5757

5858
/**
59-
* contribution used for downloading prebuild nativ dependency when connecting to a remote machine with a different system
59+
* contribution used for downloading prebuild native dependency when connecting to a remote machine with a different system
6060
*/
6161
export interface RemoteNativeDependencyContribution {
6262
download(options: DownloadOptions): Promise<DependencyDownload>;

0 commit comments

Comments
 (0)