Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
machty committed Jan 22, 2025
1 parent bb71417 commit b78303f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ try {

const languageIdsQuoted = config.server.includeLanguages.map((lang) => `'${lang}'`).join(',');

// @ts-expect-error
// @ts-expect-error – not easy to type
fs.readFileSync = (...args) => {
if (args[0] === extensionJsPath) {
// @ts-expect-error
// @ts-expect-error – not easy to type
let text = readFileSync(...args) as string;

if (!enabledTypeScriptPlugin.value) {
Expand Down Expand Up @@ -281,7 +281,7 @@ try {
return text;
}
}
// @ts-expect-error
// @ts-expect-error – not easy to type
return readFileSync(...args);
};
} catch {
Expand Down

0 comments on commit b78303f

Please sign in to comment.