Commit 6d00a3e
authored
Add code gathering for single cell (#6803)
* Set up UI button
* Add gather files
* Set up sending messages from MainPanel to InteractiveWindow
* Implement INotebookExecutionLogger interface
* Cast vscodeLanguageClient.CompletionItem to any to fix build err
* Add GatherExecution to ServiceRegistry
* Correctly implement INotebookExecutionLogger
* Make sure we get the same instance of GatherExecution
* Works!
* Fix bug in lexer
* Use traceInfo and traceError instead of this.logger
* Exclude functions which don't modify their args
* Do not render gather button on edit cell
* Add newline after each slice for readability
* Ignore df.tail
* Render gather button on all code cells
* Parser TypeErrors on empty string
* Open gathered code over origin file, another visible editor, or beside, never on top of, the interactive window
* Update build script since settingregistry.d.ts for @jupyterlab/coreutils v3.0.0^ is different
* Add traceInfo, rename executionLogger, add comment at top of gathered program
* Bug fix, ensure that IPython get_ipython is imported
* Fix bug where gathered code was opening on top of interactive window because Output:Tasks window shows up as visibleTextEditors[0] with viewColumn === undefined
* Follow what's done in interactiveWindowCommandListener.viewDocument
* Add function test
* Get functional test passing
* Wrap gatherCode function with public facing implementation
* Add test for gather code button
* Fix variable naming
* Add functional test for code added from an editor
* Allow users to edit default slicing rules via settings.json
* Update test to pass in configService to gatherExecution
* Fix naming convention
* Don't parse code cells whose contents are just comments. Otherwise TypeError is thrown which pollutes the logs
* Find uses in classes
* Use the new MSR python-program-analysis npm package
* Remove scripts for parser since we're using the npm package now
* Bump @msrvida/python-program-analysis, remove unneeded dependencies
* Postinstall script needs to look elsewhere for the settingregistry file
* Use npm package for slicing functionality too
* Restore strict mode
* Remove unneeded code
* Bump @msrvida/python-program/analysis version
* Update to use Rich's new MockDocument constructor signature
* Put gather single cell behind a feature flag
* Update datascience dependencies
* Remove extra comma
* Move listening for gather feature flag change into GatherExecution
* Fix breaking unit tests
* Handle GatherCode message in a listener
* Add reload button
* Add news entry
* Add to react helpers
* Add more missing dom4 stuff
* Fix failing functional test
* Force version to be 0.1.0
* Use issue number1 parent de7a909 commit 6d00a3e
File tree
41 files changed
+7809
-6819
lines changed- .vscode
- build/ci
- news/1 Enhancements
- src
- client
- common
- utils
- datascience
- gather
- interactive-window
- intellisense
- jupyter
- datascience-ui
- history-react
- react-common
- images/GatherCode
- test
- datascience
- editor-integration
- gather
- typings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+7809
-6819
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 41 | | |
36 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
42 | 53 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments