Skip to content

Commit

Permalink
fix: incorrect call to server method which caused autocomplete to bre…
Browse files Browse the repository at this point in the history
…ak (#19)
  • Loading branch information
IgnusG authored Jan 31, 2022
1 parent cfd4f4d commit 25b9b14
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class TwindPlugin {
...languageService,

// eslint-disable-next-line @typescript-eslint/no-explicit-any
getCompletionEntryDetails: (fileName, position, name, ...rest: any[]) => {
getCompletionEntryDetails: (fileName, position, name, ...rest) => {
if (enable && ttls.enabled) {
const context = helper.getTemplate(fileName, position)

Expand All @@ -92,8 +92,7 @@ export class TwindPlugin {
}
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
return (languageService.getCompletionsAtPosition as any)(fileName, position, name, ...rest)
return languageService.getCompletionEntryDetails(fileName, position, name, ...rest)
},

getCompletionsAtPosition: (fileName, position, options) => {
Expand Down

0 comments on commit 25b9b14

Please sign in to comment.