Skip to content

Commit a159737

Browse files
Merge pull request #219 from jsoref/spelling
Spelling
2 parents 149932c + 4918b15 commit a159737

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

docs/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ npm i
3131
npm run build -ws
3232
```
3333

34-
**Note**: We have included a `package-lock.json` in `script/workspace`. If `npm run build -ws` fails because packages are not installed correctly with `nmp i`, re-run `script/boostrap` and run `npm ci` to
34+
**Note**: We have included a `package-lock.json` in `script/workspace`. If `npm run build -ws` fails because packages are not installed correctly with `nmp i`, re-run `script/bootstrap` and run `npm ci` to
3535
get working packages.
3636

3737
## Make changes

src/logs/parser.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// #region ANSII section
1+
// #region ANSI section
22

33
const ESC = "\u001b";
44
const BrightClassPostfix = "-br";
@@ -7,13 +7,13 @@ const BrightClassPostfix = "-br";
77
export const URLRegex = /([{([]*https?:\/\/[a-z0-9]+(?:-[a-z0-9]+)*\.[^\s<>|'",]{2,})/gi;
88

99
/**
10-
* Regex for matching ANSII escape codes
10+
* Regex for matching ANSI escape codes
1111
* \u001b - ESC character
1212
* ?: Non-capturing group
1313
* (?:\u001b[) : Match ESC[
1414
* (?:[\?|#])??: Match also ? and # formats that we don't supports but want to eat our special characters to get rid of ESC character
15-
* (?:[0-9]{1,3})?: Match one or more occurances of the simple format we want with out semicolon
16-
* (?:(?:;[0-9]{0,3})*)?: Match one or more occurances of the format we want with semicolon
15+
* (?:[0-9]{1,3})?: Match one or more occurrences of the simple format we want with out semicolon
16+
* (?:(?:;[0-9]{0,3})*)?: Match one or more occurrences of the format we want with semicolon
1717
*/
1818

1919
// eslint-disable-next-line no-control-regex
@@ -27,9 +27,9 @@ const _ansiEscapeCodeRegex = /(?:\u001b\[)(?:[?|#])?(?:(?:[0-9]{1,3})?(?:(?:;[0-
2727
* Where VALUE is SGR parameter https://www.vt100.net/docs/vt510-rm/SGR
2828
* We support: 0 (reset), 1 (bold), 3 (italic), 4 (underline), 22 (not bold), 23 (not italic), 24 (not underline), 38 (set fg), 39 (default fg), 48 (set bg), 49 (default bg),
2929
* fg colors - 30 (black), 31 (red), 32 (green), 33 (yellow), 34 (blue), 35 (magenta), 36 (cyan), 37 (white), 90 (grey)
30-
* with more brighness - 91 (red), 92 (green), 93 (yellow), 94 (blue), 95 (magenta), 96 (cyan), 97 (white)
30+
* with more brightness - 91 (red), 92 (green), 93 (yellow), 94 (blue), 95 (magenta), 96 (cyan), 97 (white)
3131
* bg colors - 40 (black), 41 (red), 42 (green), 43 (yellow), 44 (blue), 45 (magenta), 46 (cyan), 47 (white), 100 (grey)
32-
* with more brighness- 101 (red), 102 (green), 103 (yellow), 104 (blue), 105 (magenta), 106 (cyan), 107 (white)
32+
* with more brightness- 101 (red), 102 (green), 103 (yellow), 104 (blue), 105 (magenta), 106 (cyan), 107 (white)
3333
* Where m refers to the "Graphics mode"
3434
*
3535
* 8-bit color is supported
@@ -48,7 +48,7 @@ const _ansiEscapeCodeRegex = /(?:\u001b\[)(?:[?|#])?(?:(?:[0-9]{1,3})?(?:(?:;[0-
4848
* Esc[48;2;<r>;<g>;<b> To set the background color
4949
* Where r,g and b must be between 0-255
5050
*/
51-
// #endregion ANSII section
51+
// #endregion ANSI section
5252

5353
// #region commands
5454
enum Resets {
@@ -163,7 +163,7 @@ interface IAnsiEscapeCodeState {
163163

164164
export class Parser {
165165
/**
166-
* Parses the content into ANSII states
166+
* Parses the content into ANSI states
167167
* @param content content to parse
168168
*/
169169
public getStates(content: string): IAnsiEscapeCodeState[] {
@@ -327,7 +327,7 @@ export class Parser {
327327
if (currentText) {
328328
state.output = currentText;
329329
result.push(state);
330-
// deep copy exisiting style for the line to preserve different styles between commands
330+
// deep copy existing style for the line to preserve different styles between commands
331331
let previousStyle;
332332
if (state.style) {
333333
previousStyle = Object.assign({}, state.style);

src/tracker/workflowDocumentTracker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function onDidChangeActiveTextEditor(editor?: vscode.TextEditor) {
4141
}
4242
}
4343

44-
// Adapted from from https://github.com/eamodio/vscode-gitlens/blob/f22a9cd4199ac498c217643282a6a412e1fc01ae/src/constants.ts#L74
44+
// Adapted from https://github.com/eamodio/vscode-gitlens/blob/f22a9cd4199ac498c217643282a6a412e1fc01ae/src/constants.ts#L74
4545
enum DocumentSchemes {
4646
DebugConsole = "debug",
4747
Output = "output"

0 commit comments

Comments
 (0)