Commit Graph

147 Commits

Author SHA1 Message Date
Peng Lyu
d7a2778121 fix notebook renderers 2025-11-12 16:34:57 -08:00
Don Jayamanne
b282eee40c Remove usages of in (#276333)
* Remove usages of in

* Update extensions/ipynb/src/serializers.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-09 08:07:11 +01:00
Matt Bierner
1c35a4d05c Enforce single quote string usage in extension tests
Single quoted string usage is already enforced everywhere except our tests. Having this inconsistent style can confuse contributors and code generation

Starting with converting over tests in the `extensions` dir
2025-10-15 01:51:43 -07:00
Matt Bierner
98b069c041 Work towards getting isolated built-in extension compiles
For #271167

This makes it so our built-in extensions can mostly be built using `tsc` on the command line. Previously the extensions were picking up a lot of typing info from the root `node_modules` that meant they weren't truly independent
2025-10-13 11:03:20 -07:00
Matt Bierner
360c9fd134 Add lint rule for as any and bulk ignore all existing breaks
For #269213

This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks

Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week work
2025-10-02 23:38:33 -07:00
Ladislau Szomoru
4d7c56ee82 Engineering - Add GitHub action for pull requests (#254056)
* Test - handle running tests as part of a GitHub action

* Add GitHub action files
2025-07-04 08:21:56 +00:00
Aaron Munger
4fed93462a stracktrace parser improvements (#252020)
fix stacktrace parsing
2025-06-24 07:53:42 -07:00
Aaron Munger
d46348a55b Revert "fix output links for IPython 9 (#248349)" (#252017)
This reverts commit e5ddb82cdc.
2025-06-21 09:40:52 +02:00
Matt Bierner
600b9b2975 Merge pull request #248346 from rbuckton/pre-ts5.9-dom
Add casts to silence breaks due to updated DOM types
2025-05-14 11:37:18 -07:00
Aaron Munger
dac0c97d08 don't create links when they won't be rendered (#248353)
dont create links when they wont be rendered
2025-05-07 16:19:12 -07:00
Aaron Munger
e5ddb82cdc fix output links for IPython 9 (#248349)
* fix output links for IPython 9

* fix one case and comments on the regexes
2025-05-07 15:44:56 -07:00
Ron Buckton
639b67695e Add casts to silence breaks due to updated DOM types 2025-05-07 16:17:16 -04:00
Aaron Munger
dac6e8999f remove background colors from combination setters as well (#245734) 2025-04-05 00:05:22 +02:00
Aaron Munger
70e928a4b2 set word wrap on correct element (#238493)
* set word wrap on correct element

* update test
2025-01-23 08:52:41 -08:00
Peng Lyu
1b883b238e Fix #209158. Add Copy Output and Open Output in Text Editor to Scrollable text output context menu. (#216920)
* Fix #209158. Add Copy Output and Open Output in Text Editor to Scrollable text output context menu.

* Context menu should be triggered on container

* fix naming
2024-06-24 10:31:17 -07:00
Aaron Munger
76664e7ce6 max height buffer to prevent small scrollbar (#214654) 2024-06-07 16:40:42 -07:00
Remco Haszing
a131a88231 Replace removeChild with remove (#213465)
* Replace removeChild with remove

This replaces most uses of `parent.removeChild(child)` with
`child.remove()`.

The two are almost equivalent. The only difference is that
`parent.removeChild(child)` throws if the given node is not a child of
the parent, whereas `child.remove()` never throws. There is no noticable
performance difference. The only reason to use `removeChild` is to
support Internet Explorer, but that’s no longer supported by Monaco
editor.

* Fix broken CSP hash

The script content changed, so the sha256 hash changed too.

* Update src/vs/editor/browser/config/charWidthReader.ts

Co-authored-by: Logan Ramos <lramos15@gmail.com>

---------

Co-authored-by: Logan Ramos <lramos15@gmail.com>
2024-06-05 00:21:08 +02:00
Aaron Munger
c6563ccae8 put word wrap styling on parent container (#211982)
* put word wrap styling on parent container

* update tests
2024-05-03 15:27:36 -07:00
Aaron Munger
674c62fade Minimal error renderer (#210767)
* collapse stack trace

* interaction buttons

* fixup

* place feature behind option

* styling, more cleanup

* test returned link, fix test bug

* test header link, skip header link for old IPython

* padding

* remove inline margin
2024-04-22 08:09:11 -07:00
Aaron Munger
ef40932ae9 display unknown text mime outputs as plain text (#203849) 2024-01-31 08:51:41 -08:00
Aaron Munger
7a56623b82 enable copying svg cell output (#203843)
* find the correct svg element and write it to the clipboard

* add context to allow context menu

* simplify selection

* better logs for error states
2024-01-31 06:18:37 -08:00
Hans
bc00185b3b Fix the broken links to the latest valid links (#184131) 2024-01-29 19:09:11 +01:00
Aaron Munger
298b07637a remove console log message (#200684) 2023-12-12 22:13:54 +01:00
Aaron Munger
d5d1424296 Allow disabling filepath links (#200577)
* add setting to enable/disable linkifying filepaths

* implement linkify setting

* update setting without reload

* switch casing style
2023-12-11 15:47:06 -08:00
Aaron Munger
8ba75dfdc8 more strict on regex, fix special character 2023-11-06 10:59:40 -08:00
Aaron Munger
6afac1d3f7 fix stack trace linking 2023-11-06 10:59:40 -08:00
aamunger
2b721ec298 use named capture groups 2023-10-19 08:55:50 -07:00
aamunger
4c2c49d5b0 added line link 2023-10-19 08:55:50 -07:00
aamunger
55794b6c76 handle new URI format from webview 2023-10-19 08:55:50 -07:00
aamunger
a9ee16c135 handle new URI format from webview 2023-10-19 08:55:50 -07:00
aamunger
3b6848c4e6 pass test 2023-10-19 08:55:50 -07:00
Aaron Munger
4540b9ba1f older Ipython, failing test 2023-10-19 08:55:50 -07:00
Aaron Munger
fe8ac3f89e linkify stack lines for cell references 2023-10-19 08:55:50 -07:00
Aaron Munger
2123a011bf linkify stack lines for file references 2023-10-19 08:55:50 -07:00
Aaron Munger
315f158d20 link test 2023-10-19 08:55:50 -07:00
Aaron Munger
8e8811a5c1 clean raw jupyter error stack traces 2023-10-19 08:55:50 -07:00
Aaron Munger
ab09263c52 linkify tests 2023-09-12 10:41:50 -07:00
Aaron Munger
fb8e51346f test for link rendering 2023-09-11 15:12:56 -07:00
Aaron Munger
ddc81ac330 prioritize html links since they can wrap other link types 2023-09-08 10:11:44 -07:00
Aaron Munger
808dd6dded page up/down should only scroll scrollable output when focused 2023-09-07 11:57:02 -07:00
Aaron Munger
bd60cc529c allow copying cell output images from context menu 2023-08-18 10:43:43 -07:00
Aaron Munger
4a2c8f805a remove unused variable 2023-08-14 12:03:17 -07:00
Aaron Munger
b9cd07d8bf move html link creation to linkify function 2023-08-14 11:44:28 -07:00
aamunger
72806b4403 add/fix tests 2023-07-17 16:18:25 -07:00
Aaron Munger
e68a34f9bd append when stream outputs are concatenated 2023-07-12 15:20:43 -07:00
Aaron Munger
5b78562d6c truncate long outputs 2023-07-12 15:03:49 -07:00
Aaron Munger
77a8acf719 don't rerender the same output 2023-07-12 11:30:58 -07:00
aamunger
4c2df56f98 append html 2023-07-12 10:03:31 -07:00
Aaron Munger
c5511d5eec pipe appended data info to webview 2023-07-11 15:08:04 -07:00
aamunger
3767249655 select previous output to be replaced correctly 2023-06-08 21:51:18 -07:00