Commit Graph

165 Commits

Author SHA1 Message Date
Raymond Zhao
41997d514d chore: npm audit fix (#279437)
* chore: npm audit fix

* chore: npm audit fix in extensions

* chore: npm audit fix in tests

* Catch last few
2025-11-25 20:29:09 +00:00
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
Matt Bierner
e4f9730eae Also update gulp 2025-08-07 20:15:04 -07:00
Matt Bierner
7bf1ab9dbe Also change common file extension 2025-08-07 20:07:03 -07:00
Matt Bierner
f272e51947 Convert esbuild scripts to modules
Planning to convert to typescript but want to do it in a few smaller steps
2025-08-07 20:04:44 -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
Robo
9494a89080 chore: add npmrc to extensions folder (#230214) 2024-10-01 12:43:01 +02:00
Robo
b5a6aa14a8 feat: switch to npm as default package manager (#226927)
* feat: move from yarn to npm

* chore: skip yarn.lock files

* fix: playwright download

* chore: fix compile and hygiene

* chore: bump vsce@2.17.0

Refs 8b49e9dfdf

* test: update results for bat and sh colorizer tests

* fix: add missing lock files for windows

* fix: switch to legacy-peer-deps

* chore: update markdown-it@14.1.0

Refs 737c95a129

esbuild step in extensions-ci-pr was previously using markdown-it
from root which had userland punycode and was able to compile successfully.

* ci: increase pr timeout for windows integration tests

* chore: fix product build

* build: ignore extension dev dependency for rcedit

* build: fix working directory inside container

* build: fix dependency generation

* npm: update dependencies

* ci: use global npmrc

* ci: update cache

* ci: setup global npmrc for private npm auth

* build: fix extension bundling

* chore: sync npm dependencies

* ci: debug env variables for container

* ci: fix win32 cli pipeline

* build: fix npmrc config usage for build/ and remote/ dirs

* fix: windows build

* fix: container builds

* fix: markdown-language-features tests and bundling

```
[03:58:22] Error: Command failed: /Users/demohan/.nvm/versions/node/v20.15.1/bin/node /Users/demohan/github/vscode/extensions/markdown-language-features/esbuild-notebook.js --outputRoot /Users/demohan/github/vscode/.build/extensions/markdown-language-features
✘ [ERROR] Could not resolve "punycode"

    extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27:
      14 │ var punycode     = require('punycode');
         ╵                            ~~~~~~~~~~

  The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
```

Adds userland package based on beed9aee2c

* fix: container builds for distro

* chore: update yarn occurrences

* fixup! chore: bump vsce@2.17.0

Uses the closest version to `main` branch that does not
include d3cc84cdec
while still having the fix 8b49e9dfdf

* chore: sync npm dependencies

* chore: sync npm dependencies

* chore: sync npm dependencies

* chore: throw error when yarn is used for installation

* chore: add review feedback

* chore: switch exec => run where needed

* chore: npm sync dependencies

* fix: markdown-language-features bundling

```
✘ [ERROR] Could not resolve "punycode"

    extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27:
      14 │ var punycode     = require('punycode');
         ╵                            ~~~~~~~~~~

  The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
```

Adds missing userland package based on markdown-it/markdown-it@beed9ae,
can be removed once we update markdown-it >= 14.1.0

* ci: rename no-yarn-lock-changes.yml

* chore: sync npm dependencies

* ci: restore no-yarn-lock-changes.yml

We can disable it in a separate PR to keep the required
checks happy and also need workflow edit perms.

* chore: sync npm dependencies

* ci: rebuild cache

* ci: fix no-package-lock-changes.yml

* chore: bump distro

* chore: rm yarn.lock files

* chore: rm yarn.lock files without dependencies

* chore: add vscode-selfhost-import-aid to postinstall dirs

* chore: bump distro
2024-09-06 22:18:02 +09:00
dependabot[bot]
1b27e602ed Bump ws from 8.13.0 to 8.17.1 in /extensions/notebook-renderers (#216556)
Bumps [ws](https://github.com/websockets/ws) from 8.13.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.13.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-25 13:45:49 +02: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
易良
f6790fc1a0 feat: Add the logo of the built-in extension (#192999)
* feat: Add the logo of the built-in extension

* chore(extension): add compressed icon

---------

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2023-10-05 10:40:24 -07:00
dependabot[bot]
8968aca21d Bump word-wrap from 1.2.3 to 1.2.4 in /extensions/notebook-renderers (#188225)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 12:04:47 +02: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