-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
issue reporter refactor (web prep) #212762
Conversation
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.
Good! Just a few very general comments, considering I'm not familiar with the code in this area.
this.addEventListener('disableExtensions', 'click', () => { | ||
this.issueMainService.$reloadWithExtensionsDisabled(); | ||
}); | ||
|
||
this.addEventListener('extensionBugsLink', 'click', (e: Event) => { | ||
const url = (<HTMLElement>e.target).innerText; | ||
windowOpenNoOpener(url); | ||
}); |
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.
unsure whether any of these need a debounce. Could someone click multiple times and fire multiple times?
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.
also unsure, will double check with Tyler on this 😢 personally haven't seen any issues on this tho (window focus is changed in either cases)
Just fyi for some layering issues you might encounter: nothing can depend on |
@bpasero thanks for those points! atm, I'm opening via a new |
@justschen I think https://github.com/microsoft/vscode/wiki/Source-Code-Organization is a good read about this topic, feel free to reach out in case of questions. As for the
Again, my feeling is things would be much easier if both desktop and web would use the same issue window, opened as aux window. |
refactoring and moving around some stuff for issue reporter in preparation for web.
issue.ts
containsBaseIssueReporterService
.Web issue reporter will use
browser/issue/issueReporterService.ts
withIssueReporterWeb extends BaseIssueReporterService
Normal issue reporter will use
electron-sandbox/issue/issueReporterServiceNew.ts
withIssueReporterNew extends BaseIssueReporterService
in
issueMainService
, we change to use the newIssueReporterNew
object.can be easily reverted simply by changing instantiation back to
IssueReporter
instead ofIssueReporterNew