-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean Up theia.d.ts
#11493
Clean Up theia.d.ts
#11493
Conversation
229f84a
to
b5ea5c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good, thanks for the cleanup!
* enables reusing existing code without migrating to a specific promise implementation. Still, | ||
* we recommend the use of native promises which are available in this editor. | ||
*/ | ||
interface Thenable<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this type already defined in @theia/plugin
? Is it necessary to re-declare it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm open to suggestions. It could be declared only in theia.proposed.d.ts
and then picked up automatically in theia.d.ts
but it's good for it to be in theia.d.ts
for the use of the comparator.
a8a0027
to
12b6970
Compare
dc56806
to
e1f0901
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes overall look good to me 👍 The only thing I noticed was how our typedocs generation would fail to produce any meaningful content now for the @theia/plugin
extension.
8720d09
to
e3c5c19
Compare
e3c5c19
to
ddfc055
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 It'll definitely help with all the false positives we used to see and would now be correctly identified with the comparator updates.
Depends on #11564.
What it does
There are a number of syntactic (misplaced
readonly
modifiers) and semantic (use of undeclared variables) problems in ourtheia.d.ts
file. This cleans them up.We can detect these problems by setting
skipLibCheck: false
inpackages/plugin/tsconfig.json
, but that makes it impossible to compile the application because we have a lot of conflicting declarations in our node modules.How to test
Review checklist
Reminder for reviewers