Skip to content

Commit 5f3e6ce

Browse files
committed
Don't send update notification if not enabled
1 parent 6c6160a commit 5f3e6ce

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/lsp/server.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,15 @@ connection.onInitialized &&
181181
)
182182
}
183183

184-
connection.sendNotification('tailwindcss/configUpdated', [
185-
{
186-
configPath: state.configPath,
187-
config: state.config,
188-
plugins: state.plugins,
189-
},
190-
])
184+
if (state.enabled) {
185+
connection.sendNotification('tailwindcss/configUpdated', [
186+
{
187+
configPath: state.configPath,
188+
config: state.config,
189+
plugins: state.plugins,
190+
},
191+
])
192+
}
191193

192194
onMessage(connection, 'configWithLocations', async () => {
193195
return getConfigWithLocations(state.configPath)

0 commit comments

Comments
 (0)