Commit Graph

147 Commits (d226a2a497b928d78aa654f74c8af5317d3becfb)

Author SHA1 Message Date
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
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
dependabot[bot] afacb63ab5
Bump tough-cookie from 4.1.2 to 4.1.3 in /extensions/notebook-renderers (#187410)
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.1.2...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 10:03:51 +02:00
Matt Bierner 5a55352cf7
Combine esbuild scripts (#184531)
* Combine esbuild scripts

This combines the various build scripts used for building webview/notebook content. This should make it easier to update settings for them

As part of this, I also fixed the script so that on watch it restarts automatically on syntax errors instead of exiting

* Migrate other build script

* Fixing math build script
2023-06-09 14:55:05 -07:00
aamunger 3767249655
select previous output to be replaced correctly 2023-06-08 21:51:18 -07:00
aamunger c52a87e8a6
use scroll setting variable correctly 2023-05-26 15:21:45 -07:00
aamunger c71766d505
event testing 2023-05-24 14:24:30 -07:00
aamunger a54803afc9
re-add events each time the output ID is rendered 2023-05-24 11:24:13 -07:00
aamunger 0230ac67e9
comment 2023-05-23 16:25:34 -07:00
aamunger 43d5cc452c
account for running a cell with one output after that cell previously produced multiple streaming outputs 2023-05-23 16:20:54 -07:00
aamunger 6ddfc5f3b2
replace the content of the scrollable div, rather than the div itself 2023-05-23 14:31:17 -07:00
Aaron Munger d6db619ce7 prefix metadata altText 2023-05-22 09:39:48 -07:00