Commit graph

3995 commits

Author SHA1 Message Date
Tyler Leonhardt c240648548
include package.nls.json files in nls metadata 2021-09-16 10:26:46 -07:00
Tyler Leonhardt e54f90f0fd
upload nlsmetadata 2021-09-16 09:16:47 -07:00
Matt Bierner 9e5ee5521a
Pick up new TS version for building VS Code
Fixes a few instances of `Promise.all` and also adds an any cast to workaround an issue
2021-09-14 14:24:53 -07:00
Alex Dima 7b23c5479c
Clean up diff editor options and add diffEditor.maxFileSize 2021-09-14 12:34:08 +02:00
João Moreno 2cff099ddc change kv filter
cc @sbatten
2021-09-13 10:24:09 +02:00
Tyler Leonhardt e3880e11bd
add alpine to createAsset 2021-09-10 15:53:46 -07:00
Tyler Leonhardt 98593a8958
use correct qemu command 2021-09-10 15:25:48 -07:00
Tyler Leonhardt c0f2b96605
rename job 2021-09-10 15:02:58 -07:00
Tyler Leonhardt 75edf20854
add product build alpine 2021-09-10 15:00:45 -07:00
Tyler Leonhardt eca2e54be7
typo in product-build-alpine 2021-09-10 13:56:26 -07:00
Tyler Leonhardt 781c010610
include in condition 2021-09-10 13:54:54 -07:00
Tyler Leonhardt 2aa8c0f428
add image name 2021-09-10 13:28:59 -07:00
Tyler Leonhardt 1cdf829965
make alpine build vscode_arch aware 2021-09-10 10:58:04 -07:00
Matt Bierner 0b3e72d566
Roll back to last know stable TS version
Current nightly has issues with intl: https://github.com/microsoft/TypeScript/issues/45804

The previous nightly seems to have some regression around types that cause a build failure

Just go back to last known good build for now
2021-09-09 10:42:40 -07:00
Matt Bierner b2aa5372a8
Go back to previous day TS
Work around regression in intl.2020 types
2021-09-09 10:24:52 -07:00
Matt Bierner affcb67532
Pick up new TS version 2021-09-09 10:02:55 -07:00
Raymond Zhao 90087ede3b
Point users more directly to prerequisites #131074 2021-09-07 12:56:12 -07:00
Matt Bierner 474d4951d8
Switch to dompurify for sanitizing markdown content (#131950)
* Switch to dompurify for sanitizing markdown content

Switches us from using `insane` to instead use `dompurify`, which seems to be better maintained and also has some nice features, such as built-in trusted types support

I've tried to port over our existing sanitizer settings as best as possible, but there's not always a 1:1 mapping between how insane works and how dompurify does. I'd like to get this change in early in the iteration to catch potential regressions

* Remove logging and renaming param

* Move dompurify to browser layer

* Fixing tests and how we check valid attributes

* Allow innerhtml in specific files

* Use isEqualNode instead of checking innerHTML directly

innerHTML can return different results on different browsers. Use `isEqualNode` instead

* Reapply fix for trusted types

* Enable ALLOW_UNKNOWN_PROTOCOLS

I beleive this is required since we allow links to commands and loading images over remote

* in -> of

* Fix check of protocol

* Enable two more safe tags
2021-09-03 12:17:02 -07:00
Matt Bierner 44c4e57f13
Pick up new TS version 2021-09-02 10:09:25 -07:00
Alexandru Dima e5613976de
Update to latest playwright 2021-09-01 18:18:03 +02:00
Alexandru Dima 0afa4cd1eb
push compilation output 2021-09-01 11:41:17 +02:00
Alexandru Dima 67d35ad418
Use relevant sections from package.json in the cache key computation 2021-09-01 11:38:10 +02:00
Benjamin Pasero 0b6b4b3d85
Enable screenshot option properly for smoke tests (#131982)
* smoke test

* undo failure
2021-08-31 17:35:22 +02:00
Logan Ramos d2a8f91fb5
Update build scripts 2021-08-31 10:21:19 -04:00
Johannes Rieken 55f80e57a9
add missing compile file 2021-08-31 16:09:10 +02:00
Johannes Rieken 7e2452498f
fix https://github.com/microsoft/vscode/issues/130073 2021-08-31 14:44:42 +02:00
Matt Bierner 4c08ca59db
Go back to older TS version to work around formatting inconsistency
Reverting to older TS nightly to avoid https://github.com/microsoft/TypeScript/issues/45645
2021-08-30 13:54:40 -07:00
Matt Bierner e03f5d4e27
Bump TS version 2021-08-30 13:54:39 -07:00
Johannes Rieken e0c5f66bb5
Merge branch 'main' into joh/langStatus 2021-08-30 10:34:44 +02:00
Matt Bierner c2d5e394c3
Pick up new TS version for building VS Code 2021-08-27 16:09:16 -07:00
Johannes Rieken e6bec389fb
Merge branch 'main' into joh/langStatus 2021-08-27 14:51:28 +02:00
Ladislau Szomoru 25f89666dc
Bring back Windows smoke tests 2021-08-26 11:52:34 +02:00
Johannes Rieken 4baebf9ea0
Merge branch 'main' into joh/langStatus 2021-08-25 14:24:44 +02:00
Ladislau Szomoru 00ce3879c3
Comment out Windows smoke tests 2021-08-25 11:24:24 +02:00
Johannes Rieken bdbcd48316
Merge branch 'main' into joh/langStatus 2021-08-23 18:37:45 +02:00
deepak1556 89bbd372f4 ci: update node modules cache 2021-08-20 10:19:59 -07:00
Johannes Rieken 2a79e2997c
Merge branch 'main' into joh/langStatus 2021-08-20 12:34:23 +02:00
Isidor Nikolic b3579dc545
Merge pull request #131048 from microsoft/digitarald/more-filetypes
Adding most frequently used file associations
2021-08-20 11:28:36 +02:00
Johannes Rieken 47c2a4983c
Merge branch 'main' into joh/langStatus 2021-08-20 11:10:00 +02:00
Alex Dima 8ef3beee63
Move extra monaco.d.ts content to the recipe file 2021-08-20 10:21:29 +02:00
Alex Dima 5fd40b7782
Merge remote-tracking branch 'origin/main' into define-window-monaco-environment 2021-08-20 10:13:26 +02:00
Harald Kirschner 35742e91cc Adding compiled version of the electron.ts 2021-08-18 14:08:28 -07:00
isidor 1bcb2b3768
Merge branch 'main' into digitarald/more-filetypes 2021-08-18 14:52:06 +02:00
Johannes Rieken 6d49535b2a
Merge branch 'main' into joh/langStatus 2021-08-18 09:24:37 +02:00
Harald Kirschner dd95be5247 Remove rhtml as deprecated type 2021-08-17 18:00:32 -07:00
Harald Kirschner 2a59986e99 Adding most frequently used file assocations 2021-08-17 17:57:54 -07:00
Matt Bierner acdb2d3cc3
Update TS version for building VS Code 2021-08-17 12:59:55 -07:00
Johannes Rieken 4222c512c2
add fly-out UI for language status items, tweak API proposal 2021-08-17 16:58:36 +02:00
Martin Aeschlimann 51c39d0df3
update isWebExtension check in built script (fixes microsoft/vscode-internalbacklog#2295) 2021-08-16 15:57:36 +02:00
isidor a796c8e749
Register Code as an editor for supported file types default ON 2021-08-13 15:56:25 +02:00
Robo ab311cf5be
fix: build native modules with CFG (#130529)
* fix: build native modules with CFG and /W4

* chore: bump spdlog@0.13.6

* chore: remove unused env vars

Co-authored-by: SteVen Batten <stbatt@microsoft.com>
2021-08-12 09:59:53 -07:00
Benjamin Pasero b794b9223c
:chore: sqlite3 module (#130654) 2021-08-12 09:37:55 +02:00
Logan Ramos 279c4d8fcb
Use the new loader format for web selfhost (#130592)
* Update workbench html and bump distro

* Bump distro

* Add web node paths to the build task too

* Split task for reuse

* Bump distro
2021-08-11 11:59:14 -04:00
Matt Bierner 08b1c2e68c
Pick up newest TS for building VS Code 2021-08-10 20:34:20 -07:00
Logan Ramos 8079e0b721
Move webNodePaths to run on compile since we rimraf out 2021-08-10 16:56:23 -04:00
Logan Ramos 6533d46465
Fix case where out/vs doesn't exist 2021-08-10 15:13:27 -04:00
Logan Ramos 82e4bc85cd
Dynamically generate web package paths 2021-08-10 14:44:58 -04:00
Matt Bierner 813c0b2178
Pick up newest TS versions 2021-08-09 11:24:34 -07:00
SteVen Batten c0f739ea25
add compliance pipeline (#130289)
Adding SDL compliance pipeline
2021-08-09 07:37:21 -07:00
Tyler James Leonhardt cfcda1c048
Improve performance of language detection (#130006)
* initial move to worker

* move event handling to the untitledTextEditorModel

* reuse simpleWorker interfaces and classes

* use correct path to languageDetection

* have vscode-languagedetection be outside of the asar

* add telemetry

* don't unpackage anything from languagedetection because it's not needed

* add an integration test

* some of Ben's feedback

* rework worker code to avoid duplication

* add isDisposed check

* fix test

* Isi and Ben feedback part 2

* use RunOnceScheduler instead and try to fix the test using events

* Ben feedback part 3

* bump distro
2021-08-06 11:56:14 -07:00
Robo 4fee848f2f
fix: CXXABI requirements for older distros (#129360)
* fix: use clang and libcxx from chromium

* chore: add flags for Link-Time Optimization

libcxx builds from upstream are built with LTO, avoiding these
flags will cause miscompiles

* chore: add lto flags to compilation units
2021-08-06 08:48:45 -07:00
deepak1556 d49d7e7fe1 chore: harder checks around universal build creation 2021-08-05 23:55:06 -07:00
deepak1556 49af1cbe00 fix: native module bundling in universal builds
Fixes https://github.com/microsoft/vscode/issues/130222
2021-08-05 23:02:58 -07:00
Matt Bierner ab598a53ab
Only include prod node_modules from extensions
Fixes #130158
2021-08-05 13:39:04 -07:00
Benjamin Pasero 4178ea04ec
smoke - enable screenshot option for failing smoke tests 2021-08-05 12:35:42 +02:00
Matt Bierner 6838cc17b5
Revert "Revert "Update to build with latest TS version""
This reverts commit 3bf817f0f8.
2021-08-03 12:01:56 -07:00
deepak1556 934d280a9f chore: bump vscode-universal-bundler
Fixes https://github.com/microsoft/vscode/issues/115262
2021-08-02 22:14:02 -07:00
Matt Bierner 3bf817f0f8
Revert "Update to build with latest TS version"
This reverts commit e53be27652.
2021-08-02 17:25:14 -07:00
Matt Bierner e53be27652
Update to build with latest TS version 2021-08-02 15:33:27 -07:00
Logan Ramos e97a825a09
Reset timeout 2021-08-02 09:28:38 -04:00
Logan Ramos c617bfa26c
Try longer timeout 2021-07-29 12:22:27 -04:00
Alex Ross 5bd829ab7c
Revert "Comment out smoke tests on windows"
This reverts commit dbd291c716.
2021-07-27 17:41:17 +02:00
Alex Ross dbd291c716
Comment out smoke tests on windows 2021-07-27 13:30:07 +02:00
Logan Ramos c8e6d08e3a
Update to the latest extension module 2021-07-26 13:44:43 -04:00
Remco Haszing 42c0c17cea
Fix build script to define window.MonacoEnvironment type 2021-07-23 15:43:30 +02:00
Rob Lourens 5793ae026a Rename serializer extension and set up build scripts 2021-07-21 15:03:24 -07:00
Tyler Leonhardt e2b2cf2050
include model in web package 2021-07-19 14:26:16 -07:00
Matt Bierner 9c7eeafb1d
Pick up latest TS nightly for building VS Code 2021-07-19 10:56:30 -07:00
Tyler James Leonhardt 8f88009816
Initial support for language detection (#128708)
* initial language detection

* add configuration and extra event on UntitedTextEditorService

* check isWeb, use beter mode API, include model in unpacked

* typo in path
2021-07-16 16:43:23 -07:00
João Moreno bb5e8374d9
💄 2021-07-16 13:06:51 +02:00
João Moreno 8df547fef3
Merge branch 'main' into pr/117713 2021-07-16 13:03:08 +02:00
Johannes Rieken ce17560387
fix missing nls entry 2021-07-15 14:51:56 +02:00
Matt Bierner 1ac570edce
Update to build using latest TS nightly 2021-07-14 14:42:43 -07:00
Martin Aeschlimann 7927075f89
Merge pull request #128545 from microsoft/joh/webpack5
Adopt webpack 5
2021-07-14 22:32:54 +02:00
Robo 9520f0a515
chore: update to electron 13 (#124666)
* chore: bump electron@13.0.1

* chore: update cache for native modules

* chore: bump electron@13.1.2

* chore: bump electron@13.1.4

* chore: fix user data dir length for validateIPCHandleLength check

* chore: always disable uploadToServer on OSS

* chore: use process.contextIsolated property

* chore: bump electron@13.1.6

* fix: getUserDataPath helper
2021-07-13 20:01:10 -07:00
Martin Aeschlimann d38279ba73
Merge branch 'main' into joh/webpack5 2021-07-13 09:27:13 +02:00
João Moreno af7e67f8e4
use esrpcli.dll 2021-07-09 15:34:36 +02:00
Martin Aeschlimann 7ded90e452
Merge branch 'main' into joh/webpack5 2021-07-09 09:50:10 +02:00
Matt Bierner 0762d23ae7
Build VS Code using TS 4.4 (#127823)
* Build VS Code using TS 4.4

* Remove usages of deprecated `ClientRectList`

* Add any casts for missing `caretRangeFromPoint`

* Add temporary any casts for `zoom` css propery

This non-standard css property no longer exists in lib.dom.d.ts

* MouseWheelEvent -> WheelEvent

* Pick up new TS nightly

Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
2021-07-08 14:27:39 -07:00
Martin Aeschlimann 7ebe6a6054
adopt web extensions to webpack 5 2021-07-08 21:41:03 +02:00
João Moreno a28d028d2d
Enable automated smoketests on Windows (#128224) 2021-07-08 19:10:25 +02:00
Johannes Rieken a3e07245ee
Revert "Revert "Merge pull request #127874 from microsoft/joh/webpack5""
This reverts commit c5f12c7226.
2021-07-08 10:28:33 +02:00
Connor Peet 6cc4e560f7
testing: remove unused testing-editor-contributions
Fixes #127691
2021-07-07 15:38:27 -07:00
Matt Bierner f0ac3ce6fa
Remove webview publish build stage
We now pull in the webview html/js from our a different cdn instead of from this endpoint. We will keep the endpoint around for older VS Code builds but no longer publish content to it
2021-07-07 09:35:25 -07:00
Benjamin Pasero d0df79be50
webview - remove more traces (#128128)
* webview - remove more traces

* more removal
2021-07-07 18:28:53 +02:00
Johannes Rieken c5f12c7226
Revert "Merge pull request #127874 from microsoft/joh/webpack5"
This reverts commit 1f5b688e9c, reversing
changes made to 6efcb92e34.
2021-07-07 18:04:11 +02:00
Matt Bierner 2222f3cc1d
Switch entirely to iframe based webviews on desktop
Fixes #83188
Part of #92164

Removes our usage of the electron `<webview>` tag
2021-07-06 12:40:51 -07:00
João Moreno 7c1e41b091
introduce git-blame-ignore 2021-07-06 20:30:21 +02:00
Johannes Rieken 81e4075936
maxModules has been removed 2021-07-02 17:40:24 +02:00
Johannes Rieken 6b5129650b
adopt webpack stream changes 2021-07-02 16:34:51 +02:00
Johannes Rieken aacda89007
remove extensionHostWorkerMain and use workerMain bootstrapping, https://github.com/microsoft/vscode/issues/127760 2021-07-02 16:04:55 +02:00
Tyler James Leonhardt 0199aa4af2 always publish arifacts_prcessed artifact fixes https://github.com/microsoft/vscode-internalbacklog/issues/2250 2021-07-01 10:38:12 -07:00
Johannes Rieken 0e9f3aa50a
update nodejs requirement, https://github.com/microsoft/vscode/issues/121144 2021-06-25 16:32:33 +02:00
Johannes Rieken 413b9019a6
configure esbuild with esnext. means no harm since TS already compiles with lower es2020, https://github.com/microsoft/vscode/issues/121144 2021-06-25 16:31:44 +02:00
João Moreno 820300ce2b
hmmm 2021-06-24 18:01:35 +02:00
João Moreno aa6e7ffdf4
snap: create it even when stepping on it
related to #127039
2021-06-24 16:53:44 +02:00
João Moreno b9c18d0404
gotcha 2021-06-24 16:09:17 +02:00
João Moreno d1be29f1ab
hmm 2021-06-24 15:47:54 +02:00
João Moreno ce659a738f
fix #127039 2021-06-24 15:31:15 +02:00
João Moreno 6fed85aaf9
pull.rebase merges 2021-06-22 19:55:13 +02:00
Robo 92999c339e
fix: setuid helper permission (#126798)
* ci: fix setuid helper binary permission

* ci: allow privilege for CLONE_NEWPID | CLONE_NEWNET

* ci: fix chrome-sandbox permission with rpm

* ci: fix permissions on snap

* ci: download electron earlier for arm builds
2021-06-22 08:42:30 -07:00
Sandeep Somavarapu c80fba9f9a
clean up 2021-06-22 16:58:33 +02:00
João Moreno 78946a0204
inline variables 2021-06-21 11:22:33 +02:00
Dirk Bäumer 04c80c94e0
Merge pull request #126462 from microsoft/dbaeumer/126408
Support changes in vscode-nls-dev that allow hint comments in package.nls.json
2021-06-21 10:49:50 +02:00
João Moreno c8a4d6b395
Merge branch 'joao/1es-pool' 2021-06-18 12:49:06 +02:00
rebornix e0e5d6fc6c Merge branch 'notebook/dev' into main 2021-06-17 13:11:46 -07:00
Peng Lyu 1ce078638d
Merge pull request #126616 from microsoft/interactive/editor
Interactive editor
2021-06-17 13:11:01 -07:00
João Moreno bd74b02b59
move compile step to another pool 2021-06-17 16:10:19 +02:00
João Moreno d9126ea356
build: scope logs to job attempt 2021-06-17 14:34:00 +02:00
João Moreno b5b92e130d
akv: use filter 2021-06-17 10:01:58 +02:00
Dirk Baeumer 9c3a109adf
Fixes #126408: Support changes in vscode-nls-dev that allow hint comments in package.nls.json 2021-06-16 11:53:10 +02:00
rebornix 0cfaaa7dad
Slim notebook contributions for interactive window 2021-06-15 22:40:04 -07:00
rebornix 16cc6ded6d
Merge branch 'notebook/dev' into main 2021-06-15 13:55:10 -07:00
João Moreno 8583bf9d9f
use correct GITHUB_TOKEN value 2021-06-15 16:14:57 +02:00
João Moreno e22ee0920a
Revert "switch to generic pool"
This reverts commit 6495c052ab.
2021-06-15 15:29:36 +02:00
Benjamin Pasero 2d83afe542
build - only publish log files when tests run 2021-06-15 15:06:23 +02:00
João Moreno e9fc1ccf8a
switch to generic pool 2021-06-15 15:06:22 +02:00
Benjamin Pasero acc2a805ec
Produce logs during test runs (integration, smoke) and publish as artefacts (#126065)
* first cut upload log files from integration test runs

* always publish log files

* move logs into integration-tests folder

* also produce logs for smoke tests

* store remote log files

* wire in logspath arg properly

* always publish logs

* enable logs for browser based smoke tests

* log only in verbose
2021-06-15 15:06:19 +02:00
Benjamin Pasero b499ce8d76
build - only publish log files when tests run 2021-06-15 12:03:44 +02:00
João Moreno 6495c052ab
switch to generic pool 2021-06-15 10:50:33 +02:00
Benjamin Pasero 2ddc1e4fc5
Produce logs during test runs (integration, smoke) and publish as artefacts (#126065)
* first cut upload log files from integration test runs

* always publish log files

* move logs into integration-tests folder

* also produce logs for smoke tests

* store remote log files

* wire in logspath arg properly

* always publish logs

* enable logs for browser based smoke tests

* log only in verbose
2021-06-15 08:33:26 +02:00
João Moreno 8440af2409
share test compilation output across agents 2021-06-14 16:28:33 +02:00
Connor Peet 4355270543
fix: use inline sourcemaps in watch task 2021-06-11 14:20:48 -07:00
João Moreno 85a36ae074 enable smoketest on linux 2021-06-11 12:19:17 +02:00
Alexandru Dima a573bc0b8d
Merge remote-tracking branch 'origin/main' into alex/update-playwright 2021-06-09 15:56:09 +02:00
dependabot[bot] 48bcb4a831
Bump glob-parent from 5.1.1 to 5.1.2 in /build/lib/watch (#125832)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-09 04:38:40 -07:00
dependabot[bot] 1c80951eca
Bump normalize-url from 4.5.0 to 4.5.1 in /build (#125829)
Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/sindresorhus/normalize-url/releases)
- [Commits](https://github.com/sindresorhus/normalize-url/commits)

---
updated-dependencies:
- dependency-name: normalize-url
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-09 04:38:09 -07:00
Tyler Leonhardt ec9aa7c0d2
add newline 2021-06-08 15:50:42 -07:00
Matt Bierner 97b5db8dba
'vs code' -> 'the editor' in d.ts
Fixes #124361

Also adds a lint rule for this
2021-06-08 11:35:42 -07:00
Matt Bierner 0a57fd87b1
Enable math in markdown preview
Fixes #124783
2021-06-08 09:58:54 -07:00
Matt Bierner 34f0fcaf52
Rename notebook-markdown-extension to markdown-math
This makes it more clear what this extension is contributing
2021-06-08 09:58:54 -07:00
Tyler Leonhardt 388b2cbd82
allow a 3rd character for first part of language id 2021-06-08 09:48:23 -07:00
Alex Dima f63a769606
Adopt latest installBrowsersWithProgressBar 2021-06-08 17:20:58 +02:00
Matt Bierner 298668ec72
Fix build build 2021-06-07 15:36:24 -07:00
Matt Bierner 0ec29f0fcf
Pick up TS 4.4@next for building
- Disables the two new strictness options for now
- Adopt shared tsconfig for `microsoft-authentication `
2021-06-07 14:44:24 -07:00
Logan Ramos ba3b75bafa
Bump ES build to latest version 2021-06-07 09:51:49 -04:00
Benjamin Pasero e3d03109a3
Revert ESBuild updates and fix #125518 (#125574)
* avoid strictNull bypass (fix #125518)

* Revert "Update lock file"

This reverts commit f843c51bca.

* Revert "Bump es build"

This reverts commit 8d87a66427.
2021-06-07 09:49:08 -04:00
Logan Ramos f843c51bca
Update lock file 2021-06-04 12:41:38 -04:00
Logan Ramos 8d87a66427
Bump es build 2021-06-04 11:03:14 -04:00
Tyler Leonhardt 5d58be3308
switch to a switch for localization edge cases 2021-06-03 17:58:20 -07:00