Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored and astrobot-houston committed Oct 31, 2023
1 parent ee41dce commit 861e001
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ts-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {
decorateLanguageServiceHost,
searchExternalFiles,
} from '@volar/typescript';
import * as semver from 'semver';
import type ts from 'typescript/lib/tsserverlibrary';
import { getLanguageModule } from './language.js';
import * as semver from 'semver';

const externalFiles = new WeakMap<ts.server.Project, string[]>();

Expand Down Expand Up @@ -41,8 +41,8 @@ const init: ts.server.PluginModuleFactory = (modules) => {
getExternalFiles(project, updateLevel = 0) {
if (
// @ts-expect-error wait for TS 5.3
updateLevel >= (1 satisfies ts.ProgramUpdateLevel.RootNamesAndUpdate)
|| !externalFiles.has(project)
updateLevel >= (1 satisfies ts.ProgramUpdateLevel.RootNamesAndUpdate) ||
!externalFiles.has(project)
) {
const oldFiles = externalFiles.get(project);
const newFiles = searchExternalFiles(ts, project, ['.astro']);
Expand Down

0 comments on commit 861e001

Please sign in to comment.