Skip to content

Add language server support for native interactive window - #16560

Merged
Joyce Er (joyceerhl) merged 27 commits into
mainfrom
dev/joyceerhl/interactive-intellisense
Jun 29, 2021
Merged

Joyce Er (joyceerhl) merged 27 commits into
mainfrom
dev/joyceerhl/interactive-intellisense

Conversation

@joyceerhl

Copy link
Copy Markdown

No description provided.

@rebornix

Copy link
Copy Markdown

Right now when we close a notebook with diagnostics, the diagnostics are never cleared due to the flow below

open interactive_1 notebook
open interactive_1#ch00000 markdown
open interactive_1#ch00001 python
open dummy_file_abc.py


close interactive_1#ch00000 markdown, ignore
close interactive_1  remove wrapper for dummy_file_abc.py
close interactive_1#ch00001
    create wrapper, dummy_file_def.py
    next(close, dummy_file_def.py)
@joyceerhl

Copy link
Copy Markdown
Author

Rich Chiodo (@rchiodo), Peng Lyu (@rebornix) and I would really appreciate your review on the initial work we have here. Per this morning's discussion there are still some other issues with clearing diagnostics that we will resolve in a separate PR.

@rebornix
Peng Lyu (rebornix) marked this pull request as ready for review June 28, 2021 21:12

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I think I'd want a unit test to verify the concat stuff in the interactive concat document.

@karrtikr Kartik Raj (karrtikr) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see no testing, do we plan to do it separately, or is it not needed? Otherwise, LGTM.

return position;
}

lineAt(posOrNumber: Position | number): TextLine {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious, why are scopes not explicitly declared for these methods? Is it because it means they are public methods by default?

@joyceerhl Joyce Er (joyceerhl) Jun 28, 2021 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add a unit test this week, and there are still some other bugs with diagnostics not being cleared on document close that we will fix up in a separate PR. And yes all class members are public by default, and these methods are also supposed to be public.

@paulacamargo25 Paula (paulacamargo25) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@joyceerhl
Joyce Er (joyceerhl) merged commit b97942d into main Jun 29, 2021
@joyceerhl
Joyce Er (joyceerhl) deleted the dev/joyceerhl/interactive-intellisense branch June 29, 2021 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog No news entry required

5 participants