Skip to content
Prev Previous commit
Don't show sort command if file is excluded
  • Loading branch information
bradlc committed Aug 31, 2023
commit 273876c9cd2e891746fe121fa5eac6784f40300d
3 changes: 3 additions & 0 deletions packages/vscode-tailwindcss/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ async function getActiveTextEditorProject(): Promise<{ version: string } | null>
if (!client) {
return null
}
if (isExcluded(uri.fsPath, folder)) {
return null
}
try {
let project = await client.sendRequest<{ version: string } | null>('@/tailwindCSS/getProject', {
uri: uri.toString(),
Expand Down