Skip to content

Commit c63b69d

Browse files
committed
Fix typo in shouldSkipSemanticCheck
1 parent 58a0e75 commit c63b69d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server/session.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace ts.server {
1414
return ((1e9 * seconds) + nanoseconds) / 1000000.0;
1515
}
1616

17-
function shouldSkipSematicCheck(project: Project) {
17+
function shouldSkipSemanticCheck(project: Project) {
1818
if (project.getCompilerOptions().skipLibCheck !== undefined) {
1919
return false;
2020
}
@@ -267,7 +267,7 @@ namespace ts.server {
267267
private semanticCheck(file: NormalizedPath, project: Project) {
268268
try {
269269
let diags: Diagnostic[] = [];
270-
if (!shouldSkipSematicCheck(project)) {
270+
if (!shouldSkipSemanticCheck(project)) {
271271
diags = project.getLanguageService().getSemanticDiagnostics(file);
272272
}
273273

@@ -385,7 +385,7 @@ namespace ts.server {
385385

386386
private getDiagnosticsWorker(args: protocol.FileRequestArgs, isSemantic: boolean, selector: (project: Project, file: string) => Diagnostic[], includeLinePosition: boolean) {
387387
const { project, file } = this.getFileAndProject(args);
388-
if (isSemantic && shouldSkipSematicCheck(project)) {
388+
if (isSemantic && shouldSkipSemanticCheck(project)) {
389389
return [];
390390
}
391391
const scriptInfo = project.getScriptInfoForNormalizedPath(file);

0 commit comments

Comments
 (0)