Skip to content

Commit 2a24ea5

Browse files
author
Yui T
committed
Fix spelling
1 parent be4133a commit 2a24ea5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/harness/fourslash.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ module FourSlash {
516516
}
517517

518518
if (!passed) {
519-
var errorMessage = "Expected outputFilename '" + filename + "', but actualy outputFilename '";
519+
var errorMessage = "Expected outputFilename '" + filename + "', but actual outputFilename '";
520520
emit.outputFiles.forEach((outputFile, idx, array) => {
521521
errorMessage += outputFile.name;
522522
if (idx !== emit.outputFiles.length - 1) {
@@ -1274,7 +1274,7 @@ module FourSlash {
12741274

12751275
private applyEdits(fileName: string, edits: ts.TextChange[], isFormattingEdit = false): number {
12761276
// We get back a set of edits, but langSvc.editScript only accepts one at a time. Use this to keep track
1277-
// of the incremental offest from each edit to the next. Assumption is that these edit ranges don't overlap
1277+
// of the incremental offset from each edit to the next. Assumption is that these edit ranges don't overlap
12781278
var runningOffset = 0;
12791279
edits = edits.sort((a, b) => a.span.start() - b.span.start());
12801280
// Get a snapshot of the content of the file so we can make sure any formatting edits didn't destroy non-whitespace characters
@@ -1351,7 +1351,7 @@ module FourSlash {
13511351

13521352
var definitions = this.languageService.getDefinitionAtPosition(this.activeFile.fileName, this.currentCaretPosition);
13531353
if (!definitions || !definitions.length) {
1354-
throw new Error('goToDefinition failed - expected to at least one defintion location but got 0');
1354+
throw new Error('goToDefinition failed - expected to at least one definition location but got 0');
13551355
}
13561356

13571357
if (definitionIndex >= definitions.length) {
@@ -1371,10 +1371,10 @@ module FourSlash {
13711371
var foundDefinitions = definitions && definitions.length;
13721372

13731373
if (foundDefinitions && negative) {
1374-
throw new Error('goToDefinition - expected to 0 defintion locations but got ' + definitions.length);
1374+
throw new Error('goToDefinition - expected to 0 definition locations but got ' + definitions.length);
13751375
}
13761376
else if (!foundDefinitions && !negative) {
1377-
throw new Error('goToDefinition - expected to at least one defintion location but got 0');
1377+
throw new Error('goToDefinition - expected to at least one definition location but got 0');
13781378
}
13791379
}
13801380

@@ -2222,7 +2222,7 @@ module FourSlash {
22222222
/// A list of ranges we've collected so far */
22232223
var localRanges: Range[] = [];
22242224

2225-
/// The latest position of the start of an unflushed plaintext area
2225+
/// The latest position of the start of an unflushed plain text area
22262226
var lastNormalCharPosition: number = 0;
22272227

22282228
/// The total number of metacharacters removed from the file (so far)

0 commit comments

Comments
 (0)