From 2522a264e75e14316c44ae8f7dd14a768d532723 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 28 Jun 2018 18:50:39 -0700 Subject: [PATCH 01/11] actuallty -> actually --- scripts/createBenchmark.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/createBenchmark.ts b/scripts/createBenchmark.ts index 659df53c915..6148d80bf2c 100644 --- a/scripts/createBenchmark.ts +++ b/scripts/createBenchmark.ts @@ -32,7 +32,7 @@ sourceFiles.forEach(f=> { }); var compilerSoruces = `var compilerSources = ${JSON.stringify(rawCompilerSources) };`; -// .js code for the compiler, what we are actuallty testing +// .js code for the compiler, what we are actually testing var rawCompilerJavaScript = fs.readFileSync(path.join(tsBuildDir, "tsc.js")).toString(); rawCompilerJavaScript = rawCompilerJavaScript.replace("ts.executeCommandLine(ts.sys.args);", ""); From a40b357646b9bebd40906bb3332b25c2c299f8e6 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 28 Jun 2018 18:50:55 -0700 Subject: [PATCH 02/11] accross -> across --- tests/cases/fourslash/goToDefinitionLabels.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cases/fourslash/goToDefinitionLabels.ts b/tests/cases/fourslash/goToDefinitionLabels.ts index 3736d9207ee..62b6ab54a62 100644 --- a/tests/cases/fourslash/goToDefinitionLabels.ts +++ b/tests/cases/fourslash/goToDefinitionLabels.ts @@ -12,7 +12,7 @@ verify.goToDefinition({ 1: "label1Definition", 2: "label2Definition", - // labels accross function boundaries + // labels across function boundaries 3: "label1Definition", // undefined label 4: [] From ba9b8c29eeb3c86232f5da97667b40a76330ec87 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 28 Jun 2018 18:51:46 -0700 Subject: [PATCH 03/11] additinal -> additional --- src/services/findAllReferences.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/findAllReferences.ts b/src/services/findAllReferences.ts index e0ce611af2e..6bc55f54ff7 100644 --- a/src/services/findAllReferences.ts +++ b/src/services/findAllReferences.ts @@ -498,7 +498,7 @@ namespace ts.FindAllReferences.Core { return this.importTracker(exportSymbol, exportInfo, !!this.options.isForRename); } - /** @param allSearchSymbols set of additinal symbols for use by `includes`. */ + /** @param allSearchSymbols set of additional symbols for use by `includes`. */ createSearch(location: Node | undefined, symbol: Symbol, comingFrom: ImportExport | undefined, searchOptions: { text?: string, allSearchSymbols?: Symbol[] } = {}): Search { // Note: if this is an external module symbol, the name doesn't include quotes. // Note: getLocalSymbolForExportDefault handles `export default class C {}`, but not `export default C` or `export { C as default }`. From 15c38596fa31763a57003daf6de27fe7f7d3d96f Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 28 Jun 2018 18:52:56 -0700 Subject: [PATCH 04/11] affectected -> affected --- src/server/editorServices.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index 0801c42405c..3db38c5cd6e 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -845,7 +845,7 @@ namespace ts.server { configFileExistenceInfo.exists = false; this.removeProject(project); - // Reload the configured projects for the open files in the map as they are affectected by this config file + // Reload the configured projects for the open files in the map as they are affected by this config file // Since the configured project was deleted, we want to reload projects for all the open files including files // that are not root of the inferred project this.logConfigFileWatchUpdate(project.getConfigFilePath(), project.canonicalConfigFilePath, configFileExistenceInfo, ConfigFileWatcherStatus.ReloadingFiles); From a0c186a7813dec611e2db2a56928012fea9d885f Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 28 Jun 2018 18:58:29 -0700 Subject: [PATCH 05/11] anohter -> another --- tests/baselines/reference/checkJsFiles_skipDiagnostics.symbols | 2 +- tests/baselines/reference/checkJsFiles_skipDiagnostics.types | 2 +- tests/cases/compiler/checkJsFiles_skipDiagnostics.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/baselines/reference/checkJsFiles_skipDiagnostics.symbols b/tests/baselines/reference/checkJsFiles_skipDiagnostics.symbols index 5d9aa8c53c5..ca9b9a93444 100644 --- a/tests/baselines/reference/checkJsFiles_skipDiagnostics.symbols +++ b/tests/baselines/reference/checkJsFiles_skipDiagnostics.symbols @@ -24,7 +24,7 @@ x( // come comment // some other comment -// @anohter +// @another x(); >x : Symbol(x, Decl(a.js, 0, 3)) diff --git a/tests/baselines/reference/checkJsFiles_skipDiagnostics.types b/tests/baselines/reference/checkJsFiles_skipDiagnostics.types index a07bf43901b..953a4f4b910 100644 --- a/tests/baselines/reference/checkJsFiles_skipDiagnostics.types +++ b/tests/baselines/reference/checkJsFiles_skipDiagnostics.types @@ -31,7 +31,7 @@ x( // come comment // some other comment -// @anohter +// @another x(); >x() : any diff --git a/tests/cases/compiler/checkJsFiles_skipDiagnostics.ts b/tests/cases/compiler/checkJsFiles_skipDiagnostics.ts index 48364c6a592..0f233e5e574 100644 --- a/tests/cases/compiler/checkJsFiles_skipDiagnostics.ts +++ b/tests/cases/compiler/checkJsFiles_skipDiagnostics.ts @@ -23,7 +23,7 @@ x( // come comment // some other comment -// @anohter +// @another x(); From d83ddcfa9c0b6f204836955c843d068439582abb Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 28 Jun 2018 18:59:37 -0700 Subject: [PATCH 06/11] abount -> about --- src/server/protocol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/protocol.ts b/src/server/protocol.ts index 23894a0f67d..c9576498236 100644 --- a/src/server/protocol.ts +++ b/src/server/protocol.ts @@ -1246,7 +1246,7 @@ namespace ts.server.protocol { /* @internal */ export interface ProjectFiles { /** - * Information abount project verison + * Information about project verison */ info?: ProjectVersionInfo; /** From b7b66a28ee263646c77f2ccf6a24fddaf1d0d1ec Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 28 Jun 2018 19:01:46 -0700 Subject: [PATCH 07/11] arbitary -> arbitrary --- src/services/shims.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/shims.ts b/src/services/shims.ts index 0ea27b4151f..5f5b79175de 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -102,7 +102,7 @@ namespace ts { readDirectory(rootDir: string, extension: string, basePaths?: string, excludeEx?: string, includeFileEx?: string, includeDirEx?: string, depth?: number): string; /** - * Read arbitary text files on disk, i.e. when resolution procedure needs the content of 'package.json' to determine location of bundled typings for node modules + * Read arbitrary text files on disk, i.e. when resolution procedure needs the content of 'package.json' to determine location of bundled typings for node modules */ readFile(fileName: string): string | undefined; realpath?(path: string): string; From a46844aab6d48304842feccebf36c8ec05692475 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 28 Jun 2018 19:02:43 -0700 Subject: [PATCH 08/11] arugments -> arguments --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index dfb10780fcb..dc3c1a2b2e1 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -19474,7 +19474,7 @@ namespace ts { } const specifier = node.arguments[0]; const specifierType = checkExpressionCached(specifier); - // Even though multiple arugments is grammatically incorrect, type-check extra arguments for completion + // Even though multiple arguments is grammatically incorrect, type-check extra arguments for completion for (let i = 1; i < node.arguments.length; ++i) { checkExpressionCached(node.arguments[i]); } From 26bb46c336a9b221f5a81b3e27c51621e45e4a12 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 28 Jun 2018 19:03:18 -0700 Subject: [PATCH 09/11] Asignment -> Assignment --- src/compiler/checker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index dc3c1a2b2e1..0b184830ca8 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -14729,7 +14729,7 @@ namespace ts { const declarationContainer = getControlFlowContainer(declaration); let flowContainer = getControlFlowContainer(node); const isOuterVariable = flowContainer !== declarationContainer; - const isSpreadDestructuringAsignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent); + const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent); // When the control flow originates in a function expression or arrow function and we are referencing // a const variable or parameter from an outer function, we extend the origin of the control flow // analysis to include the immediately enclosing function. @@ -14741,7 +14741,7 @@ namespace ts { // We only look for uninitialized variables in strict null checking mode, and only when we can analyze // the entire control flow graph from the variable's declaration (i.e. when the flow container and // declaration container are the same). - const assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAsignmentTarget || + const assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & TypeFlags.AnyOrUnknown) !== 0 || isInTypeQuery(node) || node.parent.kind === SyntaxKind.ExportSpecifier) || node.parent.kind === SyntaxKind.NonNullExpression || From 6d010011253abca2c71da8dec9a19ace3d74efb8 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 28 Jun 2018 19:03:58 -0700 Subject: [PATCH 10/11] Assignement -> Assignment --- src/compiler/utilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 40cb2cc96e8..7439bd21890 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -1864,7 +1864,7 @@ namespace ts { } export function getRightMostAssignedExpression(node: Expression): Expression { - while (isAssignmentExpression(node, /*excludeCompoundAssignements*/ true)) { + while (isAssignmentExpression(node, /*excludeCompoundAssignments*/ true)) { node = node.right; } return node; From d21d0af7cca2c5aa88fc582f9e5b3a74871faeb4 Mon Sep 17 00:00:00 2001 From: John Doe Date: Wed, 4 Jul 2018 11:42:07 -0700 Subject: [PATCH 11/11] Update baseline --- tests/baselines/reference/api/tsserverlibrary.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 05702bab14b..44685b53931 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -11913,7 +11913,7 @@ declare namespace ts { */ readDirectory(rootDir: string, extension: string, basePaths?: string, excludeEx?: string, includeFileEx?: string, includeDirEx?: string, depth?: number): string; /** - * Read arbitary text files on disk, i.e. when resolution procedure needs the content of 'package.json' to determine location of bundled typings for node modules + * Read arbitrary text files on disk, i.e. when resolution procedure needs the content of 'package.json' to determine location of bundled typings for node modules */ readFile(fileName: string): string | undefined; realpath?(path: string): string;