Skip to content

Commit 8ec45eb

Browse files
committed
Simplify
1 parent bd1fc8c commit 8ec45eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/tailwindcss-language-server/src/projects.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export interface ProjectService {
102102
state: State
103103
tryInit: () => Promise<void>
104104
dispose: () => Promise<void>
105-
onUpdateSettings: (settings: any) => void
105+
onUpdateSettings: () => void
106106
onFileEvents: (changes: Array<{ file: string; type: FileChangeType }>) => void
107107
onHover(params: TextDocumentPositionParams): Promise<Hover>
108108
onCompletion(params: CompletionParams): Promise<CompletionList>
@@ -1186,7 +1186,7 @@ export async function createProjectService(
11861186
;(await disposable).dispose()
11871187
}
11881188
},
1189-
async onUpdateSettings(settings: any): Promise<void> {
1189+
async onUpdateSettings(): Promise<void> {
11901190
if (state.enabled) {
11911191
refreshDiagnostics()
11921192
}

packages/tailwindcss-language-server/src/tw.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ export class TW {
643643
this.setupLSPHandlers()
644644

645645
this.disposables.push(
646-
this.connection.onDidChangeConfiguration(async ({ settings }) => {
646+
this.connection.onDidChangeConfiguration(async () => {
647647
let previousExclude = globalSettings.tailwindCSS.files.exclude
648648

649649
this.settingsCache.clear()
@@ -656,7 +656,7 @@ export class TW {
656656
}
657657

658658
for (let [, project] of this.projects) {
659-
project.onUpdateSettings(settings)
659+
project.onUpdateSettings()
660660
}
661661
}),
662662
)

0 commit comments

Comments
 (0)