We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81cb173 commit da0f370Copy full SHA for da0f370
typescript/src/dummyLanguageService.ts
@@ -1,8 +1,9 @@
1
// only for basic testing, as vscode is actually using server
2
import ts from 'typescript/lib/tsserverlibrary'
3
-import path from 'path'
+import { nodeModules } from './utils'
4
5
export const createLanguageService = (files: Record<string, string>, { useLib = true }: { useLib?: boolean } = {}) => {
6
+ const path = nodeModules!.path
7
let dummyVersion = 1
8
let defaultLibDir: string | undefined
9
const languageService = ts.createLanguageService({
0 commit comments