To resolve this problem, just click ⚙️ on the Live Server extension and then select Enable (Workspace).