From 052d769933f763885b4e87725d5334c9b6dae4e1 Mon Sep 17 00:00:00 2001 From: Matt Bierner <12821956+mjbvz@users.noreply.github.com> Date: Mon, 13 Oct 2025 08:16:58 -0700 Subject: [PATCH] Small cleanup --- build/lib/typeScriptLanguageServiceHost.js | 8 ++++---- build/lib/typeScriptLanguageServiceHost.ts | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/build/lib/typeScriptLanguageServiceHost.js b/build/lib/typeScriptLanguageServiceHost.js index 58aeeb2de09..d90ad86f9be 100644 --- a/build/lib/typeScriptLanguageServiceHost.js +++ b/build/lib/typeScriptLanguageServiceHost.js @@ -52,14 +52,14 @@ class TypeScriptLanguageServiceHost { getCurrentDirectory() { return ''; } - getDefaultLibFileName(_options) { - return this.ts.getDefaultLibFilePath(_options); + getDefaultLibFileName(options) { + return this.ts.getDefaultLibFilePath(options); } - readFile(path, _encoding) { + readFile(path, encoding) { if (this.topLevelFiles.get(path)) { return this.topLevelFiles.get(path); } - return typescript_1.default.sys.readFile(path, _encoding); + return typescript_1.default.sys.readFile(path, encoding); } fileExists(path) { if (this.topLevelFiles.has(path)) { diff --git a/build/lib/typeScriptLanguageServiceHost.ts b/build/lib/typeScriptLanguageServiceHost.ts index eebd9e70b74..faa11d44da3 100644 --- a/build/lib/typeScriptLanguageServiceHost.ts +++ b/build/lib/typeScriptLanguageServiceHost.ts @@ -5,7 +5,6 @@ import ts from 'typescript'; import fs from 'node:fs'; -// import path from 'node:path'; export type IFileMap = Map; @@ -49,14 +48,14 @@ export class TypeScriptLanguageServiceHost implements ts.LanguageServiceHost { getCurrentDirectory(): string { return ''; } - getDefaultLibFileName(_options: ts.CompilerOptions): string { - return this.ts.getDefaultLibFilePath(_options); + getDefaultLibFileName(options: ts.CompilerOptions): string { + return this.ts.getDefaultLibFilePath(options); } - readFile(path: string, _encoding?: string): string | undefined { + readFile(path: string, encoding?: string): string | undefined { if (this.topLevelFiles.get(path)) { return this.topLevelFiles.get(path); } - return ts.sys.readFile(path, _encoding); + return ts.sys.readFile(path, encoding); } fileExists(path: string): boolean { if (this.topLevelFiles.has(path)) {