Skip to content

Commit ddf9545

Browse files
committed
Don’t boot the server when opening an ignored document
1 parent ac906bb commit ddf9545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vscode-tailwindcss/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ export async function activate(context: ExtensionContext) {
544544

545545
// Files outside a folder can't be handled. This might depend on the language.
546546
// Single file languages like JSON might handle files outside the workspace folders.
547-
if (!folder) return
547+
if (!folder || isExcluded(document.uri.fsPath, folder)) return
548548

549549
if (!(await api.workspaceNeedsLanguageServer())) return
550550

0 commit comments

Comments
 (0)