Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 20, 2024
1 parent ab299ce commit f5402a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monaco/vue.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type * as monaco from 'monaco-editor-core'
import * as ts from 'typescript/lib/tsserverlibrary'
import type { LanguageServiceEnvironment, VueCompilerOptions } from '@vue/language-service'
import { createVueLanguagePlugin, getFullLanguageServicePlugins, resolveVueCompilerOptions } from '@vue/language-service'
import { createTypeScriptWorkerService } from '@volar/monaco/worker'
import { createTypeScriptWorkerLanguageService } from '@volar/monaco/worker'
import { URI } from 'vscode-uri'
import type { WorkerHost } from './env'

Expand Down Expand Up @@ -68,7 +68,7 @@ self.onmessage = () => {
},
}

return createTypeScriptWorkerService({
return createTypeScriptWorkerLanguageService({
typescript: ts,
env,
compilerOptions,
Expand Down

0 comments on commit f5402a3

Please sign in to comment.