-
-
Notifications
You must be signed in to change notification settings - Fork 443
#1404 Serial Monitor message history #1467
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
Conversation
@kittaakos, is everything good to go for this PR? Is there anything else I should do to get this ready? |
I have reviewed the code and have some queries:
I will manually test your code out and give you feedback maybe tomorrow |
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 gave it a try, but it behaves differently than in IDE 1.x.
Steps to reproduce:
- send
one
, - send
two
, - press up -> the history must be
two
, but it'sone
If you fix this, I take another look.
IDE 1.x:
ide1x_history.mp4
IDE2:
history_ide2.mp4
@@ -6,6 +6,74 @@ import { BoardsServiceProvider } from '../../boards/boards-service-provider'; | |||
import { MonitorModel } from '../../monitor-model'; | |||
import { Unknown } from '../../../common/nls'; | |||
|
|||
class RingList { |
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.
RingList
implies that message history is a cycle.
With the following sent messages:
one
,two
, andthree
.
I would expect to get three
after one
. But no, so the class name is wrong.
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.
True. I debated with myself over that name. I'm changing it to HistoryStack. It's more descriptive.
private index: number; | ||
private end: number; | ||
|
||
constructor(size: number = 100) { |
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.
Should be constructor(size = 100) {
.
this.init(size); | ||
} | ||
|
||
private init(size: number = 100) |
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.
Should be private init(size = 100) {
Please respect the position of the curly braces.
It's almost been 3 weeks since the last update. How can I contribute and complete the required changes so that this feature is completed? |
Thank you for your initial work on this feature, @dwightfowler-cd. There is another PR: #1562 based on your contribution. Please follow that one. I am closing this as a duplicate. |
Motivation
Address PR #1453 comment
Change description
Conform to community coding guidelines
Other information
Closes #1404
Reviewer checklist