Skip to content

Commit a7b41ba

Browse files
committed
Simplify
1 parent d561b61 commit a7b41ba

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>
@@ -1182,7 +1182,7 @@ export async function createProjectService(
11821182
;(await disposable).dispose()
11831183
}
11841184
},
1185-
async onUpdateSettings(settings: any): Promise<void> {
1185+
async onUpdateSettings(): Promise<void> {
11861186
if (state.enabled) {
11871187
refreshDiagnostics()
11881188
}

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)