Skip to content

Commit 473acad

Browse files
authored
Merge pull request #16 from rubyatscale/fix/typos
Fix typos and grammatical issues
2 parents 29564b6 + a5ce888 commit 473acad

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

dev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is a collection of some relatively unorganized notes for people interested
66
- click to open public API where constant lives
77

88
## Future work items
9-
- add the ability to publish the extension from CI. vsce tool let’s you do package and publish. If you do publish there is a signing step that happens, keys to setup, etc. If you don’t do that, you package it in CI or local and upload it in the extension marketplace.
9+
- add the ability to publish the extension from CI. The vsce tool lets you package and publish. If you do publish there is a signing step that happens, keys to set up, etc. If you don’t do that, you package it in CI or locally and upload it to the extension marketplace.
1010
- Add buildkite CI support and add proper testing
1111

1212
Improve screenshot gif

src/taskQueue.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface TaskToken {
88
export type CancelCallback = () => void;
99

1010
/**
11-
* Task with async operation. It will be enqueued to and managed by
11+
* Task with an async operation. It will be enqueued to and managed by
1212
* TaskQueue. Useful for spawning ChildProcess.
1313
*/
1414
export class Task {
@@ -21,7 +21,7 @@ export class Task {
2121

2222
/**
2323
* @param body Function of task body, which returns callback called
24-
* when cancelation is requested. You should call
24+
* when cancellation is requested. You should call
2525
* token.finished() after async operation is done.
2626
*/
2727
constructor(uri: vscode.Uri, body: (token: TaskToken) => CancelCallback) {
@@ -69,9 +69,9 @@ export class Task {
6969
}
7070

7171
/**
72-
* Provides single-threaded task queue which runs single asynchronous
72+
* Provides single-threaded task queue which runs a single asynchronous
7373
* Task at a time. This restricts concurrent execution of packwerk
74-
* processes to prevent from running out machine resource.
74+
* processes to prevent running out of machine resources.
7575
*/
7676
export class TaskQueue {
7777
private tasks: Task[] = [];

test/taskQueue.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('TaskQueue', () => {
3131
});
3232

3333
context('when one task is added to queue', () => {
34-
it('calles body', () => {
34+
it('calls body', () => {
3535
queue.enqueue(taskWrapper.task);
3636
expect(taskWrapper.isBodyCalled).to.be.true;
3737
expect(taskWrapper.token.isCanceled).to.be.false;
@@ -60,7 +60,7 @@ describe('TaskQueue', () => {
6060
});
6161

6262
context('when multiple tasks with different urls are added to queue', () => {
63-
it('calles body of only first task', () => {
63+
it('calls body of only first task', () => {
6464
queue.enqueue(taskWrapper.task);
6565
queue.enqueue(taskWrapper2.task);
6666
expect(taskWrapper.isBodyCalled).to.be.true;

0 commit comments

Comments
 (0)