Fixes #340 - #341
Conversation
|
Thanks for your interest in palantir/eclipse-typescript, @Rouche! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request. |
|
CLA is signed
I think i fixed all. with this one. All done! |
| return this.tags; | ||
| } | ||
|
|
||
| public String getTagsText() { |
There was a problem hiding this comment.
I was unsure if you want to add the text in the Over. At least the method is there.
There was a problem hiding this comment.
by "Over" you mean "Overview"?
There was a problem hiding this comment.
Oops... i mean the Hover lol. The popup that appear on Hovering. This method would have to be used to fill it with more info.
Sorry.
| @@ -0,0 +1,78 @@ | |||
| /* | |||
| * Copyright 2013 Palantir Technologies, Inc. | |||
There was a problem hiding this comment.
Fixed. But i did not touch other files.
|
can you give an example of how to repro the error and how to test the fix? |
|
Pretty simple to test. Just use CTRL+SPACE after a dot. With This code can create the error: |
|
I found another bug: When doing a show difference in Subversive SVN. Fixed too. Sweet, now the diff view show the syntax coloring! |
| private IRegion getDamagedRegion(TextEvent event) { | ||
| IDocument document = this.viewer.getDocument(); | ||
| if(document == null) { | ||
| return null; |
There was a problem hiding this comment.
minor preference on using optional instead
There was a problem hiding this comment.
Gonna have to fill me in on this one. Been in TypeScript last year rusted my reflexes :P
There was a problem hiding this comment.
something like
if (document == null) {
return Optional.absent();
}
it's preferred so that the caller would know that the value might not be present, so it can do
if (maybeDamagedRegion.isPresent()) {
IRegion damagedRegion = this.getDamagedRegion(event).get();
...
}
it doesnt seem like anywhere else is using this pattern though so fine to keep it as it is for code consistency too
There was a problem hiding this comment.
Ok i see.
Well, you know Optional is JDK 1.8, the plugin right now is still JDK 1.6, until i commit my update of Tycko to 0.26.0, wich is pending on this merge :) This one is a lot more important.
There was a problem hiding this comment.
guava's be fine (thats what everyone uses before JDK 1.8), but yea not really important :P
| return this.tags; | ||
| } | ||
|
|
||
| public String getTagsText() { |
There was a problem hiding this comment.
by "Over" you mean "Overview"?
|
@Rouche is this good to go? or there's still more commits coming? |
|
Its all good and working well. 1 week of testing and no issues. (Except the preference one, but for another adventure) |
|
thank you @Rouche ! will merge this for now, and figure out the tsconfig issue separately |
No description provided.