We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c73ec4 commit ff40f97Copy full SHA for ff40f97
packages/tailwindcss-language-server/src/tw.ts
@@ -1041,11 +1041,17 @@ export class TW {
1041
this.watched.length = 0
1042
}
1043
1044
- restart(): void {
+ async restart(): void {
1045
+ let isTestMode = this.initializeParams.initializationOptions?.testMode ?? false
1046
+
1047
console.log('----------\nRESTARTING\n----------')
1048
this.dispose()
1049
this.initPromise = undefined
- this.init()
1050
+ await this.init()
1051
1052
+ if (isTestMode) {
1053
+ this.connection.sendNotification('@/tailwindCSS/serverRestarted')
1054
+ }
1055
1056
1057
async softRestart(): Promise<void> {
0 commit comments