Skip to content

Commit c9a01e4

Browse files
committed
fix build
1 parent c955c5b commit c9a01e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

typescript/test/completions.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const defaultConfigFunc = await getDefaultConfigFunc(settingsOverride)
7676

7777
const getCompletionsAtPosition = (pos: number, { fileName = entrypoint, shouldHave }: { fileName?: string; shouldHave?: boolean } = {}) => {
7878
if (pos === undefined) throw new Error('getCompletionsAtPosition: pos is undefined')
79-
const result = getCompletionsAtPositionRaw(fileName, pos, {}, defaultConfigFunc, languageService, ts.ScriptSnapshot.fromString(files[entrypoint]), ts)
79+
const result = getCompletionsAtPositionRaw(fileName, pos, {}, defaultConfigFunc, languageService, ts.ScriptSnapshot.fromString(files[entrypoint]))
8080
if (shouldHave) expect(result).not.toBeUndefined()
8181
if (!result) return
8282
return {
@@ -201,7 +201,7 @@ test('Emmet completion', () => {
201201
2: -5,
202202
}
203203
const getEmmetCompletions = pos => {
204-
const result = handleCommand({ languageService } as any, entrypoint, pos, 'emmet-completions', languageService, defaultConfigFunc)
204+
const result = handleCommand({ languageService } as any, entrypoint, pos, 'emmet-completions', languageService, defaultConfigFunc, {})
205205
return result?.typescriptEssentialsResponse?.emmetTextOffset
206206
}
207207
for (const [i, pos] of positivePositions.entries()) {

0 commit comments

Comments
 (0)