-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add human readable threadsleep description hover. #242
Conversation
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
@CWempe could you do some testing? Extension with this changes included can be downloaded at our azure artifactory |
I used this test commands: Thread::sleep(12345678)
Thread::sleep(1234567890)
Thread::sleep(1234567890123)
Thread::sleep(9765432)
Thread::sleep(7)
Thread::sleep(4000)
Thread::sleep(60000)
Thread::sleep(7abc)
Thread::sleep(7.)
Thread::sleep(xy7abc) As expected, it does not calculate days or years. 😜 And a warning would be nice if there is an invalid value inside the method. And it seems there is a big blank line above "Sleep Time". Other than that it looks great! |
I have limited the matching up to 9 digit millisecond numbers. Also i will not do any validation (at least like "you should not mix digits and numbers") in the hover. |
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
OK this changes should prevent the hover from being shown when something different than a 1 to 7 digit number is in the thread sleep method. Vsix is available in our azure artifactory |
Overall solution looks good so far. |
Fixes #237
Fixes #240
Signed-off-by: Jerome Luckenbach github@luckenba.ch