Commit Graph

41 Commits

Author SHA1 Message Date
Sandeep Somavarapu
337f8e4ee2
adopt building extensions (#207731)
* adopt building extensions
- remove the dependency on extensions folder

* fix build

* rename

* minimise changes

* clean up

* use regex
2024-03-15 15:06:28 +01:00
Connor Peet
c2a6932e9e
eng: onboard to the extension test runner (#195570)
* eng: onboard to the extension test runner

Adds a `.vscode-test.js` file that uses the new extension test CLI to
run tests. Also, onboards the markdown-language-features as the first
built-in extension to use it.

With the `ms-vscode.extension-test-runner` extension installed, the
markdown-language-features' tests can be run and debugged easily in
the UI :)

* fixup
2023-10-13 13:11:05 -07:00
Connor Peet
6a847ba6d1
eng: add support for snapshot tests (#190444)
* eng: add support for snapshot tests

This adds Jest-like support for snapshot testing.
Developers can do something like:

```js
await assertSnapshot(myComplexObject)
```

The first time this is run, the snapshot expectation file is written
to a `__snapshots__` directory beside the test file. Subsequent runs
will compare the object to the snapshot, and fail if it doesn't match.

You can see an example of this in the test for snapshots themselves!

After a successful run, any unused snapshots are cleaned up. On a failed
run, a gitignored `.actual` snapshot file is created beside the
snapshot for easy processing and inspection.

Shortly I will do some integration with the selfhost test extension to
allow developers to easily update snapshots from the vscode UI.

For #189680

cc @ulugbekna @hediet

* fix async stacktraces getting clobbered

* random fixes

* comment out leak detector, for now

* add option to snapshot file extension
2023-08-15 12:03:51 -07:00
Connor Peet
2138622b04
build: add watch/compile tasks for CLI (#182344)
* build: add watch/compile tasks for CLI

I spent time this morning working on the 'developer experience' of the
CLI in vscode, mainly getting the CLI to cross-compile chasing our
initial idea of having it auto-build in a devcontainer.

After some effort and disabling tunnels connections (to avoid having to
pull in OpenSSL which is a huge pain to cross compile), I was able to
get it to cross-compile from Linux to Windows, using the mingw linker.
I could probably figure out how to get macOS working as well with more
effort. However, I'm not a big fan of this, effectively it's one more
'platform' of build we need to support and test.

I think a better approach is downloading the latest compiled CLI from
the update server instead, as needed. That's what this PR does. It just
places the CLI where it _would_ normally get compiled to by cargo; so
far we don't need to do anything special outside of that.
A notice is shown to users if this fallback happens.

* update from review
2023-06-20 14:34:11 -07:00
Sandeep Somavarapu
4370b66e75
address feedback 2023-04-05 18:05:02 +02:00
Sandeep Somavarapu
622e9d054b
empty overrides 2023-04-05 16:36:42 +02:00
Sandeep Somavarapu
d8fccd8a92
introduce product.overrides.json 2023-04-05 16:32:01 +02:00
Connor Peet
a9e38fe925
ignore rust code when doing hygenie check 2022-09-20 08:49:29 -07:00
Alex Dima
822f995357
Add server folder 2021-10-20 18:42:13 +02:00
Connor Peet
126218be87
main: add a lockfile, and set the user data dir while debugging
See https://github.com/microsoft/vscode/issues/127861#issuecomment-877417451
2021-07-09 12:56:02 -07:00
Matt Bierner
5c0c637a04 Make sure we ignore compiled media files 2021-03-19 12:12:59 -07:00
Matt Bierner
fc8d7681c4 Make sure katex styles are shipped under root of
Also copies of just the katex css we need instead of bundling the entire module
2021-03-16 17:43:52 -07:00
Rob Lourens
45f79f8573 Scope gitignore out* pattern
microsoft/vscode#113823
2021-01-05 10:23:42 -08:00
João Moreno
174bfe9b52
simplify gitignore 2021-01-05 11:02:08 +01:00
Dirk Baeumer
21d010d6c7 Exclude LSIF files from Git 2020-09-16 13:50:44 +02:00
Alex Dima
7007770868
Small tweaks 2020-07-27 08:58:38 +02:00
Peng Lyu
d9fb87d002 CI for Monaco Editor compile and bundling. 2019-11-12 15:55:21 -08:00
Benjamin Pasero
1648e1dcf8 web - add build 2019-07-14 13:12:54 +02:00
Joao Moreno
74c3542204 gitignore 2019-06-28 16:18:10 +02:00
Martin Aeschlimann
259be0a485 fix gitignore, avoid trailing slashes 2019-06-07 10:31:52 +02:00
Sandeep Somavarapu
ba118c0781 add ignore entries for links 2019-06-07 10:15:33 +02:00
Martin Aeschlimann
0343212afd fix duplicate gitignore entries 2019-06-07 09:15:42 +02:00
Sandeep Somavarapu
9cc5310811 add links to git ignore 2019-06-06 17:33:59 +02:00
Martin Aeschlimann
ba0a03fe07 fix git ignore 2019-06-06 12:03:19 +02:00
Martin Aeschlimann
064063f81a ignore server bits 2019-06-06 12:00:29 +02:00
Alex Dima
24d42757e9 Layering rules 2019-05-22 13:03:27 +02:00
Andre Weinand
1ae3ff70c2 add .cache to .gitignore 2019-05-22 11:00:21 +02:00
Johannes Rieken
776e491ba4 bundle into dist folder, copy ask-pass shell scripts into dist, some 💄 2018-08-09 15:31:31 +02:00
Alex Dima
d8e13dc717 Add a compile-editor-build task 2018-07-20 11:26:31 +02:00
Alex Dima
03103a4f66 Add extract-editor-src with treeshaking task 2018-07-20 11:26:31 +02:00
Joao Moreno
4eceb88ebf wip: build show integration tests 2018-06-11 22:05:12 +02:00
Alex Dima
66091601a5 Ship editor in ESM format 2018-03-15 14:44:15 +01:00
Joao Moreno
12ab70d329 fix line endings 2018-03-05 12:47:11 +01:00
David Valachovic
4194b50082 added yarn-error.log to .gitignore 2017-11-19 13:19:41 -06:00
Joao
e869216535 ignore top level test_data 2017-09-04 16:11:19 +02:00
Noj Vek
db9a0c5e4e Travis builds post coverage info to coveralls.io and add README badge. 2016-07-26 08:28:07 -07:00
Alex Dima
7ec0f25030 Improve editor-distro gulp task 2016-05-31 16:31:35 +02:00
Joao Moreno
9433f3f98f build deb in .build/linux 2016-02-12 11:07:18 +01:00
Daniel Imms
fe3988c9a2 Add gulp tasks to build deb packages
Build, install and run:
gulp vscode-linux-packages
sudo dpkg -i out-linux/vscode-amd64.deb
code .

Installing the package does the following:
- Puts VSCode dir at /usr/share/code
- Puts code.sh launcher in /usr/bin
- Defines a .desktop file to properly integrate with the launcher

Fixes #2679
2016-02-11 14:20:34 -08:00
Joao Moreno
e22834e316 place electron in .build/electron
related to #22
2015-11-26 09:03:36 +01:00
Erich Gamma
8f35cc4768 Hello Code 2015-11-13 14:39:38 +01:00