Skip to content

Commit 415ce3a

Browse files
committed
Simplify
1 parent 3656c6c commit 415ce3a

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ export class TW {
655655
console.log(`[Global] Initialized ${enabledProjectCount} projects`)
656656

657657
this.disposables.push(
658-
this.connection.onDidChangeConfiguration(async ({ settings }) => {
658+
this.connection.onDidChangeConfiguration(async () => {
659659
let previousExclude = globalSettings.tailwindCSS.files.exclude
660660

661661
this.settingsCache.clear()
@@ -668,7 +668,7 @@ export class TW {
668668
}
669669

670670
for (let [, project] of this.projects) {
671-
project.onUpdateSettings(settings)
671+
project.onUpdateSettings()
672672
}
673673
}),
674674
)

0 commit comments

Comments
 (0)