Skip to content

Conversation

@jakebailey
Copy link
Member

@jakebailey jakebailey commented Jun 20, 2024

#216566 added this file to tsconfig such that tsc -p ./src compiles it, but it contained a no-default-lib directive. This directive is not supposed to be used except specifically in the case of "I'm writing my own alternative lib.d.ts and need to tell TypeScript to use it instead" (see https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-no-default-libtrue). Having it breaks the standard library definitions. So, remove that.

This makes the lib errors go away, but then you hit microsoft/TypeScript#20595 as tsconfig includes DOM which cannot be used with WebWorker. So, remove the file from tsconfig again too.

cc @jrieken @bpasero

@jakebailey
Copy link
Member Author

Does CI not check tsc -p ./src? I am happy to add a job for something like that...

@bpasero bpasero requested a review from mjbvz June 21, 2024 04:55
@bpasero bpasero added this to the June 2024 milestone Jun 21, 2024
@bpasero
Copy link
Member

bpasero commented Jun 21, 2024

We do have a lot of checks, hygiene and compilation going on in here: https://dev.azure.com/vscode/VSCode/_build/results?buildId=124881&view=logs&j=c7493abb-a1f4-533f-2d24-71780a69f247&t=82da385d-6a6e-5c36-6c0f-8c375395baef

But maybe we miss something.

@bpasero
Copy link
Member

bpasero commented Jun 21, 2024

Running your command returns Found 148 errors in 65 files., so I let @mjbvz comment.

@bpasero bpasero removed the request for review from mjbvz June 24, 2024 06:34
@bpasero bpasero enabled auto-merge (squash) June 24, 2024 06:34
@bpasero bpasero merged commit 3410773 into microsoft:main Jun 24, 2024
bricefriha pushed a commit to bricefriha/vscode that referenced this pull request Jun 26, 2024
aaronchucarroll pushed a commit to aaronchucarroll/vscode that referenced this pull request Jul 10, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Aug 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants