Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Feb 3, 2023
1 parent 561a902 commit d55f325
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import createTwoslashQueries from './plugins/vue-twoslash-queries';
import createVueTemplateLanguagePlugin from './plugins/vue-template';
import type { Data } from '@volar-plugins/typescript/out/services/completions/basic';
import type * as ts from 'typescript/lib/tsserverlibrary';
import { LanguageServiceConfig } from '@volar/language-service';
import { Config } from '@volar/language-service';

import * as createPugFormatPlugin from '@volar-plugins/pug-beautify';
import createAutoWrapParenthesesPlugin from './plugins/vue-autoinsert-parentheses';
Expand All @@ -32,7 +32,7 @@ export interface Settings {
}

export function getLanguageServicePlugins(
config: LanguageServiceConfig, // volar.config.js
config: Config, // volar.config.js
vueCompilerOptions: VueCompilerOptions,
settings?: Settings,
) {
Expand All @@ -44,7 +44,7 @@ export function getLanguageServicePlugins(
return {};

const ts = _context.typescript.module;
const base = baseTsPlugin(_context, service);
const base = typeof baseTsPlugin === 'function' ? baseTsPlugin(_context, service) : baseTsPlugin;
const autoImportPositions = new WeakSet<vscode.Position>();

return {
Expand Down Expand Up @@ -233,7 +233,7 @@ export function getLanguageServicePlugins(

export function createLanguageService(
host: VueLanguageServiceHost,
config: LanguageServiceConfig, // volar.config.js
config: Config, // volar.config.js
env: embeddedLS.LanguageServiceRuntimeContext['env'],
documentRegistry?: ts.DocumentRegistry,
settings?: Settings,
Expand Down

0 comments on commit d55f325

Please sign in to comment.