zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.49k stars 3.02k forks source link

TypeScript Lint Error: Cannot find global type 'Boolean'. #14778

Open willswire opened 3 months ago

willswire commented 3 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Provision any of the Cloudflare Worker templates with TypeScript support, and watch the Zed TS language server throw the error: Cannot find global type 'Boolean'. for the tsconfig.json.

npm create cloudflare@latest -- --type openapi for example...

Environment

Zed: v0.144.3 (Zed) OS: macOS 15.0.0 Memory: 18 GiB Architecture: aarch64

(this was happening prior to installing the macOS 15.0.0 beta BTW)

If applicable, add mockups / screenshots to help explain present your vision of the feature

![Uploading Screenshot 2024-07-18 at 21.01.03.png…]()

If applicable, attach your Zed.log file to this issue.

No response

notpeter commented 3 months ago

I am not able to reproduce this with Zed v0.144.3 or the current Zed stable (v0.145.1) and it looks like your screenshot did not upload. I followed the npm create cloudflare@latest -- --type openapi and created a project but was not able to trigger the issue.

Could you create a test repo that triggers the problem for you and I'll see if I can reproduce. (I'm running MacOS 14.5 btw).

willswire commented 3 months ago

@notpeter check out this project: https://github.com/willswire/estado

open tsconfig.json and then tests/index.test.ts

Screenshot 2024-07-27 at 10 36 36