Merge commit 'be3e8236086165e5e45a5a10783823874b3f3ebd' as 'lib/vscode'
This commit is contained in:
commit
41bee49d07
100
lib/vscode/.devcontainer/README.md
Normal file
100
lib/vscode/.devcontainer/README.md
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
# Code - OSS Development Container
|
||||||
|
|
||||||
|
This repository includes configuration for a development container for working with Code - OSS in an isolated local container or using [GitHub Codespaces](https://github.com/features/codespaces).
|
||||||
|
|
||||||
|
> **Tip:** The default VNC password is `vscode`. The VNC server runs on port `5901` with a web client at `6080`. For better performance, we recommend using a [VNC Viewer](https://www.realvnc.com/en/connect/download/viewer/). Applications like the macOS Screen Sharing app will not perform as well.
|
||||||
|
|
||||||
|
## Quick start - local
|
||||||
|
|
||||||
|
1. Install Docker Desktop or Docker for Linux on your local machine. (See [docs](https://aka.ms/vscode-remote/containers/getting-started) for additional details.)
|
||||||
|
|
||||||
|
2. **Important**: Docker needs at least **4 Cores and 6 GB of RAM (8 GB recommended)** to run full build. If you on macOS, or using the old Hyper-V engine for Windows, update these values for Docker Desktop by right-clicking on the Docker status bar item, going to **Preferences/Settings > Resources > Advanced**.
|
||||||
|
|
||||||
|
> **Note:** The [Resource Monitor](https://marketplace.visualstudio.com/items?itemName=mutantdino.resourcemonitor) extension is included in the container so you can keep an eye on CPU/Memory in the status bar.
|
||||||
|
|
||||||
|
3. Install [Visual Studio Code Stable](https://code.visualstudio.com/) or [Insiders](https://code.visualstudio.com/insiders/) and the [Remote - Containers](https://aka.ms/vscode-remote/download/containers) extension.
|
||||||
|
|
||||||
|
![Image of Remote - Containers extension](https://microsoft.github.io/vscode-remote-release/images/remote-containers-extn.png)
|
||||||
|
|
||||||
|
> Note that the Remote - Containers extension requires the Visual Studio Code distribution of Code - OSS. See the [FAQ](https://aka.ms/vscode-remote/faq/license) for details.
|
||||||
|
|
||||||
|
4. Press <kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> and select **Remote-Containers: Clone Repository in Container Volume...**.
|
||||||
|
|
||||||
|
> **Tip:** While you can use your local source tree instead, operations like `yarn install` can be slow on macOS or using the Hyper-V engine on Windows. We recommend the "clone repository in container" approach instead since it uses "named volume" rather than the local filesystem.
|
||||||
|
|
||||||
|
5. Type `https://github.com/microsoft/vscode` (or a branch or PR URL) in the input box and press <kbd>Enter</kbd>.
|
||||||
|
|
||||||
|
6. After the container is running, open a web browser and go to [http://localhost:6080](http://localhost:6080) or use a [VNC Viewer](https://www.realvnc.com/en/connect/download/viewer/) to connect to `localhost:5901` and enter `vscode` as the password.
|
||||||
|
|
||||||
|
Anything you start in VS Code or the integrated terminal will appear here.
|
||||||
|
|
||||||
|
Next: **[Try it out!](#try-it)**
|
||||||
|
|
||||||
|
## Quick start - GitHub Codespaces
|
||||||
|
|
||||||
|
> **IMPORTANT:** The current free user beta for GitHub Codespaces uses a "Basic" sized codespace which does not have enough RAM to run a full build of VS Code and will be considerably slower during codespace start and running VS Code. You'll soon be able to use a "Standard" sized codespace (4-core, 8GB) that will be better suited for this purpose (along with even larger sizes should you need it).
|
||||||
|
|
||||||
|
1. From the [microsoft/vscode GitHub repository](https://github.com/microsoft/vscode), click on the **Code** dropdown, select **Open with Codespaces**, and the **New codespace**
|
||||||
|
|
||||||
|
> Note that you will not see these options if you are not in the beta yet.
|
||||||
|
|
||||||
|
2. After the codespace is up and running in your browser, press <kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> and select **View: Show Remote Explorer**.
|
||||||
|
|
||||||
|
3. You should see port `6080` under **Forwarded Ports**. Select the line and click on the globe icon to open it in a browser tab.
|
||||||
|
|
||||||
|
> If you do not see port `6080`, press <kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>, select **Forward a Port** and enter port `6080`.
|
||||||
|
|
||||||
|
4. In the new tab, you should see noVNC. Click **Connect** and enter `vscode` as the password.
|
||||||
|
|
||||||
|
Anything you start in VS Code or the integrated terminal will appear here.
|
||||||
|
|
||||||
|
Next: **[Try it out!](#try-it)**
|
||||||
|
|
||||||
|
### Using VS Code with GitHub Codespaces
|
||||||
|
|
||||||
|
You will likely see better performance when accessing the codespace you created from VS Code since you can use a[VNC Viewer](https://www.realvnc.com/en/connect/download/viewer/). Here's how to do it.
|
||||||
|
|
||||||
|
1. [Create a codespace](#quick-start---github-codespaces) if you have not already.
|
||||||
|
|
||||||
|
2. Set up [VS Code for use with GitHub Codespaces](https://docs.github.com/github/developing-online-with-codespaces/using-codespaces-in-visual-studio-code)
|
||||||
|
|
||||||
|
3. After the VS Code is up and running, press <kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>, choose **Codespaces: Connect to Codespace**, and select the codespace you created.
|
||||||
|
|
||||||
|
4. After you've connected to the codespace, use a [VNC Viewer](https://www.realvnc.com/en/connect/download/viewer/) to connect to `localhost:5901` and enter `vscode` as the password.
|
||||||
|
|
||||||
|
5. Anything you start in VS Code or the integrated terminal will appear here.
|
||||||
|
|
||||||
|
Next: **[Try it out!](#try-it)**
|
||||||
|
|
||||||
|
## Try it!
|
||||||
|
|
||||||
|
This container uses the [Fluxbox](http://fluxbox.org/) window manager to keep things lean. **Right-click on the desktop** to see menu options. It works with GNOME and GTK applications, so other tools can be installed if needed.
|
||||||
|
|
||||||
|
Note you can also set the resolution from the command line by typing `set-resolution`.
|
||||||
|
|
||||||
|
To start working with Code - OSS, follow these steps:
|
||||||
|
|
||||||
|
1. In your local VS Code, open a terminal (<kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>\`</kbd>) and type the following commands:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yarn install
|
||||||
|
bash scripts/code.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that a previous run of `yarn install` will already be cached, so this step should simply pick up any recent differences.
|
||||||
|
|
||||||
|
2. After the build is complete, open a web browser or a [VNC Viewer](https://www.realvnc.com/en/connect/download/viewer/) to the desktop environnement as described in the quick start and enter `vscode` as the password.
|
||||||
|
|
||||||
|
3. You should now see Code - OSS!
|
||||||
|
|
||||||
|
Next, let's try debugging.
|
||||||
|
|
||||||
|
1. Shut down Code - OSS by clicking the box in the upper right corner of the Code - OSS window through your browser or VNC viewer.
|
||||||
|
|
||||||
|
2. Go to your local VS Code client, and use Run / Debug view to launch the **VS Code** configuration. (Typically the default, so you can likely just press <kbd>F5</kbd>).
|
||||||
|
|
||||||
|
> **Note:** If launching times out, you can increase the value of `timeout` in the "VS Code", "Attach Main Process", "Attach Extension Host", and "Attach to Shared Process" configurations in [launch.json](../.vscode/launch.json). However, running `scripts/code.sh` first will set up Electron which will usually solve timeout issues.
|
||||||
|
|
||||||
|
3. After a bit, Code - OSS will appear with the debugger attached!
|
||||||
|
|
||||||
|
Enjoy!
|
1
lib/vscode/.devcontainer/cache/.gitignore
vendored
Normal file
1
lib/vscode/.devcontainer/cache/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.manifest
|
15
lib/vscode/.devcontainer/cache/before-cache.sh
vendored
Executable file
15
lib/vscode/.devcontainer/cache/before-cache.sh
vendored
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This file establishes a basline for the reposuitory before any steps in the "prepare.sh"
|
||||||
|
# are run. Its just a find command that filters out a few things we don't need to watch.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
SCRIPT_PATH="$(cd "$(dirname $0)" && pwd)"
|
||||||
|
SOURCE_FOLDER="${1:-"."}"
|
||||||
|
|
||||||
|
cd "${SOURCE_FOLDER}"
|
||||||
|
echo "[$(date)] Generating ""before"" manifest..."
|
||||||
|
find -L . -not -path "*/.git/*" -and -not -path "${SCRIPT_PATH}/*.manifest" -type f > "${SCRIPT_PATH}/before.manifest"
|
||||||
|
echo "[$(date)] Done!"
|
||||||
|
|
28
lib/vscode/.devcontainer/cache/build-cache-image.sh
vendored
Executable file
28
lib/vscode/.devcontainer/cache/build-cache-image.sh
vendored
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This file simply wraps the dockeer build command used to build the image with the
|
||||||
|
# cached result of the commands from "prepare.sh" and pushes it to the specified
|
||||||
|
# container image registry.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
SCRIPT_PATH="$(cd "$(dirname $0)" && pwd)"
|
||||||
|
CONTAINER_IMAGE_REPOSITORY="$1"
|
||||||
|
BRANCH="${2:-"master"}"
|
||||||
|
|
||||||
|
if [ "${CONTAINER_IMAGE_REPOSITORY}" = "" ]; then
|
||||||
|
echo "Container repository not specified!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
TAG="branch-${BRANCH//\//-}"
|
||||||
|
echo "[$(date)] ${BRANCH} => ${TAG}"
|
||||||
|
cd "${SCRIPT_PATH}/../.."
|
||||||
|
|
||||||
|
echo "[$(date)] Starting image build..."
|
||||||
|
docker build -t ${CONTAINER_IMAGE_REPOSITORY}:"${TAG}" -f "${SCRIPT_PATH}/cache.Dockerfile" .
|
||||||
|
echo "[$(date)] Image build complete."
|
||||||
|
|
||||||
|
echo "[$(date)] Pushing image..."
|
||||||
|
docker push ${CONTAINER_IMAGE_REPOSITORY}:"${TAG}"
|
||||||
|
echo "[$(date)] Done!"
|
21
lib/vscode/.devcontainer/cache/cache-diff.sh
vendored
Executable file
21
lib/vscode/.devcontainer/cache/cache-diff.sh
vendored
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This file is used to archive off a copy of any differences in the source tree into another location
|
||||||
|
# in the image. Once the codespace is up, this will be restored into its proper location (which is
|
||||||
|
# quick and happens parallel to other startup activities)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
SCRIPT_PATH="$(cd "$(dirname $0)" && pwd)"
|
||||||
|
SOURCE_FOLDER="${1:-"."}"
|
||||||
|
CACHE_FOLDER="${2:-"/usr/local/etc/devcontainer-cache"}"
|
||||||
|
|
||||||
|
echo "[$(date)] Starting cache operation..."
|
||||||
|
cd "${SOURCE_FOLDER}"
|
||||||
|
echo "[$(date)] Determining diffs..."
|
||||||
|
find -L . -not -path "*/.git/*" -and -not -path "${SCRIPT_PATH}/*.manifest" -type f > "${SCRIPT_PATH}/after.manifest"
|
||||||
|
grep -Fxvf "${SCRIPT_PATH}/before.manifest" "${SCRIPT_PATH}/after.manifest" > "${SCRIPT_PATH}/cache.manifest"
|
||||||
|
echo "[$(date)] Archiving diffs..."
|
||||||
|
mkdir -p "${CACHE_FOLDER}"
|
||||||
|
tar -cf "${CACHE_FOLDER}/cache.tar" --totals --files-from "${SCRIPT_PATH}/cache.manifest"
|
||||||
|
echo "[$(date)] Done! $(du -h "${CACHE_FOLDER}/cache.tar")"
|
14
lib/vscode/.devcontainer/cache/cache.Dockerfile
vendored
Normal file
14
lib/vscode/.devcontainer/cache/cache.Dockerfile
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# This dockerfile is used to build up from a base image to create an image with cached results of running "prepare.sh".
|
||||||
|
# Other image contents: https://github.com/microsoft/vscode-dev-containers/blob/master/repository-containers/images/github.com/microsoft/vscode/.devcontainer/base.Dockerfile
|
||||||
|
FROM mcr.microsoft.com/vscode/devcontainers/repos/microsoft/vscode:dev
|
||||||
|
|
||||||
|
ARG USERNAME=node
|
||||||
|
COPY --chown=${USERNAME}:${USERNAME} . /repo-source-tmp/
|
||||||
|
RUN mkdir /usr/local/etc/devcontainer-cache \
|
||||||
|
&& chown ${USERNAME} /usr/local/etc/devcontainer-cache /repo-source-tmp \
|
||||||
|
&& su ${USERNAME} -c "\
|
||||||
|
cd /repo-source-tmp \
|
||||||
|
&& .devcontainer/cache/before-cache.sh \
|
||||||
|
&& .devcontainer/prepare.sh \
|
||||||
|
&& .devcontainer/cache/cache-diff.sh" \
|
||||||
|
&& rm -rf /repo-source-tmp
|
23
lib/vscode/.devcontainer/cache/restore-diff.sh
vendored
Executable file
23
lib/vscode/.devcontainer/cache/restore-diff.sh
vendored
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This file restores the results of the "prepare.sh" into their proper locations
|
||||||
|
# once the container has been created. It runs as a postCreateCommand which
|
||||||
|
# in GitHub Codespaces occurs parallel to other startup activities and does not
|
||||||
|
# really add to the overal startup time given how quick the operation ends up being.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
SOURCE_FOLDER="$(cd "${1:-"."}" && pwd)"
|
||||||
|
CACHE_FOLDER="${2:-"/usr/local/etc/devcontainer-cache"}"
|
||||||
|
|
||||||
|
if [ ! -d "${CACHE_FOLDER}" ]; then
|
||||||
|
echo "No cache folder found."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "[$(date)] Expanding $(du -h "${CACHE_FOLDER}/cache.tar") file to ${SOURCE_FOLDER}..."
|
||||||
|
cd "${SOURCE_FOLDER}"
|
||||||
|
tar -xf "${CACHE_FOLDER}/cache.tar"
|
||||||
|
rm -f "${CACHE_FOLDER}/cache.tar"
|
||||||
|
echo "[$(date)] Done!"
|
||||||
|
|
30
lib/vscode/.devcontainer/devcontainer.json
Normal file
30
lib/vscode/.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"name": "Code - OSS",
|
||||||
|
|
||||||
|
// Image contents: https://github.com/microsoft/vscode-dev-containers/blob/master/repository-containers/images/github.com/microsoft/vscode/.devcontainer/base.Dockerfile
|
||||||
|
"image": "mcr.microsoft.com/vscode/devcontainers/repos/microsoft/vscode:branch-master",
|
||||||
|
|
||||||
|
"workspaceMount": "source=${localWorkspaceFolder},target=/home/node/workspace/vscode,type=bind,consistency=cached",
|
||||||
|
"workspaceFolder": "/home/node/workspace/vscode",
|
||||||
|
"overrideCommand": false,
|
||||||
|
"runArgs": [ "--init", "--security-opt", "seccomp=unconfined"],
|
||||||
|
|
||||||
|
"settings": {
|
||||||
|
"terminal.integrated.shell.linux": "/bin/bash",
|
||||||
|
"resmon.show.battery": false,
|
||||||
|
"resmon.show.cpufreq": false
|
||||||
|
},
|
||||||
|
|
||||||
|
// noVNC, VNC, debug ports
|
||||||
|
"forwardPorts": [6080, 5901, 9222],
|
||||||
|
|
||||||
|
"extensions": [
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"mutantdino.resourcemonitor"
|
||||||
|
],
|
||||||
|
|
||||||
|
// Optionally loads a cached yarn install for the repo
|
||||||
|
"postCreateCommand": ".devcontainer/cache/restore-diff.sh",
|
||||||
|
|
||||||
|
"remoteUser": "node"
|
||||||
|
}
|
10
lib/vscode/.devcontainer/prepare.sh
Executable file
10
lib/vscode/.devcontainer/prepare.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This file contains the steps that should be run when creating the intermediary image that contains
|
||||||
|
# contents for that should be in the image by default. It will be used to build up from the base image
|
||||||
|
# to create an image that speeds up first time use of the dev container by "caching" the results
|
||||||
|
# of these commands. Developers can still run these commands without an issue once the container is
|
||||||
|
# up, but only differences will be processed which also speeds up the first time these operations occur.
|
||||||
|
|
||||||
|
yarn install
|
||||||
|
yarn electron
|
15
lib/vscode/.editorconfig
Normal file
15
lib/vscode/.editorconfig
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# EditorConfig is awesome: https://EditorConfig.org
|
||||||
|
|
||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# Tab indentation
|
||||||
|
[*]
|
||||||
|
indent_style = tab
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
# The indent size used in the `package.json` file cannot be changed
|
||||||
|
# https://github.com/npm/npm/pull/3180#issuecomment-16336516
|
||||||
|
[{*.yml,*.yaml,package.json}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
16
lib/vscode/.eslintignore
Normal file
16
lib/vscode/.eslintignore
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
**/vs/nls.build.js
|
||||||
|
**/vs/nls.js
|
||||||
|
**/vs/css.build.js
|
||||||
|
**/vs/css.js
|
||||||
|
**/vs/loader.js
|
||||||
|
**/insane/**
|
||||||
|
**/marked/**
|
||||||
|
**/semver/**
|
||||||
|
**/test/**/*.js
|
||||||
|
**/node_modules/**
|
||||||
|
**/vscode-api-tests/testWorkspace/**
|
||||||
|
**/vscode-api-tests/testWorkspace2/**
|
||||||
|
**/extensions/**/out/**
|
||||||
|
**/extensions/**/build/**
|
||||||
|
**/extensions/markdown-language-features/media/**
|
||||||
|
**/extensions/typescript-basics/test/colorize-fixtures/**
|
1009
lib/vscode/.eslintrc.json
Normal file
1009
lib/vscode/.eslintrc.json
Normal file
File diff suppressed because it is too large
Load Diff
10
lib/vscode/.gitattributes
vendored
Normal file
10
lib/vscode/.gitattributes
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
* text=auto
|
||||||
|
|
||||||
|
LICENSE.txt eol=crlf
|
||||||
|
ThirdPartyNotices.txt eol=crlf
|
||||||
|
|
||||||
|
*.bat eol=crlf
|
||||||
|
*.cmd eol=crlf
|
||||||
|
*.ps1 eol=lf
|
||||||
|
*.sh eol=lf
|
||||||
|
*.rtf -text
|
20
lib/vscode/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
20
lib/vscode/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
---
|
||||||
|
<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
|
||||||
|
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
|
||||||
|
<!-- Please search existing issues to avoid creating duplicates. -->
|
||||||
|
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->
|
||||||
|
|
||||||
|
<!-- Use Help > Report Issue to prefill these. -->
|
||||||
|
- VSCode Version:
|
||||||
|
- OS Version:
|
||||||
|
|
||||||
|
Steps to Reproduce:
|
||||||
|
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
|
||||||
|
<!-- Launch with `code --disable-extensions` to check. -->
|
||||||
|
Does this issue occur when all extensions are disabled?: Yes/No
|
5
lib/vscode/.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
5
lib/vscode/.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
|
contact_links:
|
||||||
|
- name: Question
|
||||||
|
url: https://stackoverflow.com/questions/tagged/visual-studio-code
|
||||||
|
about: Please ask and answer questions here.
|
11
lib/vscode/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
11
lib/vscode/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
name: Feature request
|
||||||
|
about: Suggest an idea for this project
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
|
||||||
|
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
|
||||||
|
<!-- Please search existing issues to avoid creating duplicates. -->
|
||||||
|
|
||||||
|
<!-- Describe the feature you'd like. -->
|
37
lib/vscode/.github/calendar.yml
vendored
Normal file
37
lib/vscode/.github/calendar.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
'2018-01-29 18:00, US/Pacific': 'endgame',
|
||||||
|
'2018-02-07 12:00, US/Pacific': 'release', # 1.20.0
|
||||||
|
'2018-02-12 12:00, US/Pacific': 'development',
|
||||||
|
'2018-02-14 16:00, Europe/Zurich': 'release', # 1.20.1
|
||||||
|
'2018-02-19 16:00, Europe/Zurich': 'development',
|
||||||
|
'2018-02-26 18:00, US/Pacific': 'endgame',
|
||||||
|
'2018-03-07 12:00, US/Pacific': 'release', # 1.21.0
|
||||||
|
'2018-03-12 12:00, US/Pacific': 'development',
|
||||||
|
'2018-03-15 12:00, US/Pacific': 'release', # 1.21.1
|
||||||
|
'2018-03-20 12:00, US/Pacific': 'development',
|
||||||
|
'2018-03-26 18:00, US/Pacific': 'endgame',
|
||||||
|
'2018-04-06 18:00, US/Pacific': 'release', # 1.22.1
|
||||||
|
'2018-04-11 18:00, US/Pacific': 'development',
|
||||||
|
'2018-04-12 12:00, US/Pacific': 'release', # 1.22.2
|
||||||
|
'2018-04-17 12:00, US/Pacific': 'development',
|
||||||
|
'2018-04-23 18:00, US/Pacific': 'endgame',
|
||||||
|
'2018-05-03 12:00, US/Pacific': 'release', # 1.23.0
|
||||||
|
'2018-05-08 12:00, US/Pacific': 'development',
|
||||||
|
'2018-05-10 12:00, US/Pacific': 'release', # 1.23.1
|
||||||
|
'2018-05-15 12:00, US/Pacific': 'development',
|
||||||
|
'2018-05-28 18:00, US/Pacific': 'endgame',
|
||||||
|
# 'release' not needed anymore, return to 'development' after releasing.
|
||||||
|
'2018-06-06 12:00, US/Pacific': 'development', # 1.24.0 released
|
||||||
|
'2018-06-25 18:00, US/Pacific': 'endgame',
|
||||||
|
'2018-07-05 12:00, US/Pacific': 'development', # 1.25.0 released
|
||||||
|
'2018-07-30 18:00, US/Pacific': 'endgame',
|
||||||
|
'2018-08-13 12:00, US/Pacific': 'development', # 1.26.0 released
|
||||||
|
'2018-08-27 18:00, US/Pacific': 'endgame',
|
||||||
|
'2018-09-05 12:00, US/Pacific': 'development', # 1.27.0 released
|
||||||
|
'2018-09-24 18:00, US/Pacific': 'endgame',
|
||||||
|
'2018-10-08 09:00, US/Pacific': 'development', # 1.28.0 released
|
||||||
|
'2018-10-29 18:00, US/Pacific': 'endgame',
|
||||||
|
'2018-11-12 11:00, US/Pacific': 'development', # 1.29.0 released
|
||||||
|
'2018-12-03 18:00, US/Pacific': 'endgame',
|
||||||
|
'2018-12-12 13:00, US/Pacific': 'development', # 1.30.0 released
|
||||||
|
}
|
182
lib/vscode/.github/classifier.json
vendored
Normal file
182
lib/vscode/.github/classifier.json
vendored
Normal file
@ -0,0 +1,182 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-github-triage-actions/master/classifier-deep/apply/apply-labels/deep-classifier-config.schema.json",
|
||||||
|
"vacation": [],
|
||||||
|
"assignees": {
|
||||||
|
"JacksonKearl": {"accuracy": 0.5}
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"L10N": {"assign": []},
|
||||||
|
"VIM": {"assign": []},
|
||||||
|
"api": {"assign": ["jrieken"]},
|
||||||
|
"api-finalization": {"assign": []},
|
||||||
|
"api-proposal": {"assign": ["jrieken"]},
|
||||||
|
"authentication": {"assign": ["RMacfarlane"]},
|
||||||
|
"breadcrumbs": {"assign": ["jrieken"]},
|
||||||
|
"callhierarchy": {"assign": ["jrieken"]},
|
||||||
|
"code-lens": {"assign": ["jrieken"]},
|
||||||
|
"color-palette": {"assign": []},
|
||||||
|
"comments": {"assign": ["rebornix"]},
|
||||||
|
"config": {"assign": ["sandy081"]},
|
||||||
|
"context-keys": {"assign": []},
|
||||||
|
"css-less-scss": {"assign": ["aeschli"]},
|
||||||
|
"custom-editors": {"assign": ["mjbvz"]},
|
||||||
|
"debug": {"assign": ["weinand"]},
|
||||||
|
"debug-console": {"assign": ["weinand"]},
|
||||||
|
"dialogs": {"assign": ["sbatten"]},
|
||||||
|
"diff-editor": {"assign": []},
|
||||||
|
"dropdown": {"assign": []},
|
||||||
|
"editor": {"assign": ["rebornix"]},
|
||||||
|
"editor-autoclosing": {"assign": []},
|
||||||
|
"editor-autoindent": {"assign": ["rebornix"]},
|
||||||
|
"editor-bracket-matching": {"assign": []},
|
||||||
|
"editor-clipboard": {"assign": ["jrieken"]},
|
||||||
|
"editor-code-actions": {"assign": []},
|
||||||
|
"editor-color-picker": {"assign": ["rebornix"]},
|
||||||
|
"editor-columnselect": {"assign": ["alexdima"]},
|
||||||
|
"editor-commands": {"assign": ["jrieken"]},
|
||||||
|
"editor-comments": {"assign": []},
|
||||||
|
"editor-contrib": {"assign": []},
|
||||||
|
"editor-core": {"assign": []},
|
||||||
|
"editor-drag-and-drop": {"assign": ["rebornix"]},
|
||||||
|
"editor-error-widget": {"assign": ["sandy081"]},
|
||||||
|
"editor-find": {"assign": ["rebornix"]},
|
||||||
|
"editor-folding": {"assign": ["aeschli"]},
|
||||||
|
"editor-hover": {"assign": []},
|
||||||
|
"editor-indent-guides": {"assign": []},
|
||||||
|
"editor-input": {"assign": ["alexdima"]},
|
||||||
|
"editor-input-IME": {"assign": ["rebornix"]},
|
||||||
|
"editor-minimap": {"assign": []},
|
||||||
|
"editor-multicursor": {"assign": ["alexdima"]},
|
||||||
|
"editor-parameter-hints": {"assign": []},
|
||||||
|
"editor-render-whitespace": {"assign": []},
|
||||||
|
"editor-rendering": {"assign": ["alexdima"]},
|
||||||
|
"editor-scrollbar": {"assign": []},
|
||||||
|
"editor-symbols": {"assign": ["jrieken"]},
|
||||||
|
"editor-synced-region": {"assign": ["aeschli"]},
|
||||||
|
"editor-textbuffer": {"assign": ["rebornix"]},
|
||||||
|
"editor-theming": {"assign": []},
|
||||||
|
"editor-wordnav": {"assign": ["alexdima"]},
|
||||||
|
"editor-wrapping": {"assign": ["alexdima"]},
|
||||||
|
"emmet": {"assign": []},
|
||||||
|
"error-list": {"assign": ["sandy081"]},
|
||||||
|
"explorer-custom": {"assign": ["sandy081"]},
|
||||||
|
"extension-host": {"assign": []},
|
||||||
|
"extensions": {"assign": ["sandy081"]},
|
||||||
|
"extensions-development": {"assign": []},
|
||||||
|
"file-decorations": {"assign": ["jrieken"]},
|
||||||
|
"file-encoding": {"assign": ["bpasero"]},
|
||||||
|
"file-explorer": {"assign": ["isidorn"]},
|
||||||
|
"file-glob": {"assign": []},
|
||||||
|
"file-guess-encoding": {"assign": ["bpasero"]},
|
||||||
|
"file-io": {"assign": ["bpasero"]},
|
||||||
|
"file-watcher": {"assign": ["bpasero"]},
|
||||||
|
"font-rendering": {"assign": []},
|
||||||
|
"formatting": {"assign": []},
|
||||||
|
"git": {"assign": ["joaomoreno"]},
|
||||||
|
"gpu": {"assign": ["deepak1556"]},
|
||||||
|
"grammar": {"assign": ["mjbvz"]},
|
||||||
|
"grid-view": {"assign": ["joaomoreno"]},
|
||||||
|
"html": {"assign": ["aeschli"]},
|
||||||
|
"i18n": {"assign": []},
|
||||||
|
"icon-brand": {"assign": []},
|
||||||
|
"icons-product": {"assign": ["misolori"]},
|
||||||
|
"install-update": {"assign": []},
|
||||||
|
"integrated-terminal": {"assign": ["Tyriar"]},
|
||||||
|
"integrated-terminal-conpty": {"assign": ["Tyriar"]},
|
||||||
|
"integrated-terminal-links": {"assign": ["Tyriar"]},
|
||||||
|
"integration-test": {"assign": []},
|
||||||
|
"intellisense-config": {"assign": []},
|
||||||
|
"ipc": {"assign": ["joaomoreno"]},
|
||||||
|
"issue-bot": {"assign": ["chrmarti"]},
|
||||||
|
"issue-reporter": {"assign": ["RMacfarlane"]},
|
||||||
|
"javascript": {"assign": ["mjbvz"]},
|
||||||
|
"json": {"assign": ["aeschli"]},
|
||||||
|
"keybindings": {"assign": []},
|
||||||
|
"keybindings-editor": {"assign": ["sandy081"]},
|
||||||
|
"keyboard-layout": {"assign": ["alexdima"]},
|
||||||
|
"languages-basic": {"assign": ["aeschli"]},
|
||||||
|
"languages-diagnostics": {"assign": ["jrieken"]},
|
||||||
|
"layout": {"assign": ["sbatten"]},
|
||||||
|
"lcd-text-rendering": {"assign": []},
|
||||||
|
"list": {"assign": ["joaomoreno"]},
|
||||||
|
"log": {"assign": []},
|
||||||
|
"markdown": {"assign": ["mjbvz"]},
|
||||||
|
"marketplace": {"assign": []},
|
||||||
|
"menus": {"assign": ["sbatten"]},
|
||||||
|
"merge-conflict": {"assign": ["chrmarti"]},
|
||||||
|
"notebook": {"assign": ["rebornix"]},
|
||||||
|
"outline": {"assign": ["jrieken"]},
|
||||||
|
"output": {"assign": []},
|
||||||
|
"perf": {"assign": []},
|
||||||
|
"perf-bloat": {"assign": []},
|
||||||
|
"perf-startup": {"assign": []},
|
||||||
|
"php": {"assign": ["roblourens"]},
|
||||||
|
"portable-mode": {"assign": ["joaomoreno"]},
|
||||||
|
"proxy": {"assign": []},
|
||||||
|
"quick-pick": {"assign": ["chrmarti"]},
|
||||||
|
"references-viewlet": {"assign": ["jrieken"]},
|
||||||
|
"release-notes": {"assign": []},
|
||||||
|
"remote": {"assign": []},
|
||||||
|
"remote-explorer": {"assign": ["alexr00"]},
|
||||||
|
"rename": {"assign": ["jrieken"]},
|
||||||
|
"scm": {"assign": ["joaomoreno"]},
|
||||||
|
"screencast-mode": {"assign": ["lszomoru"]},
|
||||||
|
"search": {"assign": ["roblourens"]},
|
||||||
|
"search-editor": {"assign": ["JacksonKearl"]},
|
||||||
|
"search-replace": {"assign": ["sandy081"]},
|
||||||
|
"semantic-tokens": {"assign": ["aeschli"]},
|
||||||
|
"settings-editor": {"assign": ["roblourens"]},
|
||||||
|
"settings-sync": {"assign": ["sandy081"]},
|
||||||
|
"simple-file-dialog": {"assign": ["alexr00"]},
|
||||||
|
"smart-select": {"assign": ["jrieken"]},
|
||||||
|
"smoke-test": {"assign": []},
|
||||||
|
"snap": {"assign": ["joaomoreno"]},
|
||||||
|
"snippets": {"assign": ["jrieken"]},
|
||||||
|
"splitview": {"assign": ["joaomoreno"]},
|
||||||
|
"suggest": {"assign": ["jrieken"]},
|
||||||
|
"tasks": {"assign": ["alexr00"], "accuracy": 0.85},
|
||||||
|
"telemetry": {"assign": []},
|
||||||
|
"themes": {"assign": ["aeschli"]},
|
||||||
|
"timeline": {"assign": ["eamodio"]},
|
||||||
|
"timeline-git": {"assign": ["eamodio"]},
|
||||||
|
"titlebar": {"assign": ["sbatten"]},
|
||||||
|
"tokenization": {"assign": []},
|
||||||
|
"tree": {"assign": ["joaomoreno"]},
|
||||||
|
"typescript": {"assign": ["mjbvz"]},
|
||||||
|
"undo-redo": {"assign": []},
|
||||||
|
"unit-test": {"assign": []},
|
||||||
|
"uri": {"assign": ["jrieken"]},
|
||||||
|
"ux": {"assign": ["misolori"]},
|
||||||
|
"variable-resolving": {"assign": []},
|
||||||
|
"vscode-build": {"assign": []},
|
||||||
|
"web": {"assign": ["bpasero"]},
|
||||||
|
"webview": {"assign": ["mjbvz"]},
|
||||||
|
"workbench-cli": {"assign": []},
|
||||||
|
"workbench-diagnostics": {"assign": ["RMacfarlane"]},
|
||||||
|
"workbench-dnd": {"assign": ["bpasero"]},
|
||||||
|
"workbench-editor-grid": {"assign": ["sbatten"]},
|
||||||
|
"workbench-editors": {"assign": ["bpasero"]},
|
||||||
|
"workbench-electron": {"assign": ["deepak1556"]},
|
||||||
|
"workbench-feedback": {"assign": ["bpasero"]},
|
||||||
|
"workbench-history": {"assign": ["bpasero"]},
|
||||||
|
"workbench-hot-exit": {"assign": ["Tyriar"]},
|
||||||
|
"workbench-launch": {"assign": []},
|
||||||
|
"workbench-link": {"assign": []},
|
||||||
|
"workbench-multiroot": {"assign": ["bpasero"]},
|
||||||
|
"workbench-notifications": {"assign": ["bpasero"]},
|
||||||
|
"workbench-os-integration": {"assign": []},
|
||||||
|
"workbench-rapid-render": {"assign": ["jrieken"]},
|
||||||
|
"workbench-run-as-admin": {"assign": []},
|
||||||
|
"workbench-state": {"assign": ["bpasero"]},
|
||||||
|
"workbench-status": {"assign": ["bpasero"]},
|
||||||
|
"workbench-tabs": {"assign": ["bpasero"]},
|
||||||
|
"workbench-touchbar": {"assign": ["bpasero"]},
|
||||||
|
"workbench-views": {"assign": ["sbatten"]},
|
||||||
|
"workbench-welcome": {"assign": ["chrmarti"]},
|
||||||
|
"workbench-window": {"assign": ["bpasero"]},
|
||||||
|
"workbench-zen": {"assign": ["isidorn"]},
|
||||||
|
"workspace-edit": {"assign": ["jrieken"]},
|
||||||
|
"workspace-symbols": {"assign": []},
|
||||||
|
"zoom": {"assign": ["alexdima"] }
|
||||||
|
}
|
||||||
|
}
|
388
lib/vscode/.github/commands.json
vendored
Normal file
388
lib/vscode/.github/commands.json
vendored
Normal file
@ -0,0 +1,388 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "question",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "updateLabels",
|
||||||
|
"addLabel": "*question"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "label",
|
||||||
|
"name": "*question",
|
||||||
|
"action": "close",
|
||||||
|
"comment": "Please ask your question on [StackOverflow](https://aka.ms/vscodestackoverflow). We have a great community over [there](https://aka.ms/vscodestackoverflow). They have already answered thousands of questions and are happy to answer yours as well. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "label",
|
||||||
|
"name": "*dev-question",
|
||||||
|
"action": "close",
|
||||||
|
"comment": "We have a great developer community [over on slack](https://aka.ms/vscode-dev-community) where extension authors help each other. This is a great place for you to ask questions and find support.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "label",
|
||||||
|
"name": "*extension-candidate",
|
||||||
|
"action": "close",
|
||||||
|
"comment": "We try to keep VS Code lean and we think the functionality you're asking for is great for a VS Code extension. Maybe you can already find one that suits you in the [VS Code Marketplace](https://aka.ms/vscodemarketplace). Just in case, in a few simple steps you can get started [writing your own extension](https://aka.ms/vscodewritingextensions). See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "label",
|
||||||
|
"name": "*not-reproducible",
|
||||||
|
"action": "close",
|
||||||
|
"comment": "We closed this issue because we are unable to reproduce the problem with the steps you describe. Chances are we've already fixed your problem in a recent version of VS Code. If not, please ask us to reopen the issue and provide us with more detail. Our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines might help you with that.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "label",
|
||||||
|
"name": "*out-of-scope",
|
||||||
|
"action": "close",
|
||||||
|
"comment": "We closed this issue because we don't plan to address it in the foreseeable future. You can find more detailed information about our decision-making process [here](https://aka.ms/vscode-out-of-scope). If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.\n\nIf you wonder what we are up to, please see our [roadmap](https://aka.ms/vscoderoadmap) and [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nThanks for your understanding and happy coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "causedByExtension",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "updateLabels",
|
||||||
|
"addLabel": "*caused-by-extension"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "label",
|
||||||
|
"name": "*caused-by-extension",
|
||||||
|
"action": "close",
|
||||||
|
"comment": "This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the [marketplace](https://aka.ms/vscodemarketplace) for VS Code. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "label",
|
||||||
|
"name": "*as-designed",
|
||||||
|
"action": "close",
|
||||||
|
"comment": "The described behavior is how it is expected to work. If you disagree, please explain what is expected and what is not in more detail. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "duplicate",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "updateLabels",
|
||||||
|
"addLabel": "*duplicate"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "label",
|
||||||
|
"name": "*duplicate",
|
||||||
|
"action": "close",
|
||||||
|
"comment": "Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues [here](https://aka.ms/vscodeissuesearch). See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "verified",
|
||||||
|
"allowUsers": [
|
||||||
|
"@author"
|
||||||
|
],
|
||||||
|
"action": "updateLabels",
|
||||||
|
"addLabel": "z-author-verified",
|
||||||
|
"removeLabel": "author-verification-requested",
|
||||||
|
"requireLabel": "author-verification-requested",
|
||||||
|
"disallowLabel": "awaiting-insiders-release"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "confirm",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "updateLabels",
|
||||||
|
"addLabel": "confirmed",
|
||||||
|
"removeLabel": "confirmation-pending"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "confirmationPending",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "updateLabels",
|
||||||
|
"addLabel": "confirmation-pending",
|
||||||
|
"removeLabel": "confirmed"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "needsMoreInfo",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "updateLabels",
|
||||||
|
"addLabel": "~needs more info"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "jsDebugLogs",
|
||||||
|
"action": "updateLabels",
|
||||||
|
"addLabel": "needs more info",
|
||||||
|
"comment": "Please collect trace logs using the following instructions:\n\n> If you're able to, add `\"trace\": true` to your `launch.json` and reproduce the issue. The location of the log file on your disk will be written to the Debug Console. Share that with us.\n>\n> ⚠️ This log file will not contain source code, but will contain file paths. You can drop it into https://microsoft.github.io/vscode-pwa-analyzer/index.html to see what it contains. If you'd rather not share the log publicly, you can email it to connor@xbox.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "closedWith",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "unreleased"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "label",
|
||||||
|
"name": "~needs more info",
|
||||||
|
"action": "updateLabels",
|
||||||
|
"addLabel": "needs more info",
|
||||||
|
"removeLabel": "~needs more info",
|
||||||
|
"comment": "Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines. Please take the time to review these and update the issue.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "label",
|
||||||
|
"name": "~needs version info",
|
||||||
|
"action": "updateLabels",
|
||||||
|
"addLabel": "needs more info",
|
||||||
|
"removeLabel": "~needs version info",
|
||||||
|
"comment": "Thanks for creating this issue! We figured it's missing some basic information, such as a version number, or in some other way doesn't follow our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines. Please take the time to review these and update the issue.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "a11ymas",
|
||||||
|
"allowUsers": [
|
||||||
|
"AccessibilityTestingTeam-TCS",
|
||||||
|
"dixitsonali95",
|
||||||
|
"Mohini78",
|
||||||
|
"ChitrarupaSharma",
|
||||||
|
"mspatil110",
|
||||||
|
"umasarath52",
|
||||||
|
"v-umnaik"
|
||||||
|
],
|
||||||
|
"action": "updateLabels",
|
||||||
|
"addLabel": "a11ymas"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "label",
|
||||||
|
"name": "*off-topic",
|
||||||
|
"action": "close",
|
||||||
|
"comment": "Thanks for creating this issue. We think this issue is unactionable or unrelated to the goals of this project. Please follow our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extPython",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the Python extension. Please file it with the repository [here](https://github.com/microsoft/vscode-python). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extC",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the C extension. Please file it with the repository [here](https://github.com/microsoft/vscode-cpptools). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extC++",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the C++ extension. Please file it with the repository [here](https://github.com/microsoft/vscode-cpptools). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extCpp",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the C++ extension. Please file it with the repository [here](https://github.com/microsoft/vscode-cpptools). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extTS",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the TypeScript language service. Please file it with the repository [here](https://github.com/microsoft/TypeScript/). Make sure to check their [contributing guidelines](https://github.com/microsoft/TypeScript/blob/master/CONTRIBUTING.md) and provide relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extJS",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the TypeScript/JavaScript language service. Please file it with the repository [here](https://github.com/microsoft/TypeScript/). Make sure to check their [contributing guidelines](https://github.com/microsoft/TypeScript/blob/master/CONTRIBUTING.md) and provide relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extC#",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the C# extension. Please file it with the repository [here](https://github.com/OmniSharp/omnisharp-vscode.git). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extGo",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the Go extension. Please file it with the repository [here](https://github.com/golang/vscode-go). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extPowershell",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the PowerShell extension. Please file it with the repository [here](https://github.com/PowerShell/vscode-powershell). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extLiveShare",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the LiveShare extension. Please file it with the repository [here](https://github.com/MicrosoftDocs/live-share). Make sure to check their [contributing guidelines](https://github.com/MicrosoftDocs/live-share/blob/master/CONTRIBUTING.md) and provide relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extDocker",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the Docker extension. Please file it with the repository [here](https://github.com/microsoft/vscode-docker). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extJava",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the Java extension. Please file it with the repository [here](https://github.com/redhat-developer/vscode-java). Make sure to check their [troubleshooting instructions](https://github.com/redhat-developer/vscode-java/wiki/Troubleshooting) and provide relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "extJavaDebug",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "close",
|
||||||
|
"addLabel": "*caused-by-extension",
|
||||||
|
"comment": "It looks like this is caused by the Java Debugger extension. Please file it with the repository [here](https://github.com/microsoft/vscode-java-debug). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines for more information.\n\nHappy Coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "gifPlease",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
],
|
||||||
|
"action": "comment",
|
||||||
|
"comment": "Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, `.gif` files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.\n\nIf the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (`Developer: Toggle Screencast Mode` in the command palette).\n\nHappy coding!"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "label",
|
||||||
|
"allowUsers": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "comment",
|
||||||
|
"name": "assign",
|
||||||
|
"allowUsers": [
|
||||||
|
"cleidigh",
|
||||||
|
"usernamehw",
|
||||||
|
"gjsjohnmurray",
|
||||||
|
"IllusionMH"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
12
lib/vscode/.github/commands.yml
vendored
Normal file
12
lib/vscode/.github/commands.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
perform: true,
|
||||||
|
commands: [
|
||||||
|
{
|
||||||
|
type: 'comment',
|
||||||
|
name: 'findDuplicates',
|
||||||
|
allowUsers: ['cleidigh', 'usernamehw', 'gjsjohnmurray', 'IllusionMH'],
|
||||||
|
action: 'comment',
|
||||||
|
comment: "Potential duplicates:\n${potentialDuplicates}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
6
lib/vscode/.github/endgame/insiders.yml
vendored
Normal file
6
lib/vscode/.github/endgame/insiders.yml
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
insidersLabel: 'insiders',
|
||||||
|
insidersColor: '006b75',
|
||||||
|
action: 'add',
|
||||||
|
perform: true
|
||||||
|
}
|
6
lib/vscode/.github/insiders.yml
vendored
Normal file
6
lib/vscode/.github/insiders.yml
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
insidersLabel: 'insiders',
|
||||||
|
insidersColor: '006b75',
|
||||||
|
action: 'remove',
|
||||||
|
perform: true
|
||||||
|
}
|
9
lib/vscode/.github/pull_request_template.md
vendored
Normal file
9
lib/vscode/.github/pull_request_template.md
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<!-- Thank you for submitting a Pull Request. Please:
|
||||||
|
* Read our Pull Request guidelines:
|
||||||
|
https://github.com/microsoft/vscode/wiki/How-to-Contribute#pull-requests.
|
||||||
|
* Associate an issue with the Pull Request.
|
||||||
|
* Ensure that the code is up-to-date with the `master` branch.
|
||||||
|
* Include a description of the proposed changes and how to test them.
|
||||||
|
-->
|
||||||
|
|
||||||
|
This PR fixes #
|
5
lib/vscode/.github/similarity.yml
vendored
Normal file
5
lib/vscode/.github/similarity.yml
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
perform: true,
|
||||||
|
whenCreatedByTeam: false,
|
||||||
|
comment: "(Experimental duplicate detection)\nThanks for submitting this issue. Please also check if it is already covered by an existing one, like:\n${potentialDuplicates}"
|
||||||
|
}
|
9
lib/vscode/.github/subscribers.json
vendored
Normal file
9
lib/vscode/.github/subscribers.json
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"notebook": [
|
||||||
|
"claudiaregio",
|
||||||
|
"rchiodo",
|
||||||
|
"greazer",
|
||||||
|
"donjayamanne",
|
||||||
|
"jilljac"
|
||||||
|
]
|
||||||
|
}
|
40
lib/vscode/.github/workflows/author-verified.yml
vendored
Normal file
40
lib/vscode/.github/workflows/author-verified.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: Author Verified
|
||||||
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
types: [trigger-author-verified]
|
||||||
|
schedule:
|
||||||
|
- cron: 20 14 * * * # 4:20pm Zurich
|
||||||
|
issues:
|
||||||
|
types: [closed]
|
||||||
|
|
||||||
|
# also make changes in ./on-label.yml
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'author-verification-requested')
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
ref: v37
|
||||||
|
path: ./actions
|
||||||
|
- name: Install Actions
|
||||||
|
if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'author-verification-requested')
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: Checkout Repo
|
||||||
|
if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'author-verification-requested')
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ./repo
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Run Author Verified
|
||||||
|
if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'author-verification-requested')
|
||||||
|
uses: ./actions/author-verified
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
requestVerificationComment: "This bug has been fixed in to the latest release of [VS Code Insiders](https://code.visualstudio.com/insiders/)!\n\n@${author}, you can help us out by commenting `/verified` if things are now working as expected.\n\nIf things still don't seem right, please ensure you're on version ${commit} of Insiders (today's or later - you can use `Help: About` in the command pallette to check), and leave a comment letting us know what isn't working as expected.\n\nHappy Coding!"
|
||||||
|
pendingReleaseLabel: awaiting-insiders-release
|
||||||
|
verifiedLabel: verified
|
||||||
|
authorVerificationRequestedLabel: author-verification-requested
|
144
lib/vscode/.github/workflows/ci.yml
vendored
Normal file
144
lib/vscode/.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,144 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- release/*
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- release/*
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# linux:
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
# env:
|
||||||
|
# CHILD_CONCURRENCY: "1"
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/checkout@v1
|
||||||
|
# # TODO: rename azure-pipelines/linux/xvfb.init to github-actions
|
||||||
|
# - run: |
|
||||||
|
# sudo apt-get update
|
||||||
|
# sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
|
||||||
|
# sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
|
||||||
|
# sudo chmod +x /etc/init.d/xvfb
|
||||||
|
# sudo update-rc.d xvfb defaults
|
||||||
|
# sudo service xvfb start
|
||||||
|
# name: Setup Build Environment
|
||||||
|
# - uses: actions/setup-node@v1
|
||||||
|
# with:
|
||||||
|
# node-version: 10
|
||||||
|
# # TODO: cache node modules
|
||||||
|
# - run: yarn --frozen-lockfile
|
||||||
|
# name: Install Dependencies
|
||||||
|
# - run: yarn electron x64
|
||||||
|
# name: Download Electron
|
||||||
|
# - run: yarn gulp hygiene
|
||||||
|
# name: Run Hygiene Checks
|
||||||
|
# - run: yarn monaco-compile-check
|
||||||
|
# name: Run Monaco Editor Checks
|
||||||
|
# - run: yarn valid-layers-check
|
||||||
|
# name: Run Valid Layers Checks
|
||||||
|
# - run: yarn compile
|
||||||
|
# name: Compile Sources
|
||||||
|
# - run: yarn download-builtin-extensions
|
||||||
|
# name: Download Built-in Extensions
|
||||||
|
# - run: DISPLAY=:10 ./scripts/test.sh --tfs "Unit Tests"
|
||||||
|
# name: Run Unit Tests (Electron)
|
||||||
|
# - run: DISPLAY=:10 yarn test-browser --browser chromium
|
||||||
|
# name: Run Unit Tests (Browser)
|
||||||
|
# - run: DISPLAY=:10 ./scripts/test-integration.sh --tfs "Integration Tests"
|
||||||
|
# name: Run Integration Tests (Electron)
|
||||||
|
|
||||||
|
# windows:
|
||||||
|
# runs-on: windows-2016
|
||||||
|
# env:
|
||||||
|
# CHILD_CONCURRENCY: "1"
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/checkout@v1
|
||||||
|
# - uses: actions/setup-node@v1
|
||||||
|
# with:
|
||||||
|
# node-version: 10
|
||||||
|
# - uses: actions/setup-python@v1
|
||||||
|
# with:
|
||||||
|
# python-version: '2.x'
|
||||||
|
# - run: yarn --frozen-lockfile
|
||||||
|
# name: Install Dependencies
|
||||||
|
# - run: yarn electron
|
||||||
|
# name: Download Electron
|
||||||
|
# - run: yarn gulp hygiene
|
||||||
|
# name: Run Hygiene Checks
|
||||||
|
# - run: yarn monaco-compile-check
|
||||||
|
# name: Run Monaco Editor Checks
|
||||||
|
# - run: yarn valid-layers-check
|
||||||
|
# name: Run Valid Layers Checks
|
||||||
|
# - run: yarn compile
|
||||||
|
# name: Compile Sources
|
||||||
|
# - run: yarn download-builtin-extensions
|
||||||
|
# name: Download Built-in Extensions
|
||||||
|
# - run: .\scripts\test.bat --tfs "Unit Tests"
|
||||||
|
# name: Run Unit Tests (Electron)
|
||||||
|
# - run: yarn test-browser --browser chromium
|
||||||
|
# name: Run Unit Tests (Browser)
|
||||||
|
# - run: .\scripts\test-integration.bat --tfs "Integration Tests"
|
||||||
|
# name: Run Integration Tests (Electron)
|
||||||
|
|
||||||
|
# darwin:
|
||||||
|
# runs-on: macos-latest
|
||||||
|
# env:
|
||||||
|
# CHILD_CONCURRENCY: "1"
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/checkout@v1
|
||||||
|
# - uses: actions/setup-node@v1
|
||||||
|
# with:
|
||||||
|
# node-version: 10
|
||||||
|
# - run: yarn --frozen-lockfile
|
||||||
|
# name: Install Dependencies
|
||||||
|
# - run: yarn electron x64
|
||||||
|
# name: Download Electron
|
||||||
|
# - run: yarn gulp hygiene
|
||||||
|
# name: Run Hygiene Checks
|
||||||
|
# - run: yarn monaco-compile-check
|
||||||
|
# name: Run Monaco Editor Checks
|
||||||
|
# - run: yarn valid-layers-check
|
||||||
|
# name: Run Valid Layers Checks
|
||||||
|
# - run: yarn compile
|
||||||
|
# name: Compile Sources
|
||||||
|
# - run: yarn download-builtin-extensions
|
||||||
|
# name: Download Built-in Extensions
|
||||||
|
# - run: ./scripts/test.sh --tfs "Unit Tests"
|
||||||
|
# name: Run Unit Tests (Electron)
|
||||||
|
# - run: yarn test-browser --browser chromium --browser webkit
|
||||||
|
# name: Run Unit Tests (Browser)
|
||||||
|
# - run: ./scripts/test-integration.sh --tfs "Integration Tests"
|
||||||
|
# name: Run Integration Tests (Electron)
|
||||||
|
|
||||||
|
monaco:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
CHILD_CONCURRENCY: "1"
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
# TODO: rename azure-pipelines/linux/xvfb.init to github-actions
|
||||||
|
- run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
|
||||||
|
sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
|
||||||
|
sudo chmod +x /etc/init.d/xvfb
|
||||||
|
sudo update-rc.d xvfb defaults
|
||||||
|
sudo service xvfb start
|
||||||
|
name: Setup Build Environment
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 10
|
||||||
|
- run: yarn --frozen-lockfile
|
||||||
|
name: Install Dependencies
|
||||||
|
- run: yarn monaco-compile-check
|
||||||
|
name: Run Monaco Editor Checks
|
||||||
|
- run: yarn gulp editor-esm-bundle
|
||||||
|
name: Editor Distro & ESM Bundle
|
49
lib/vscode/.github/workflows/codeql.yml
vendored
Normal file
49
lib/vscode/.github/workflows/codeql.yml
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
name: "Code Scanning"
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * 2'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
CodeQL-Build:
|
||||||
|
|
||||||
|
# CodeQL runs on ubuntu-latest and windows-latest
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
# We must fetch at least the immediate parents so that if this is
|
||||||
|
# a pull request then we can checkout the head.
|
||||||
|
fetch-depth: 2
|
||||||
|
|
||||||
|
# If this run was triggered by a pull request event, then checkout
|
||||||
|
# the head of the pull request instead of the merge commit.
|
||||||
|
- run: git checkout HEAD^2
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
|
|
||||||
|
# Initializes the CodeQL tools for scanning.
|
||||||
|
- name: Initialize CodeQL
|
||||||
|
uses: github/codeql-action/init@v1
|
||||||
|
with:
|
||||||
|
languages: javascript
|
||||||
|
|
||||||
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
|
- name: Autobuild
|
||||||
|
uses: github/codeql-action/autobuild@v1
|
||||||
|
|
||||||
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
|
# 📚 https://git.io/JvXDl
|
||||||
|
|
||||||
|
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||||
|
# and modify them (or add more) to build your code if your project
|
||||||
|
# uses a compiled language
|
||||||
|
|
||||||
|
#- run: |
|
||||||
|
# make bootstrap
|
||||||
|
# make release
|
||||||
|
|
||||||
|
- name: Perform CodeQL Analysis
|
||||||
|
uses: github/codeql-action/analyze@v1
|
24
lib/vscode/.github/workflows/commands.yml
vendored
Normal file
24
lib/vscode/.github/workflows/commands.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: Commands
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
# also make changes in ./on-label.yml
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
path: ./actions
|
||||||
|
ref: v37
|
||||||
|
- name: Install Actions
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: Run Commands
|
||||||
|
uses: ./actions/commands
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
config-path: commands
|
23
lib/vscode/.github/workflows/deep-classifier-monitor.yml
vendored
Normal file
23
lib/vscode/.github/workflows/deep-classifier-monitor.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: "Deep Classifier: Monitor"
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [unassigned]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
ref: v37
|
||||||
|
path: ./actions
|
||||||
|
- name: Install Actions
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: "Run Classifier: Monitor"
|
||||||
|
uses: ./actions/classifier-deep/monitor
|
||||||
|
with:
|
||||||
|
botName: vscode-triage-bot
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
50
lib/vscode/.github/workflows/deep-classifier-runner.yml
vendored
Normal file
50
lib/vscode/.github/workflows/deep-classifier-runner.yml
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
name: "Deep Classifier: Runner"
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: 0 * * * *
|
||||||
|
repository_dispatch:
|
||||||
|
types: [trigger-deep-classifier-runner]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
ref: v37
|
||||||
|
path: ./actions
|
||||||
|
- name: Install Actions
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: Install Additional Dependencies
|
||||||
|
# Pulls in a bunch of other packages that arent needed for the rest of the actions
|
||||||
|
run: npm install @azure/storage-blob@12.1.1
|
||||||
|
- name: "Run Classifier: Scraper"
|
||||||
|
uses: ./actions/classifier-deep/apply/fetch-sources
|
||||||
|
with:
|
||||||
|
# slightly overlapping to protect against issues slipping through the cracks if a run is delayed
|
||||||
|
from: 80
|
||||||
|
until: 5
|
||||||
|
configPath: classifier
|
||||||
|
blobContainerName: vscode-issue-classifier
|
||||||
|
blobStorageKey: ${{secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
- name: Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install --upgrade numpy scipy scikit-learn joblib nltk simpletransformers torch torchvision
|
||||||
|
- name: "Run Classifier: Generator"
|
||||||
|
run: python ./actions/classifier-deep/apply/generate-labels/main.py
|
||||||
|
- name: "Run Classifier: Labeler"
|
||||||
|
uses: ./actions/classifier-deep/apply/apply-labels
|
||||||
|
with:
|
||||||
|
configPath: classifier
|
||||||
|
allowLabels: "needs more info|new release"
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
27
lib/vscode/.github/workflows/deep-classifier-scraper.yml
vendored
Normal file
27
lib/vscode/.github/workflows/deep-classifier-scraper.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: "Deep Classifier: Scraper"
|
||||||
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
types: [trigger-deep-classifier-scraper]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
ref: v37
|
||||||
|
path: ./actions
|
||||||
|
- name: Install Actions
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: Install Additional Dependencies
|
||||||
|
# Pulls in a bunch of other packages that arent needed for the rest of the actions
|
||||||
|
run: npm install @azure/storage-blob@12.1.1
|
||||||
|
- name: "Run Classifier: Scraper"
|
||||||
|
uses: ./actions/classifier-deep/train/fetch-issues
|
||||||
|
with:
|
||||||
|
blobContainerName: vscode-issue-classifier
|
||||||
|
blobStorageKey: ${{secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING}}
|
||||||
|
token: ${{secrets.ISSUE_SCRAPER_TOKEN}}
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
41
lib/vscode/.github/workflows/devcontainer-cache.yml
vendored
Normal file
41
lib/vscode/.github/workflows/devcontainer-cache.yml
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
name: VS Code Repo Dev Container Cache Image Generation
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
# Currently doing this for master, but could be done for PRs as well
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
# Only updates to these files result in changes to installed packages, so skip otherwise
|
||||||
|
paths:
|
||||||
|
- '**/package-lock.json'
|
||||||
|
- '**/yarn.lock'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
devcontainer:
|
||||||
|
name: Generate cache image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
id: checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Azure CLI login
|
||||||
|
id: az_login
|
||||||
|
uses: azure/login@v1
|
||||||
|
with:
|
||||||
|
creds: ${{ secrets.AZ_ACR_CREDS }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
id: build_and_push
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
|
||||||
|
ACR_REGISTRY_NAME=$(echo ${{ secrets.CONTAINER_IMAGE_REGISTRY }} | grep -oP '(.+)(?=\.azurecr\.io)')
|
||||||
|
az acr login --name $ACR_REGISTRY_NAME
|
||||||
|
|
||||||
|
GIT_BRANCH=$(echo "${{ github.ref }}" | grep -oP 'refs/(heads|tags)/\K(.+)')
|
||||||
|
if [ "$GIT_BRANCH" == "" ]; then GIT_BRANCH=master; fi
|
||||||
|
|
||||||
|
.devcontainer/cache/build-cache-image.sh "${{ secrets.CONTAINER_IMAGE_REGISTRY }}/public/vscode/devcontainers/repos/microsoft/vscode" "${GIT_BRANCH}"
|
||||||
|
|
31
lib/vscode/.github/workflows/english-please.yml
vendored
Normal file
31
lib/vscode/.github/workflows/english-please.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: English Please
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [edited]
|
||||||
|
|
||||||
|
# also make changes in ./on-label.yml and ./on-open.yml
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
if: contains(github.event.issue.labels.*.name, '*english-please')
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
ref: v37
|
||||||
|
path: ./actions
|
||||||
|
- name: Install Actions
|
||||||
|
if: contains(github.event.issue.labels.*.name, '*english-please')
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: Run English Please
|
||||||
|
if: contains(github.event.issue.labels.*.name, '*english-please')
|
||||||
|
uses: ./actions/english-please
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
cognitiveServicesAPIKey: ${{secrets.AZURE_TEXT_TRANSLATOR_KEY}}
|
||||||
|
nonEnglishLabel: "*english-please"
|
||||||
|
needsMoreInfoLabel: "needs more info"
|
||||||
|
translatorRequestedLabelPrefix: "translation-required-"
|
||||||
|
translatorRequestedLabelColor: "c29cff"
|
43
lib/vscode/.github/workflows/feature-request.yml
vendored
Normal file
43
lib/vscode/.github/workflows/feature-request.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
name: Feature Request Manager
|
||||||
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
types: [trigger-feature-request-manager]
|
||||||
|
issues:
|
||||||
|
types: [milestoned]
|
||||||
|
schedule:
|
||||||
|
- cron: 20 2 * * * # 4:20am Zurich
|
||||||
|
|
||||||
|
# also make changes in ./on-label.yml
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'feature-request')
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
path: ./actions
|
||||||
|
ref: v37
|
||||||
|
- name: Install Actions
|
||||||
|
if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'feature-request')
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: Run Feature Request Manager
|
||||||
|
if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'feature-request')
|
||||||
|
uses: ./actions/feature-request
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
candidateMilestoneID: 107
|
||||||
|
candidateMilestoneName: Backlog Candidates
|
||||||
|
backlogMilestoneID: 8
|
||||||
|
featureRequestLabel: feature-request
|
||||||
|
upvotesRequired: 20
|
||||||
|
numCommentsOverride: 20
|
||||||
|
initComment: "This feature request is now a candidate for our backlog. The community has 60 days to [upvote](https://github.com/microsoft/vscode/wiki/Issues-Triaging#up-voting-a-feature-request) the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).\n\nHappy Coding!"
|
||||||
|
warnComment: "This feature request has not yet received the 20 community [upvotes](https://github.com/microsoft/vscode/wiki/Issues-Triaging#up-voting-a-feature-request) it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).\n\nHappy Coding!"
|
||||||
|
acceptComment: ":slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).\n\nHappy Coding!"
|
||||||
|
rejectComment: ":slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).\n\nHappy Coding!"
|
||||||
|
warnDays: 10
|
||||||
|
closeDays: 60
|
||||||
|
milestoneDelaySeconds: 60
|
27
lib/vscode/.github/workflows/latest-release-monitor.yml
vendored
Normal file
27
lib/vscode/.github/workflows/latest-release-monitor.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Latest Release Monitor
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: 0/5 * * * *
|
||||||
|
repository_dispatch:
|
||||||
|
types: [trigger-latest-release-monitor]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
path: ./actions
|
||||||
|
ref: v37
|
||||||
|
- name: Install Actions
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: Install Storage Module
|
||||||
|
run: npm install @azure/storage-blob@12.1.1
|
||||||
|
- name: Run Latest Release Monitor
|
||||||
|
uses: ./actions/latest-release-monitor
|
||||||
|
with:
|
||||||
|
storageKey: ${{secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING}}
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
26
lib/vscode/.github/workflows/locker.yml
vendored
Normal file
26
lib/vscode/.github/workflows/locker.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Locker
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: 20 23 * * * # 4:20pm Redmond
|
||||||
|
repository_dispatch:
|
||||||
|
types: [trigger-locker]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
path: ./actions
|
||||||
|
ref: v37
|
||||||
|
- name: Install Actions
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: Run Locker
|
||||||
|
uses: ./actions/locker
|
||||||
|
with:
|
||||||
|
daysSinceClose: 45
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
daysSinceUpdate: 3
|
||||||
|
ignoredLabel: "*out-of-scope"
|
30
lib/vscode/.github/workflows/needs-more-info-closer.yml
vendored
Normal file
30
lib/vscode/.github/workflows/needs-more-info-closer.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Needs More Info Closer
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: 20 11 * * * # 4:20am Redmond
|
||||||
|
repository_dispatch:
|
||||||
|
types: [trigger-needs-more-info]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
path: ./actions
|
||||||
|
ref: v37
|
||||||
|
- name: Install Actions
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: Run Needs More Info Closer
|
||||||
|
uses: ./actions/needs-more-info-closer
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
label: needs more info
|
||||||
|
closeDays: 7
|
||||||
|
additionalTeam: "cleidigh|usernamehw|gjsjohnmurray|IllusionMH"
|
||||||
|
closeComment: "This issue has been closed automatically because it needs more information and has not had recent activity. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nHappy Coding!"
|
||||||
|
pingDays: 80
|
||||||
|
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the problem no longer exists, or adding more information."
|
94
lib/vscode/.github/workflows/on-label.yml
vendored
Normal file
94
lib/vscode/.github/workflows/on-label.yml
vendored
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
name: On Label
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [labeled]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
ref: v37
|
||||||
|
path: ./actions
|
||||||
|
- name: Install Actions
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
|
||||||
|
# source of truth in ./author-verified.yml
|
||||||
|
- name: Checkout Repo
|
||||||
|
if: contains(github.event.issue.labels.*.name, 'author-verification-requested')
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ./repo
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Run Author Verified
|
||||||
|
if: contains(github.event.issue.labels.*.name, 'author-verification-requested')
|
||||||
|
uses: ./actions/author-verified
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
requestVerificationComment: "This bug has been fixed in to the latest release of [VS Code Insiders](https://code.visualstudio.com/insiders/)!\n\n@${author}, you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text `/verified` to let us know. If not, please ensure you're on version ${commit} of Insiders (today's or later - you can use `Help: About` in the command pallete to check), and leave a comment letting us know what isn't working as expected.\n\nHappy Coding!"
|
||||||
|
pendingReleaseLabel: awaiting-insiders-release
|
||||||
|
verifiedLabel: verified
|
||||||
|
authorVerificationRequestedLabel: author-verification-requested
|
||||||
|
|
||||||
|
# source of truth in ./commands.yml
|
||||||
|
- name: Run Commands
|
||||||
|
uses: ./actions/commands
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
config-path: commands
|
||||||
|
|
||||||
|
# only here.
|
||||||
|
- name: Run Subscribers
|
||||||
|
uses: ./actions/topic-subscribe
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
config-path: subscribers
|
||||||
|
|
||||||
|
# source of truth in ./feature-request.yml
|
||||||
|
- name: Run Feature Request Manager
|
||||||
|
if: contains(github.event.issue.labels.*.name, 'feature-request')
|
||||||
|
uses: ./actions/feature-request
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
candidateMilestoneID: 107
|
||||||
|
candidateMilestoneName: Backlog Candidates
|
||||||
|
backlogMilestoneID: 8
|
||||||
|
featureRequestLabel: feature-request
|
||||||
|
upvotesRequired: 20
|
||||||
|
numCommentsOverride: 20
|
||||||
|
initComment: "This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).\n\nHappy Coding!"
|
||||||
|
warnComment: "This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).\n\nHappy Coding"
|
||||||
|
acceptComment: ":slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).\n\nHappy Coding!"
|
||||||
|
rejectComment: ":slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).\n\nHappy Coding!"
|
||||||
|
warnDays: 10
|
||||||
|
closeDays: 60
|
||||||
|
milestoneDelaySeconds: 60
|
||||||
|
|
||||||
|
# source of truth in ./test-plan-item-validator.yml
|
||||||
|
- name: Run Test Plan Item Validator
|
||||||
|
if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item')
|
||||||
|
uses: ./actions/test-plan-item-validator
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
label: testplan-item
|
||||||
|
invalidLabel: invalid-testplan-item
|
||||||
|
comment: Invalid test plan item. See errors below and the [test plan item spec](https://github.com/microsoft/vscode/wiki/Writing-Test-Plan-Items) for more information. This comment will go away when the issues are resolved.
|
||||||
|
|
||||||
|
# source of truth in ./english-please.yml
|
||||||
|
- name: Run English Please
|
||||||
|
if: contains(github.event.issue.labels.*.name, '*english-please')
|
||||||
|
uses: ./actions/english-please
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
cognitiveServicesAPIKey: ${{secrets.AZURE_TEXT_TRANSLATOR_KEY}}
|
||||||
|
nonEnglishLabel: "*english-please"
|
||||||
|
needsMoreInfoLabel: "needs more info"
|
||||||
|
translatorRequestedLabelPrefix: "translation-required-"
|
||||||
|
translatorRequestedLabelColor: "c29cff"
|
69
lib/vscode/.github/workflows/on-open.yml
vendored
Normal file
69
lib/vscode/.github/workflows/on-open.yml
vendored
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
name: On Open
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
ref: v37
|
||||||
|
path: ./actions
|
||||||
|
- name: Install Actions
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
|
||||||
|
- name: Run CopyCat (JacksonKearl/testissues)
|
||||||
|
uses: ./actions/copycat
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
owner: JacksonKearl
|
||||||
|
repo: testissues
|
||||||
|
- name: Run CopyCat (chrmarti/testissues)
|
||||||
|
uses: ./actions/copycat
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
owner: chrmarti
|
||||||
|
repo: testissues
|
||||||
|
|
||||||
|
- name: Run New Release
|
||||||
|
uses: ./actions/new-release
|
||||||
|
with:
|
||||||
|
label: new release
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
labelColor: "006b75"
|
||||||
|
labelDescription: Issues found in a recent release of VS Code
|
||||||
|
days: 5
|
||||||
|
|
||||||
|
- name: Run Clipboard Labeler
|
||||||
|
uses: ./actions/regex-labeler
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
label: "invalid"
|
||||||
|
mustNotMatch: "^We have written the needed data into your clipboard because it was too large to send\\. Please paste\\.$"
|
||||||
|
comment: "It looks like you're using the VS Code Issue Reporter but did not paste the text generated into the created issue. We've closed this issue, please open a new one containing the text we placed in your clipboard.\n\nHappy Coding!"
|
||||||
|
|
||||||
|
- name: Run Clipboard Labeler (Chinese)
|
||||||
|
uses: ./actions/regex-labeler
|
||||||
|
with:
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
label: "invalid"
|
||||||
|
mustNotMatch: "^所需的数据太大,无法直接发送。我们已经将其写入剪贴板,请粘贴。$"
|
||||||
|
comment: "看起来您正在使用 VS Code 问题报告程序,但是没有将生成的文本粘贴到创建的问题中。我们将关闭这个问题,请使用剪贴板中的内容创建一个新的问题。\n\n祝您使用愉快!"
|
||||||
|
|
||||||
|
# source of truth in ./english-please.yml
|
||||||
|
- name: Run English Please
|
||||||
|
uses: ./actions/english-please
|
||||||
|
with:
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
cognitiveServicesAPIKey: ${{secrets.AZURE_TEXT_TRANSLATOR_KEY}}
|
||||||
|
nonEnglishLabel: "*english-please"
|
||||||
|
needsMoreInfoLabel: "needs more info"
|
||||||
|
translatorRequestedLabelPrefix: "translation-required-"
|
||||||
|
translatorRequestedLabelColor: "c29cff"
|
32
lib/vscode/.github/workflows/release-pipeline-labeler.yml
vendored
Normal file
32
lib/vscode/.github/workflows/release-pipeline-labeler.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: "Release Pipeline Labeler"
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [closed, reopened]
|
||||||
|
repository_dispatch:
|
||||||
|
types: [released-insider]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
ref: v37
|
||||||
|
path: ./actions
|
||||||
|
- name: Checkout Repo
|
||||||
|
if: github.event_name != 'issues'
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ./repo
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Install Actions
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: "Run Release Pipeline Labeler"
|
||||||
|
uses: ./actions/release-pipeline
|
||||||
|
with:
|
||||||
|
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
notYetReleasedLabel: unreleased
|
||||||
|
insidersReleasedLabel: insiders-released
|
32
lib/vscode/.github/workflows/rich-navigation.yml
vendored
Normal file
32
lib/vscode/.github/workflows/rich-navigation.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: "Rich Navigation Indexing"
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
richnav:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
id: caching-stage
|
||||||
|
name: Cache VS Code dependencies
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: ${{ runner.os }}-dependencies-${{ hashfiles('yarn.lock') }}
|
||||||
|
restore-keys: ${{ runner.os }}-dependencies-
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
if: steps.caching-stage.outputs.cache-hit != 'true'
|
||||||
|
run: yarn --frozen-lockfile
|
||||||
|
env:
|
||||||
|
CHILD_CONCURRENCY: 1
|
||||||
|
|
||||||
|
- uses: microsoft/RichCodeNavIndexer@v0.1
|
||||||
|
with:
|
||||||
|
languages: typescript
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
continue-on-error: true
|
28
lib/vscode/.github/workflows/test-plan-item-validator.yml
vendored
Normal file
28
lib/vscode/.github/workflows/test-plan-item-validator.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
name: Test Plan Item Validator
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [edited]
|
||||||
|
|
||||||
|
# also edit in ./on-label.yml
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Actions
|
||||||
|
if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item')
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'microsoft/vscode-github-triage-actions'
|
||||||
|
path: ./actions
|
||||||
|
ref: v37
|
||||||
|
- name: Install Actions
|
||||||
|
if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item')
|
||||||
|
run: npm install --production --prefix ./actions
|
||||||
|
- name: Run Test Plan Item Validator
|
||||||
|
if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item')
|
||||||
|
uses: ./actions/test-plan-item-validator
|
||||||
|
with:
|
||||||
|
label: testplan-item
|
||||||
|
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
|
||||||
|
invalidLabel: invalid-testplan-item
|
||||||
|
comment: Invalid test plan item. See errors below and the [test plan item spec](https://github.com/microsoft/vscode/wiki/Writing-Test-Plan-Items) for more information. This comment will go away when the issues are resolved.
|
36
lib/vscode/.gitignore
vendored
Normal file
36
lib/vscode/.gitignore
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
.DS_Store
|
||||||
|
.cache
|
||||||
|
npm-debug.log
|
||||||
|
Thumbs.db
|
||||||
|
node_modules/
|
||||||
|
.build/
|
||||||
|
extensions/**/dist/
|
||||||
|
out/
|
||||||
|
out-build/
|
||||||
|
out-editor/
|
||||||
|
out-editor-src/
|
||||||
|
out-editor-build/
|
||||||
|
out-editor-esm/
|
||||||
|
out-editor-esm-bundle/
|
||||||
|
out-editor-min/
|
||||||
|
out-monaco-editor-core/
|
||||||
|
out-vscode/
|
||||||
|
out-vscode-min/
|
||||||
|
out-vscode-reh/
|
||||||
|
out-vscode-reh-min/
|
||||||
|
out-vscode-reh-pkg/
|
||||||
|
out-vscode-reh-web/
|
||||||
|
out-vscode-reh-web-min/
|
||||||
|
out-vscode-reh-web-pkg/
|
||||||
|
out-vscode-web/
|
||||||
|
out-vscode-web-min/
|
||||||
|
out-vscode-web-pkg/
|
||||||
|
src/vs/server
|
||||||
|
resources/server
|
||||||
|
build/node_modules
|
||||||
|
coverage/
|
||||||
|
test_data/
|
||||||
|
test-results/
|
||||||
|
yarn-error.log
|
||||||
|
vscode.lsif
|
||||||
|
vscode.db
|
2
lib/vscode/.mailmap
Normal file
2
lib/vscode/.mailmap
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Eric Amodio <eamodio@microsoft.com> Eric Amodio <eamodio@gmail.com>
|
||||||
|
Daniel Imms <daimms@microsoft.com> Daniel Imms <tyriar@tyriar.com>
|
7
lib/vscode/.mention-bot
Normal file
7
lib/vscode/.mention-bot
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"maxReviewers": 2,
|
||||||
|
"requiredOrgs": ["Microsoft"],
|
||||||
|
"skipAlreadyAssignedPR": true,
|
||||||
|
"skipAlreadyMentionedPR": true,
|
||||||
|
"skipCollaboratorPR": true
|
||||||
|
}
|
61
lib/vscode/.vscode/cglicenses.schema.json
vendored
Normal file
61
lib/vscode/.vscode/cglicenses.schema.json
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"prependLicenseText"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the dependency"
|
||||||
|
},
|
||||||
|
"fullLicenseText": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "The complete license text of the dependency",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"prependLicenseText": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "A piece of text to prepend to the auto-detected license text of the dependency",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"fullLicenseText"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the dependency"
|
||||||
|
},
|
||||||
|
"fullLicenseText": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "The complete license text of the dependency",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"prependLicenseText": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "A piece of text to prepend to the auto-detected license text of the dependency",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
142
lib/vscode/.vscode/cgmanifest.schema.json
vendored
Normal file
142
lib/vscode/.vscode/cgmanifest.schema.json
vendored
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"registrations": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"component": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"git"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"git"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"git": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"repositoryUrl",
|
||||||
|
"commitHash"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"repositoryUrl": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"commitHash": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"npm"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"npm"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"npm": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"version"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"other"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"other"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"other": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"downloadUrl",
|
||||||
|
"version"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"downloadUrl": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"repositoryUrl": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The git url of the component"
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The version of the component"
|
||||||
|
},
|
||||||
|
"license": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the license"
|
||||||
|
},
|
||||||
|
"developmentDependency": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "This component is inlined in the vscode repo and **is not shipped**."
|
||||||
|
},
|
||||||
|
"isOnlyProductionDependency": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "This component is shipped and **is not inlined in the vscode repo**."
|
||||||
|
},
|
||||||
|
"licenseDetail": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "The license text"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
9
lib/vscode/.vscode/extensions.json
vendored
Normal file
9
lib/vscode/.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=827846
|
||||||
|
// for the documentation about the extensions.json format
|
||||||
|
"recommendations": [
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"EditorConfig.EditorConfig",
|
||||||
|
"msjsdiag.debugger-for-chrome"
|
||||||
|
]
|
||||||
|
}
|
487
lib/vscode/.vscode/launch.json
vendored
Normal file
487
lib/vscode/.vscode/launch.json
vendored
Normal file
@ -0,0 +1,487 @@
|
|||||||
|
{
|
||||||
|
"version": "0.1.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Gulp Build",
|
||||||
|
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
|
||||||
|
"stopOnEntry": true,
|
||||||
|
"args": [
|
||||||
|
"hygiene"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "attach",
|
||||||
|
"restart": true,
|
||||||
|
"name": "Attach to Extension Host",
|
||||||
|
"timeout": 30000,
|
||||||
|
"port": 5870,
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js",
|
||||||
|
"${workspaceFolder}/extensions/*/out/**/*.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "pwa-chrome",
|
||||||
|
"request": "attach",
|
||||||
|
"name": "Attach to Shared Process",
|
||||||
|
"timeout": 30000,
|
||||||
|
"port": 9222,
|
||||||
|
"urlFilter": "*sharedProcess.html*",
|
||||||
|
"presentation": {
|
||||||
|
"hidden": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "attach",
|
||||||
|
"name": "Attach to Search Process",
|
||||||
|
"port": 5876,
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"hidden": true,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "attach",
|
||||||
|
"name": "Attach to CLI Process",
|
||||||
|
"port": 5874,
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "attach",
|
||||||
|
"name": "Attach to Main Process",
|
||||||
|
"timeout": 30000,
|
||||||
|
"port": 5875,
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"hidden": true,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "extensionHost",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "VS Code Emmet Tests",
|
||||||
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
"${workspaceFolder}/extensions/emmet/test-fixtures",
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/emmet",
|
||||||
|
"--extensionTestsPath=${workspaceFolder}/extensions/emmet/out/test"
|
||||||
|
],
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 6
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "extensionHost",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "VS Code Git Tests",
|
||||||
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
"/tmp/my4g9l",
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/git",
|
||||||
|
"--extensionTestsPath=${workspaceFolder}/extensions/git/out/test"
|
||||||
|
],
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/extensions/git/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 6
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "extensionHost",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "VS Code API Tests (single folder)",
|
||||||
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
// "${workspaceFolder}", // Uncomment for running out of sources.
|
||||||
|
"${workspaceFolder}/extensions/vscode-api-tests/testWorkspace",
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-api-tests",
|
||||||
|
"--extensionTestsPath=${workspaceFolder}/extensions/vscode-api-tests/out/singlefolder-tests"
|
||||||
|
],
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 3
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "extensionHost",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "VS Code API Tests (workspace)",
|
||||||
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
"${workspaceFolder}/extensions/vscode-api-tests/testworkspace.code-workspace",
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-api-tests",
|
||||||
|
"--extensionTestsPath=${workspaceFolder}/extensions/vscode-api-tests/out/workspace-tests"
|
||||||
|
],
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 4
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "extensionHost",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "VS Code Tokenizer Tests",
|
||||||
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
"${workspaceFolder}/extensions/vscode-colorize-tests/test",
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-colorize-tests",
|
||||||
|
"--extensionTestsPath=${workspaceFolder}/extensions/vscode-colorize-tests/out"
|
||||||
|
],
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "extensionHost",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "VS Code Notebook Tests",
|
||||||
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
"${workspaceFolder}/extensions/vscode-notebook-tests/test",
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-notebook-tests",
|
||||||
|
"--extensionTestsPath=${workspaceFolder}/extensions/vscode-notebook-tests/out"
|
||||||
|
],
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 6
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "extensionHost",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "VS Code Custom Editor Tests",
|
||||||
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
"${workspaceFolder}/extensions/vscode-custom-editor-tests/test-workspace",
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-custom-editor-tests",
|
||||||
|
"--extensionTestsPath=${workspaceFolder}/extensions/vscode-custom-editor-tests/out/test"
|
||||||
|
],
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 6
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "pwa-chrome",
|
||||||
|
"request": "attach",
|
||||||
|
"name": "Attach to VS Code",
|
||||||
|
"browserAttachLocation": "workspace",
|
||||||
|
"port": 9222
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "pwa-chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Launch VS Code",
|
||||||
|
"windows": {
|
||||||
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.bat"
|
||||||
|
},
|
||||||
|
"osx": {
|
||||||
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
|
||||||
|
},
|
||||||
|
"linux": {
|
||||||
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
|
||||||
|
},
|
||||||
|
"port": 9222,
|
||||||
|
"timeout": 20000,
|
||||||
|
"env": {
|
||||||
|
"VSCODE_EXTHOST_WILL_SEND_SOCKET": null,
|
||||||
|
"VSCODE_SKIP_PRELAUNCH": "1"
|
||||||
|
},
|
||||||
|
"cleanUp": "wholeBrowser",
|
||||||
|
"urlFilter": "*workbench.html*",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"--inspect=5875",
|
||||||
|
"--no-cached-data",
|
||||||
|
],
|
||||||
|
"webRoot": "${workspaceFolder}",
|
||||||
|
"cascadeTerminateToConfigurations": [
|
||||||
|
"Attach to Extension Host"
|
||||||
|
],
|
||||||
|
"userDataDir": false,
|
||||||
|
"pauseForSourceMap": false,
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"browserLaunchLocation": "workspace",
|
||||||
|
"preLaunchTask": "Ensure Prelaunch Dependencies",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "VS Code (Web)",
|
||||||
|
"program": "${workspaceFolder}/resources/web/code-web.js",
|
||||||
|
"presentation": {
|
||||||
|
"group": "0_vscode",
|
||||||
|
"order": 2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Main Process",
|
||||||
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.sh",
|
||||||
|
"windows": {
|
||||||
|
"runtimeExecutable": "${workspaceFolder}/scripts/code.bat",
|
||||||
|
},
|
||||||
|
"runtimeArgs": [
|
||||||
|
"--no-cached-data"
|
||||||
|
],
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "1_vscode",
|
||||||
|
"order": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "pwa-chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"outFiles": [],
|
||||||
|
"perScriptSourcemaps": "yes",
|
||||||
|
"name": "VS Code (Web, Chrome)",
|
||||||
|
"url": "http://localhost:8080",
|
||||||
|
"preLaunchTask": "Run web",
|
||||||
|
"presentation": {
|
||||||
|
"group": "0_vscode",
|
||||||
|
"order": 3
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "pwa-msedge",
|
||||||
|
"request": "launch",
|
||||||
|
"outFiles": [],
|
||||||
|
"perScriptSourcemaps": "yes",
|
||||||
|
"name": "VS Code (Web, Edge)",
|
||||||
|
"url": "http://localhost:8080",
|
||||||
|
"pauseForSourceMap": false,
|
||||||
|
"preLaunchTask": "Run web",
|
||||||
|
"presentation": {
|
||||||
|
"group": "0_vscode",
|
||||||
|
"order": 3
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Git Unit Tests",
|
||||||
|
"program": "${workspaceFolder}/extensions/git/node_modules/mocha/bin/_mocha",
|
||||||
|
"stopOnEntry": false,
|
||||||
|
"cwd": "${workspaceFolder}/extensions/git",
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/extensions/git/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 10
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "HTML Server Unit Tests",
|
||||||
|
"program": "${workspaceFolder}/extensions/html-language-features/server/test/index.js",
|
||||||
|
"stopOnEntry": false,
|
||||||
|
"cwd": "${workspaceFolder}/extensions/html-language-features/server",
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/extensions/html-language-features/server/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 10
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "CSS Server Unit Tests",
|
||||||
|
"program": "${workspaceFolder}/extensions/css-language-features/server/test/index.js",
|
||||||
|
"stopOnEntry": false,
|
||||||
|
"cwd": "${workspaceFolder}/extensions/css-language-features/server",
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/extensions/css-language-features/server/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 10
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "extensionHost",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Markdown Extension Tests",
|
||||||
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
"${workspaceFolder}/extensions/markdown-language-features/test-workspace",
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/markdown-language-features",
|
||||||
|
"--extensionTestsPath=${workspaceFolder}/extensions/markdown-language-features/out/test"
|
||||||
|
],
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/extensions/markdown-language-features/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 7
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "extensionHost",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "TypeScript Extension Tests",
|
||||||
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
"${workspaceFolder}/extensions/typescript-language-features/test-workspace",
|
||||||
|
"--extensionDevelopmentPath=${workspaceFolder}/extensions/typescript-language-features",
|
||||||
|
"--extensionTestsPath=${workspaceFolder}/extensions/typescript-language-features/out/test"
|
||||||
|
],
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/extensions/typescript-language-features/out/**/*.js"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "5_tests",
|
||||||
|
"order": 8
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Run Unit Tests",
|
||||||
|
"program": "${workspaceFolder}/test/unit/electron/index.js",
|
||||||
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron",
|
||||||
|
"windows": {
|
||||||
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.exe"
|
||||||
|
},
|
||||||
|
"linux": {
|
||||||
|
"runtimeExecutable": "${workspaceFolder}/.build/electron/code-oss"
|
||||||
|
},
|
||||||
|
"outputCapture": "std",
|
||||||
|
"args": [
|
||||||
|
"--remote-debugging-port=9222"
|
||||||
|
],
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"outFiles": [
|
||||||
|
"${workspaceFolder}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"MOCHA_COLORS": "true"
|
||||||
|
},
|
||||||
|
"presentation": {
|
||||||
|
"hidden": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Launch Smoke Test",
|
||||||
|
"program": "${workspaceFolder}/test/smoke/out/main.js",
|
||||||
|
"cwd": "${workspaceFolder}/test/smoke",
|
||||||
|
"timeout": 240000,
|
||||||
|
"port": 9999,
|
||||||
|
"args": [
|
||||||
|
"-l",
|
||||||
|
"${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron"
|
||||||
|
],
|
||||||
|
"outFiles": [
|
||||||
|
"${cwd}/out/**/*.js"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"NODE_ENV": "development",
|
||||||
|
"VSCODE_DEV": "1",
|
||||||
|
"VSCODE_CLI": "1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Launch Built-in Extension",
|
||||||
|
"type": "extensionHost",
|
||||||
|
"request": "launch",
|
||||||
|
"runtimeExecutable": "${execPath}",
|
||||||
|
"args": [
|
||||||
|
"--extensionDevelopmentPath=${workspaceRoot}/extensions/debug-auto-launch"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"compounds": [
|
||||||
|
{
|
||||||
|
"name": "VS Code",
|
||||||
|
"stopAll": true,
|
||||||
|
"configurations": [
|
||||||
|
"Launch VS Code",
|
||||||
|
"Attach to Main Process",
|
||||||
|
"Attach to Extension Host",
|
||||||
|
"Attach to Shared Process",
|
||||||
|
],
|
||||||
|
"preLaunchTask": "Ensure Prelaunch Dependencies",
|
||||||
|
"presentation": {
|
||||||
|
"group": "0_vscode",
|
||||||
|
"order": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Search and Renderer processes",
|
||||||
|
"configurations": [
|
||||||
|
"Launch VS Code",
|
||||||
|
"Attach to Search Process"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "1_vscode",
|
||||||
|
"order": 4
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Renderer and Extension Host processes",
|
||||||
|
"configurations": [
|
||||||
|
"Launch VS Code",
|
||||||
|
"Attach to Extension Host"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "1_vscode",
|
||||||
|
"order": 3
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Debug Unit Tests",
|
||||||
|
"configurations": [
|
||||||
|
"Attach to VS Code",
|
||||||
|
"Run Unit Tests"
|
||||||
|
],
|
||||||
|
"presentation": {
|
||||||
|
"group": "1_vscode",
|
||||||
|
"order": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
38
lib/vscode/.vscode/notebooks/api.github-issues
vendored
Normal file
38
lib/vscode/.vscode/notebooks/api.github-issues
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "#### Config",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repo=repo:microsoft/vscode\n$milestone=milestone:\"September 2020\"",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Finalization",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repo $milestone label:api-finalization",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Proposals",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repo $milestone is:open label:api-proposal ",
|
||||||
|
"editable": true
|
||||||
|
}
|
||||||
|
]
|
182
lib/vscode/.vscode/notebooks/endgame.github-issues
vendored
Normal file
182
lib/vscode/.vscode/notebooks/endgame.github-issues
vendored
Normal file
@ -0,0 +1,182 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "# Endgame",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "## Macros",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$REPOS=repo:microsoft/vscode repo:microsoft/vscode-internalbacklog repo:microsoft/vscode-remote-release repo:microsoft/vscode-js-debug repo:microsoft/vscode-pull-request-github\n\n$MILESTONE=milestone:\"October 2020\"\n\n$MINE=assignee:@me",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "## Endgame Champion",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Test Plan Items",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$REPOS $MILESTONE label:testplan-item is:open",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Feature Requests Missing Labels",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$REPOS $MILESTONE is:issue is:closed label:feature-request -label:verification-needed -label:on-testplan -label:verified -label:*duplicate",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Open Issues on the Milestone",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$REPOS $MILESTONE -label:testplan-item -label:iteration-plan -label:endgame-plan is:open",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "## Testing",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### My Assigned Test Plan Items",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$REPOS $MILESTONE $MINE label:testplan-item is:open",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### My Created Test Plan Items",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$REPOS $MILESTONE author:@me label:testplan-item",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "## Verification",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Issues to Verify",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "#### Issues filed by me",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$REPOS $MILESTONE -$MINE author:@me sort:updated-asc is:closed is:issue label:bug -label:verified -label:on-testplan -label:duplicate -label:*duplicate -label:invalid -label:*as-designed -label:error-telemetry -label:verification-steps-needed -label:verification-found",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "#### Issues filed by others",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$REPOS $MILESTONE -$MINE -author:@me sort:updated-asc is:closed is:issue label:bug -label:verified -label:on-testplan -label:duplicate -label:*duplicate -label:invalid -label:*as-designed -label:error-telemetry -label:verification-steps-needed -label:verification-found",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Verification Needed",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$REPOS $MILESTONE is:issue is:closed label:feature-request -label:verification-needed -label:on-testplan -label:verified -label:*duplicate ",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### My Issues Needing Verification",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$REPOS $MILESTONE $MINE sort:updated-desc is:closed is:issue -label:verified -label:on-testplan -label:duplicate -label:*duplicate -label:invalid -label:*as-designed -label:error-telemetry -label:verification-steps-needed -label:verification-found\n",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### My Open Issues",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$REPOS $MILESTONE $MINE is:open is:issue",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "## Documentation",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Needing Release Notes",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "repo:microsoft/vscode $MILESTONE $MINE is:closed label:feature-request -label:on-release-notes",
|
||||||
|
"editable": true
|
||||||
|
}
|
||||||
|
]
|
26
lib/vscode/.vscode/notebooks/grooming.github-issues
vendored
Normal file
26
lib/vscode/.vscode/notebooks/grooming.github-issues
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Categorizing Issues\n\nEach issue must have a type label. Most type labels are grey, some are yellow. Bugs are grey with a touch of red.",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "repo:microsoft/vscode is:open is:issue assignee:@me -label:\"needs more info\" -label:bug -label:feature-request -label:under-discussion -label:debt -label:*question -label:upstream -label:electron -label:engineering -label:plan-item ",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Feature Areas\n\nEach issue should be assigned to a feature area",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "repo:microsoft/vscode is:open is:issue assignee:@me -label:L10N -label:VIM -label:api -label:api-finalization -label:api-proposal -label:authentication -label:breadcrumbs -label:callhierarchy -label:code-lens -label:color-palette -label:comments -label:config -label:context-keys -label:css-less-scss -label:custom-editors -label:debug -label:debug-console -label:dialogs -label:diff-editor -label:dropdown -label:editor -label:editor-RTL -label:editor-autoclosing -label:editor-autoindent -label:editor-bracket-matching -label:editor-clipboard -label:editor-code-actions -label:editor-color-picker -label:editor-columnselect -label:editor-commands -label:editor-comments -label:editor-contrib -label:editor-core -label:editor-drag-and-drop -label:editor-error-widget -label:editor-find -label:editor-folding -label:editor-highlight -label:editor-hover -label:editor-indent-detection -label:editor-indent-guides -label:editor-input -label:editor-input-IME -label:editor-insets -label:editor-minimap -label:editor-multicursor -label:editor-parameter-hints -label:editor-render-whitespace -label:editor-rendering -label:editor-scrollbar -label:editor-symbols -label:editor-synced-region -label:editor-textbuffer -label:editor-theming -label:editor-wordnav -label:editor-wrapping -label:emmet -label:error-list -label:explorer-custom -label:extension-host -label:extension-recommendations -label:extensions -label:extensions-development -label:file-decorations -label:file-encoding -label:file-explorer -label:file-glob -label:file-guess-encoding -label:file-io -label:file-watcher -label:font-rendering -label:formatting -label:git -label:github -label:gpu -label:grammar -label:grid-view -label:html -label:i18n -label:icon-brand -label:icons-product -label:install-update -label:integrated-terminal -label:integrated-terminal-conpty -label:integrated-terminal-links -label:integrated-terminal-rendering -label:integrated-terminal-winpty -label:intellisense-config -label:ipc -label:issue-bot -label:issue-reporter -label:javascript -label:json -label:keybindings -label:keybindings-editor -label:keyboard-layout -label:label-provider -label:languages-basic -label:languages-diagnostics -label:languages-guessing -label:layout -label:lcd-text-rendering -label:list -label:log -label:markdown -label:marketplace -label:menus -label:merge-conflict -label:notebook -label:outline -label:output -label:perf -label:perf-bloat -label:perf-startup -label:php -label:portable-mode -label:proxy -label:quick-pick -label:references-viewlet -label:release-notes -label:remote -label:remote-explorer -label:rename -label:samples -label:sandbox -label:scm -label:screencast-mode -label:search -label:search-api -label:search-editor -label:search-replace -label:semantic-tokens -label:settings-editor -label:settings-sync -label:settings-sync-server -label:shared-process -label:simple-file-dialog -label:smart-select -label:snap -label:snippets -label:splitview -label:suggest -label:sync-error-handling -label:tasks -label:telemetry -label:themes -label:timeline -label:timeline-git -label:titlebar -label:tokenization -label:touch/pointer -label:trackpad/scroll -label:tree -label:typescript -label:undo-redo -label:uri -label:ux -label:variable-resolving -label:vscode-build -label:vscode-website -label:web -label:webview -label:workbench-actions -label:workbench-cli -label:workbench-diagnostics -label:workbench-dnd -label:workbench-editor-grid -label:workbench-editors -label:workbench-electron -label:workbench-feedback -label:workbench-history -label:workbench-hot-exit -label:workbench-hover -label:workbench-launch -label:workbench-link -label:workbench-multiroot -label:workbench-notifications -label:workbench-os-integration -label:workbench-rapid-render -label:workbench-run-as-admin -label:workbench-state -label:workbench-status -label:workbench-tabs -label:workbench-touchbar -label:workbench-views -label:workbench-welcome -label:workbench-window -label:workbench-zen -label:workspace-edit -label:workspace-symbols -label:zoom",
|
||||||
|
"editable": true
|
||||||
|
}
|
||||||
|
]
|
50
lib/vscode/.vscode/notebooks/inbox.github-issues
vendored
Normal file
50
lib/vscode/.vscode/notebooks/inbox.github-issues
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "## tl;dr: Triage Inbox\n\nAll inbox issues but not those that need more information. These issues need to be triaged, e.g assigned to a user or ask for more information",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$inbox -label:\"needs more info\"",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "##### `Config`: defines the inbox query",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$inbox=repo:microsoft/vscode is:open no:assignee -label:feature-request -label:testplan-item -label:plan-item ",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "## Inbox tracking and Issue triage",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "New issues or pull requests submitted by the community are initially triaged by an [automatic classification bot](https://github.com/microsoft/vscode-github-triage-actions/tree/master/classifier-deep). Issues that the bot does not correctly triage are then triaged by a team member. The team rotates the inbox tracker on a weekly basis.\n\nA [mirror](https://github.com/JacksonKearl/testissues/issues) of the VS Code issue stream is available with details about how the bot classifies issues, including feature-area classifications and confidence ratings. Per-category confidence thresholds and feature-area ownership data is maintained in [.github/classifier.json](https://github.com/microsoft/vscode/blob/master/.github/classifier.json). \n\n💡 The bot is being run through a GitHub action that runs every 30 minutes. Give the bot the opportunity to classify an issue before doing it manually.\n\n### Inbox Tracking\n\nThe inbox tracker is responsible for the [global inbox](https://github.com/microsoft/vscode/issues?utf8=%E2%9C%93&q=is%3Aopen+no%3Aassignee+-label%3Afeature-request+-label%3Atestplan-item+-label%3Aplan-item) containing all **open issues and pull requests** that\n- are neither **feature requests** nor **test plan items** nor **plan items** and\n- have **no owner assignment**.\n\nThe **inbox tracker** may perform any step described in our [issue triaging documentation](https://github.com/microsoft/vscode/wiki/Issues-Triaging) but its main responsibility is to route issues to the actual feature area owner.\n\nFeature area owners track the **feature area inbox** containing all **open issues and pull requests** that\n- are personally assigned to them and are not assigned to any milestone\n- are labeled with their feature area label and are not assigned to any milestone.\nThis secondary triage may involve any of the steps described in our [issue triaging documentation](https://github.com/microsoft/vscode/wiki/Issues-Triaging) and results in a fully triaged or closed issue.\n\nThe [github triage extension](https://github.com/microsoft/vscode-github-triage-extension) can be used to assist with triaging — it provides a \"Command Palette\"-style list of triaging actions like assignment, labeling, and triggers for various bot actions.",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "## All Inbox Items\n\nAll issues that have no assignee and that have neither **feature requests** nor **test plan items** nor **plan items**.",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$inbox",
|
||||||
|
"editable": true
|
||||||
|
}
|
||||||
|
]
|
98
lib/vscode/.vscode/notebooks/my-work.github-issues
vendored
Normal file
98
lib/vscode/.vscode/notebooks/my-work.github-issues
vendored
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "##### `Config`: This should be changed every month/milestone",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "// list of repos we work in\n$repos=repo:microsoft/vscode repo:microsoft/vscode-remote-release repo:microsoft/vscode-js-debug repo:microsoft/vscode-pull-request-github repo:microsoft/vscode-github-issue-notebooks\n\n// current milestone name\n$milestone=milestone:\"September 2020\"",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "## Milestone Work",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repos $milestone assignee:@me is:open",
|
||||||
|
"editable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "## Bugs, Debt, Features...",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "#### My Bugs",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repos assignee:@me is:open label:bug",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "#### Debt & Engineering",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repos assignee:@me is:open label:debt OR $repos assignee:@me is:open label:engineering",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "#### Performance 🐌 🔜 🏎",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repos assignee:@me is:open label:perf OR $repos assignee:@me is:open label:perf-startup OR $repos assignee:@me is:open label:perf-bloat OR $repos assignee:@me is:open label:freeze-slow-crash-leak",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "#### Feature Requests",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repos assignee:@me is:open label:feature-request milestone:Backlog sort:reactions-+1-desc",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repos assignee:@me is:open milestone:\"Backlog Candidates\"",
|
||||||
|
"editable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "#### Not Actionable",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repos assignee:@me is:open label:\"needs more info\"",
|
||||||
|
"editable": false
|
||||||
|
}
|
||||||
|
]
|
56
lib/vscode/.vscode/notebooks/verification.github-issues
vendored
Normal file
56
lib/vscode/.vscode/notebooks/verification.github-issues
vendored
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Bug Verification Queries\n\nBefore shipping we want to verify _all_ bugs. That means when a bug is fixed we check that the fix actually works. It's always best to start with bugs that you have filed and the proceed with bugs that have been filed from users outside the development team. ",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "#### Config: update list of `repos` and the `milestone`",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repos=repo:microsoft/vscode repo:microsoft/vscode-internalbacklog repo:microsoft/vscode-remote-release repo:microsoft/vscode-js-debug repo:microsoft/vscode-pull-request-github repo:microsoft/vscode-github-issue-notebooks \n$milestone=milestone:\"October 2020\"",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Bugs You Filed",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repos $milestone is:closed -assignee:@me label:bug -label:verified -label:*duplicate author:@me",
|
||||||
|
"editable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### Bugs From Outside",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repos $milestone is:closed -assignee:@me label:bug -label:verified -label:*duplicate -author:@me -assignee:@me label:bug -label:verified -author:@me -author:aeschli -author:alexdima -author:alexr00 -author:bpasero -author:chrisdias -author:chrmarti -author:connor4312 -author:dbaeumer -author:deepak1556 -author:eamodio -author:egamma -author:gregvanl -author:isidorn -author:JacksonKearl -author:joaomoreno -author:jrieken -author:lramos15 -author:lszomoru -author:meganrogge -author:misolori -author:mjbvz -author:rebornix -author:RMacfarlane -author:roblourens -author:sana-ajani -author:sandy081 -author:sbatten -author:Tyriar -author:weinand",
|
||||||
|
"editable": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 1,
|
||||||
|
"language": "markdown",
|
||||||
|
"value": "### All",
|
||||||
|
"editable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": 2,
|
||||||
|
"language": "github-issues",
|
||||||
|
"value": "$repos $milestone is:closed -assignee:@me label:bug -label:verified -label:*duplicate",
|
||||||
|
"editable": false
|
||||||
|
}
|
||||||
|
]
|
101
lib/vscode/.vscode/searches/TrustedTypes.code-search
vendored
Normal file
101
lib/vscode/.vscode/searches/TrustedTypes.code-search
vendored
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
# Query: .innerHTML =
|
||||||
|
# Flags: CaseSensitive WordMatch
|
||||||
|
# Including: src/vs/**/*.{t,j}s
|
||||||
|
# Excluding: *.test.ts, **/test/**
|
||||||
|
# ContextLines: 3
|
||||||
|
|
||||||
|
12 results - 9 files
|
||||||
|
|
||||||
|
src/vs/base/browser/dom.ts:
|
||||||
|
1359 );
|
||||||
|
1360
|
||||||
|
1361 const html = _ttpSafeInnerHtml?.createHTML(value, options) ?? insane(value, options);
|
||||||
|
1362: node.innerHTML = html as unknown as string;
|
||||||
|
1363 }
|
||||||
|
|
||||||
|
src/vs/base/browser/markdownRenderer.ts:
|
||||||
|
272 };
|
||||||
|
273
|
||||||
|
274 if (_ttpInsane) {
|
||||||
|
275: element.innerHTML = _ttpInsane.createHTML(renderedMarkdown, insaneOptions) as unknown as string;
|
||||||
|
276 } else {
|
||||||
|
277: element.innerHTML = insane(renderedMarkdown, insaneOptions);
|
||||||
|
278 }
|
||||||
|
279
|
||||||
|
280 // signal that async code blocks can be now be inserted
|
||||||
|
|
||||||
|
src/vs/editor/browser/core/markdownRenderer.ts:
|
||||||
|
88
|
||||||
|
89 const element = document.createElement('span');
|
||||||
|
90
|
||||||
|
91: element.innerHTML = MarkdownRenderer._ttpTokenizer
|
||||||
|
92 ? MarkdownRenderer._ttpTokenizer.createHTML(value, tokenization) as unknown as string
|
||||||
|
93 : tokenizeToString(value, tokenization);
|
||||||
|
94
|
||||||
|
|
||||||
|
src/vs/editor/browser/view/domLineBreaksComputer.ts:
|
||||||
|
107 allCharOffsets[i] = tmp[0];
|
||||||
|
108 allVisibleColumns[i] = tmp[1];
|
||||||
|
109 }
|
||||||
|
110: containerDomNode.innerHTML = sb.build();
|
||||||
|
111
|
||||||
|
112 containerDomNode.style.position = 'absolute';
|
||||||
|
113 containerDomNode.style.top = '10000';
|
||||||
|
|
||||||
|
src/vs/editor/browser/view/viewLayer.ts:
|
||||||
|
512 }
|
||||||
|
513 const lastChild = <HTMLElement>this.domNode.lastChild;
|
||||||
|
514 if (domNodeIsEmpty || !lastChild) {
|
||||||
|
515: this.domNode.innerHTML = newLinesHTML;
|
||||||
|
516 } else {
|
||||||
|
517 lastChild.insertAdjacentHTML('afterend', newLinesHTML);
|
||||||
|
518 }
|
||||||
|
|
||||||
|
533 if (ViewLayerRenderer._ttPolicy) {
|
||||||
|
534 invalidLinesHTML = ViewLayerRenderer._ttPolicy.createHTML(invalidLinesHTML) as unknown as string;
|
||||||
|
535 }
|
||||||
|
536: hugeDomNode.innerHTML = invalidLinesHTML;
|
||||||
|
537
|
||||||
|
538 for (let i = 0; i < ctx.linesLength; i++) {
|
||||||
|
539 const line = ctx.lines[i];
|
||||||
|
|
||||||
|
src/vs/editor/browser/widget/diffEditorWidget.ts:
|
||||||
|
2157
|
||||||
|
2158 let domNode = document.createElement('div');
|
||||||
|
2159 domNode.className = `view-lines line-delete ${MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`;
|
||||||
|
2160: domNode.innerHTML = sb.build();
|
||||||
|
2161 Configuration.applyFontInfoSlow(domNode, fontInfo);
|
||||||
|
2162
|
||||||
|
2163 let marginDomNode = document.createElement('div');
|
||||||
|
2164 marginDomNode.className = 'inline-deleted-margin-view-zone';
|
||||||
|
2165: marginDomNode.innerHTML = marginHTML.join('');
|
||||||
|
2166 Configuration.applyFontInfoSlow(marginDomNode, fontInfo);
|
||||||
|
2167
|
||||||
|
2168 return {
|
||||||
|
|
||||||
|
src/vs/editor/standalone/browser/colorizer.ts:
|
||||||
|
40 let text = domNode.firstChild ? domNode.firstChild.nodeValue : '';
|
||||||
|
41 domNode.className += ' ' + theme;
|
||||||
|
42 let render = (str: string) => {
|
||||||
|
43: domNode.innerHTML = str;
|
||||||
|
44 };
|
||||||
|
45 return this.colorize(modeService, text || '', mimeType, options).then(render, (err) => console.error(err));
|
||||||
|
46 }
|
||||||
|
|
||||||
|
src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts:
|
||||||
|
580 const element = DOM.$('div', { style });
|
||||||
|
581
|
||||||
|
582 const linesHtml = this.getRichTextLinesAsHtml(model, modelRange, colorMap);
|
||||||
|
583: element.innerHTML = linesHtml as unknown as string;
|
||||||
|
584 return element;
|
||||||
|
585 }
|
||||||
|
586
|
||||||
|
|
||||||
|
src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts:
|
||||||
|
375 addMouseoverListeners(outputNode, outputId);
|
||||||
|
376 const content = data.content;
|
||||||
|
377 if (content.type === RenderOutputType.Html) {
|
||||||
|
378: outputNode.innerHTML = content.htmlContent;
|
||||||
|
379 cellOutputContainer.appendChild(outputNode);
|
||||||
|
380 domEval(outputNode);
|
||||||
|
381 } else if (preloadErrs.some(e => !!e)) {
|
53
lib/vscode/.vscode/searches/ts36031.code-search
vendored
Normal file
53
lib/vscode/.vscode/searches/ts36031.code-search
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
# Query: \\w+\\?\\.\\w+![(.[]
|
||||||
|
# Flags: RegExp
|
||||||
|
# ContextLines: 2
|
||||||
|
|
||||||
|
8 results - 4 files
|
||||||
|
|
||||||
|
src/vs/base/browser/ui/tree/asyncDataTree.ts:
|
||||||
|
241 } : () => 'treeitem',
|
||||||
|
242 isChecked: options.accessibilityProvider!.isChecked ? (e) => {
|
||||||
|
243: return !!(options.accessibilityProvider?.isChecked!(e.element as T));
|
||||||
|
244 } : undefined,
|
||||||
|
245 getAriaLabel(e) {
|
||||||
|
|
||||||
|
src/vs/platform/list/browser/listService.ts:
|
||||||
|
463
|
||||||
|
464 if (typeof options?.openOnSingleClick !== 'boolean' && options?.configurationService) {
|
||||||
|
465: this.openOnSingleClick = options?.configurationService!.getValue(openModeSettingKey) !== 'doubleClick';
|
||||||
|
466 this._register(options?.configurationService.onDidChangeConfiguration(() => {
|
||||||
|
467: this.openOnSingleClick = options?.configurationService!.getValue(openModeSettingKey) !== 'doubleClick';
|
||||||
|
468 }));
|
||||||
|
469 } else {
|
||||||
|
|
||||||
|
src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts:
|
||||||
|
1526
|
||||||
|
1527 await this._ensureActiveKernel();
|
||||||
|
1528: await this._activeKernel?.cancelNotebookCell!(this._notebookViewModel!.uri, undefined);
|
||||||
|
1529 }
|
||||||
|
1530
|
||||||
|
|
||||||
|
1535
|
||||||
|
1536 await this._ensureActiveKernel();
|
||||||
|
1537: await this._activeKernel?.executeNotebookCell!(this._notebookViewModel!.uri, undefined);
|
||||||
|
1538 }
|
||||||
|
1539
|
||||||
|
|
||||||
|
1553
|
||||||
|
1554 await this._ensureActiveKernel();
|
||||||
|
1555: await this._activeKernel?.cancelNotebookCell!(this._notebookViewModel!.uri, cell.handle);
|
||||||
|
1556 }
|
||||||
|
1557
|
||||||
|
|
||||||
|
1567
|
||||||
|
1568 await this._ensureActiveKernel();
|
||||||
|
1569: await this._activeKernel?.executeNotebookCell!(this._notebookViewModel!.uri, cell.handle);
|
||||||
|
1570 }
|
||||||
|
1571
|
||||||
|
|
||||||
|
src/vs/workbench/contrib/webview/electron-browser/iframeWebviewElement.ts:
|
||||||
|
89 .then(() => this._resourceRequestManager.ensureReady())
|
||||||
|
90 .then(() => {
|
||||||
|
91: this.element?.contentWindow!.postMessage({ channel, args: data }, '*');
|
||||||
|
92 });
|
||||||
|
93 }
|
80
lib/vscode/.vscode/settings.json
vendored
Normal file
80
lib/vscode/.vscode/settings.json
vendored
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
{
|
||||||
|
"editor.insertSpaces": false,
|
||||||
|
"files.trimTrailingWhitespace": true,
|
||||||
|
"files.exclude": {
|
||||||
|
".git": true,
|
||||||
|
".build": true,
|
||||||
|
"**/.DS_Store": true,
|
||||||
|
"build/**/*.js": {
|
||||||
|
"when": "$(basename).ts"
|
||||||
|
},
|
||||||
|
"src/vs/server": false
|
||||||
|
},
|
||||||
|
"files.associations": {
|
||||||
|
"cglicenses.json": "jsonc"
|
||||||
|
},
|
||||||
|
"search.exclude": {
|
||||||
|
"**/node_modules": true,
|
||||||
|
"**/bower_components": true,
|
||||||
|
".build/**": true,
|
||||||
|
"out/**": true,
|
||||||
|
"out-build/**": true,
|
||||||
|
"out-vscode/**": true,
|
||||||
|
"i18n/**": true,
|
||||||
|
"extensions/**/out/**": true,
|
||||||
|
"test/smoke/out/**": true,
|
||||||
|
"test/automation/out/**": true,
|
||||||
|
"test/integration/browser/out/**": true,
|
||||||
|
"src/vs/base/test/node/uri.test.data.txt": true,
|
||||||
|
"src/vs/workbench/test/browser/api/extHostDocumentData.test.perf-data.ts": true,
|
||||||
|
"src/vs/server": false
|
||||||
|
},
|
||||||
|
"lcov.path": [
|
||||||
|
"./.build/coverage/lcov.info",
|
||||||
|
"./.build/coverage-single/lcov.info"
|
||||||
|
],
|
||||||
|
"lcov.watch": [
|
||||||
|
{
|
||||||
|
"pattern": "**/*.test.js",
|
||||||
|
"command": "${workspaceFolder}/scripts/test.sh --coverage --run ${file}",
|
||||||
|
"windows": {
|
||||||
|
"command": "${workspaceFolder}\\scripts\\test.bat --coverage --run ${file}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"eslint.options": {
|
||||||
|
"rulePaths": ["./build/lib/eslint"]
|
||||||
|
},
|
||||||
|
"typescript.tsdk": "node_modules/typescript/lib",
|
||||||
|
"npm.exclude": "**/extensions/**",
|
||||||
|
"npm.packageManager": "yarn",
|
||||||
|
"emmet.excludeLanguages": [],
|
||||||
|
"typescript.preferences.importModuleSpecifier": "non-relative",
|
||||||
|
"typescript.preferences.quoteStyle": "single",
|
||||||
|
"json.schemas": [
|
||||||
|
{
|
||||||
|
"fileMatch": ["cgmanifest.json"],
|
||||||
|
"url": "./.vscode/cgmanifest.schema.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileMatch": ["cglicenses.json"],
|
||||||
|
"url": "./.vscode/cglicenses.schema.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"git.ignoreLimitWarning": true,
|
||||||
|
"remote.extensionKind": {
|
||||||
|
"msjsdiag.debugger-for-chrome": "workspace"
|
||||||
|
},
|
||||||
|
"gulp.autoDetect": "off",
|
||||||
|
"files.insertFinalNewline": true,
|
||||||
|
"[plaintext]": {
|
||||||
|
"files.insertFinalNewline": false,
|
||||||
|
},
|
||||||
|
"[typescript]": {
|
||||||
|
"editor.defaultFormatter": "vscode.typescript-language-features"
|
||||||
|
},
|
||||||
|
"[javascript]": {
|
||||||
|
"editor.defaultFormatter": "vscode.typescript-language-features"
|
||||||
|
},
|
||||||
|
"typescript.tsc.autoDetect": "off"
|
||||||
|
}
|
40
lib/vscode/.vscode/shared.code-snippets
vendored
Normal file
40
lib/vscode/.vscode/shared.code-snippets
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
// Each snippet is defined under a snippet name and has a scope, prefix, body and
|
||||||
|
// description. The scope defines in watch languages the snippet is applicable. The prefix is what is
|
||||||
|
// used to trigger the snippet and the body will be expanded and inserted.Possible variables are:
|
||||||
|
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
|
||||||
|
// Placeholders with the same ids are connected.
|
||||||
|
// Example:
|
||||||
|
"MSFT Copyright Header": {
|
||||||
|
"scope": "javascript,typescript,css",
|
||||||
|
"prefix": [
|
||||||
|
"header",
|
||||||
|
"stub",
|
||||||
|
"copyright"
|
||||||
|
],
|
||||||
|
"body": [
|
||||||
|
"/*---------------------------------------------------------------------------------------------",
|
||||||
|
" * Copyright (c) Microsoft Corporation. All rights reserved.",
|
||||||
|
" * Licensed under the MIT License. See License.txt in the project root for license information.",
|
||||||
|
" *--------------------------------------------------------------------------------------------*/",
|
||||||
|
"",
|
||||||
|
"$0"
|
||||||
|
],
|
||||||
|
"description": "Insert Copyright Statement"
|
||||||
|
},
|
||||||
|
"TS -> Inject Service": {
|
||||||
|
"scope": "typescript",
|
||||||
|
"description": "Constructor Injection Pattern",
|
||||||
|
"prefix": "@inject",
|
||||||
|
"body": "@$1 private readonly _$2: ${1},$0"
|
||||||
|
},
|
||||||
|
"TS -> Event & Emitter": {
|
||||||
|
"scope": "typescript",
|
||||||
|
"prefix": "emitter",
|
||||||
|
"description": "Add emitter and event properties",
|
||||||
|
"body": [
|
||||||
|
"private readonly _onDid$1 = new Emitter<$2>();",
|
||||||
|
"readonly onDid$1: Event<$2> = this._onDid$1.event;"
|
||||||
|
],
|
||||||
|
}
|
||||||
|
}
|
213
lib/vscode/.vscode/tasks.json
vendored
Normal file
213
lib/vscode/.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,213 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "watch-clientd",
|
||||||
|
"label": "Build VS Code Core",
|
||||||
|
"isBackground": true,
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "never"
|
||||||
|
},
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "typescript",
|
||||||
|
"applyTo": "closedDocuments",
|
||||||
|
"fileLocation": [
|
||||||
|
"absolute"
|
||||||
|
],
|
||||||
|
"pattern": {
|
||||||
|
"regexp": "Error: ([^(]+)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\): (.*)$",
|
||||||
|
"file": 1,
|
||||||
|
"location": 2,
|
||||||
|
"message": 3
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"beginsPattern": "Starting compilation",
|
||||||
|
"endsPattern": "Finished compilation"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "watch-extensionsd",
|
||||||
|
"label": "Build VS Code Extensions",
|
||||||
|
"isBackground": true,
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "never"
|
||||||
|
},
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "typescript",
|
||||||
|
"applyTo": "closedDocuments",
|
||||||
|
"fileLocation": [
|
||||||
|
"absolute"
|
||||||
|
],
|
||||||
|
"pattern": {
|
||||||
|
"regexp": "Error: ([^(]+)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\): (.*)$",
|
||||||
|
"file": 1,
|
||||||
|
"location": 2,
|
||||||
|
"message": 3
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"beginsPattern": "Starting compilation",
|
||||||
|
"endsPattern": "Finished compilation"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build VS Code",
|
||||||
|
"dependsOn": [
|
||||||
|
"Build VS Code Core",
|
||||||
|
"Build VS Code Extensions"
|
||||||
|
],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "kill-watch-clientd",
|
||||||
|
"label": "Kill Build VS Code Core",
|
||||||
|
"group": "build",
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "never"
|
||||||
|
},
|
||||||
|
"problemMatcher": "$tsc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "kill-watch-extensionsd",
|
||||||
|
"label": "Kill Build VS Code Extensions",
|
||||||
|
"group": "build",
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "never"
|
||||||
|
},
|
||||||
|
"problemMatcher": "$tsc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Kill Build VS Code",
|
||||||
|
"dependsOn": [
|
||||||
|
"Kill Build VS Code Core",
|
||||||
|
"Kill Build VS Code Extensions"
|
||||||
|
],
|
||||||
|
"group": "build"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "watch-webd",
|
||||||
|
"label": "Build Web Extensions",
|
||||||
|
"group": "build",
|
||||||
|
"isBackground": true,
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "never"
|
||||||
|
},
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "typescript",
|
||||||
|
"applyTo": "closedDocuments",
|
||||||
|
"fileLocation": [
|
||||||
|
"absolute"
|
||||||
|
],
|
||||||
|
"pattern": {
|
||||||
|
"regexp": "Error: ([^(]+)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\): (.*)$",
|
||||||
|
"file": 1,
|
||||||
|
"location": 2,
|
||||||
|
"message": 3
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"beginsPattern": "Starting compilation",
|
||||||
|
"endsPattern": "Finished compilation"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "kill-watch-webd",
|
||||||
|
"label": "Kill Build Web Extensions",
|
||||||
|
"group": "build",
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "never"
|
||||||
|
},
|
||||||
|
"problemMatcher": "$tsc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Run tests",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "./scripts/test.sh",
|
||||||
|
"windows": {
|
||||||
|
"command": ".\\scripts\\test.bat"
|
||||||
|
},
|
||||||
|
"group": "test",
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Run Dev",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "./scripts/code.sh",
|
||||||
|
"windows": {
|
||||||
|
"command": ".\\scripts\\code.bat"
|
||||||
|
},
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "electron",
|
||||||
|
"label": "Download electron"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "gulp",
|
||||||
|
"task": "hygiene",
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"command": "yarn web --no-launch",
|
||||||
|
"label": "Run web",
|
||||||
|
"isBackground": true,
|
||||||
|
"problemMatcher": {
|
||||||
|
"pattern": {
|
||||||
|
"regexp": ""
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"beginsPattern": ".*node .*",
|
||||||
|
"endsPattern": "Web UI available at .*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "never"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "eslint",
|
||||||
|
"problemMatcher": {
|
||||||
|
"source": "eslint",
|
||||||
|
"base": "$eslint-stylish"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"command": "node build/lib/preLaunch.js",
|
||||||
|
"label": "Ensure Prelaunch Dependencies",
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "silent"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "tsec-compile-check",
|
||||||
|
"problemMatcher": [
|
||||||
|
{
|
||||||
|
"base": "$tsc",
|
||||||
|
"applyTo": "allDocuments",
|
||||||
|
"owner": "tsec"
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"group": "build",
|
||||||
|
"label": "npm: tsec-compile-check",
|
||||||
|
"detail": "node_modules/tsec/bin/tsec -p src/tsconfig.json --noEmit"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
3
lib/vscode/.yarnrc
Normal file
3
lib/vscode/.yarnrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
disturl "https://electronjs.org/headers"
|
||||||
|
target "9.3.3"
|
||||||
|
runtime "electron"
|
105
lib/vscode/CONTRIBUTING.md
Normal file
105
lib/vscode/CONTRIBUTING.md
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
# Contributing to VS Code
|
||||||
|
|
||||||
|
Welcome, and thank you for your interest in contributing to VS Code!
|
||||||
|
|
||||||
|
There are many ways in which you can contribute, beyond writing code. The goal of this document is to provide a high-level overview of how you can get involved.
|
||||||
|
|
||||||
|
## Asking Questions
|
||||||
|
|
||||||
|
Have a question? Rather than opening an issue, please ask away on [Stack Overflow](https://stackoverflow.com/questions/tagged/vscode) using the tag `vscode`.
|
||||||
|
|
||||||
|
The active community will be eager to assist you. Your well-worded question will serve as a resource to others searching for help.
|
||||||
|
|
||||||
|
## Providing Feedback
|
||||||
|
|
||||||
|
Your comments and feedback are welcome, and the development team is available via a handful of different channels.
|
||||||
|
|
||||||
|
See the [Feedback Channels](https://github.com/microsoft/vscode/wiki/Feedback-Channels) wiki page for details on how to share your thoughts.
|
||||||
|
|
||||||
|
## Reporting Issues
|
||||||
|
|
||||||
|
Have you identified a reproducible problem in VS Code? Have a feature request? We want to hear about it! Here's how you can make reporting your issue as effective as possible.
|
||||||
|
|
||||||
|
### Identify Where to Report
|
||||||
|
|
||||||
|
The VS Code project is distributed across multiple repositories. Try to file the issue against the correct repository. Check the list of [Related Projects](https://github.com/microsoft/vscode/wiki/Related-Projects) if you aren't sure which repo is correct.
|
||||||
|
|
||||||
|
Can you recreate the issue even after [disabling all extensions](https://code.visualstudio.com/docs/editor/extension-gallery#_disable-an-extension)? If you find the issue is caused by an extension you have installed, please file an issue on the extension's repo directly.
|
||||||
|
|
||||||
|
### Look For an Existing Issue
|
||||||
|
|
||||||
|
Before you create a new issue, please do a search in [open issues](https://github.com/microsoft/vscode/issues) to see if the issue or feature request has already been filed.
|
||||||
|
|
||||||
|
Be sure to scan through the [most popular](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc) feature requests.
|
||||||
|
|
||||||
|
If you find your issue already exists, make relevant comments and add your [reaction](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments). Use a reaction in place of a "+1" comment:
|
||||||
|
|
||||||
|
* 👍 - upvote
|
||||||
|
* 👎 - downvote
|
||||||
|
|
||||||
|
If you cannot find an existing issue that describes your bug or feature, create a new issue using the guidelines below.
|
||||||
|
|
||||||
|
### Writing Good Bug Reports and Feature Requests
|
||||||
|
|
||||||
|
File a single issue per problem and feature request. Do not enumerate multiple bugs or feature requests in the same issue.
|
||||||
|
|
||||||
|
Do not add your issue as a comment to an existing issue unless it's for the identical input. Many issues look similar, but have different causes.
|
||||||
|
|
||||||
|
The more information you can provide, the more likely someone will be successful at reproducing the issue and finding a fix.
|
||||||
|
|
||||||
|
The built-in tool for reporting an issue, which you can access by using `Report Issue` in VS Code's Help menu, can help streamline this process by automatically providing the version of VS Code, all your installed extensions, and your system info. Additionally, the tool will search among existing issues to see if a similar issue already exists.
|
||||||
|
|
||||||
|
Please include the following with each issue:
|
||||||
|
|
||||||
|
* Version of VS Code
|
||||||
|
|
||||||
|
* Your operating system
|
||||||
|
|
||||||
|
* List of extensions that you have installed
|
||||||
|
|
||||||
|
* Reproducible steps (1... 2... 3...) that cause the issue
|
||||||
|
|
||||||
|
* What you expected to see, versus what you actually saw
|
||||||
|
|
||||||
|
* Images, animations, or a link to a video showing the issue occurring
|
||||||
|
|
||||||
|
* A code snippet that demonstrates the issue or a link to a code repository the developers can easily pull down to recreate the issue locally
|
||||||
|
|
||||||
|
* **Note:** Because the developers need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.
|
||||||
|
|
||||||
|
* Errors from the Dev Tools Console (open from the menu: Help > Toggle Developer Tools)
|
||||||
|
|
||||||
|
### Final Checklist
|
||||||
|
|
||||||
|
Please remember to do the following:
|
||||||
|
|
||||||
|
* [ ] Search the issue repository to ensure your report is a new issue
|
||||||
|
|
||||||
|
* [ ] Recreate the issue after disabling all extensions
|
||||||
|
|
||||||
|
* [ ] Simplify your code around the issue to better isolate the problem
|
||||||
|
|
||||||
|
Don't feel bad if the developers can't reproduce the issue right away. They will simply ask for more information!
|
||||||
|
|
||||||
|
### Follow Your Issue
|
||||||
|
|
||||||
|
Once submitted, your report will go into the [issue tracking](https://github.com/microsoft/vscode/wiki/Issue-Tracking) workflow. Be sure to understand what will happen next, so you know what to expect, and how to continue to assist throughout the process.
|
||||||
|
|
||||||
|
## Automated Issue Management
|
||||||
|
|
||||||
|
We use GitHub Actions to help us manage issues. These Actions and their descriptions can be [viewed here](https://github.com/microsoft/vscode-github-triage-actions). Some examples of what these Actions do are:
|
||||||
|
|
||||||
|
* Automatically closes any issue marked `needs-more-info` if there has been no response in the past 7 days.
|
||||||
|
* Automatically lock issues 45 days after they are closed.
|
||||||
|
* Automatically implement the VS Code [feature request pipeline](https://github.com/microsoft/vscode/wiki/Issues-Triaging#managing-feature-requests).
|
||||||
|
|
||||||
|
If you believe the bot got something wrong, please open a new issue and let us know.
|
||||||
|
|
||||||
|
## Contributing Fixes
|
||||||
|
|
||||||
|
If you are interested in writing code to fix issues,
|
||||||
|
please see [How to Contribute](https://github.com/microsoft/vscode/wiki/How-to-Contribute) in the wiki.
|
||||||
|
|
||||||
|
# Thank You!
|
||||||
|
|
||||||
|
Your contributions to open source, large or small, make great projects like this possible. Thank you for taking the time to contribute.
|
21
lib/vscode/LICENSE.txt
Normal file
21
lib/vscode/LICENSE.txt
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2015 - present Microsoft Corporation
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
76
lib/vscode/README.md
Normal file
76
lib/vscode/README.md
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
# Visual Studio Code - Open Source ("Code - OSS")
|
||||||
|
[![Build Status](https://dev.azure.com/vscode/VSCode/_apis/build/status/VS%20Code?branchName=master)](https://aka.ms/vscode-builds)
|
||||||
|
[![Feature Requests](https://img.shields.io/github/issues/microsoft/vscode/feature-request.svg)](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc)
|
||||||
|
[![Bugs](https://img.shields.io/github/issues/microsoft/vscode/bug.svg)](https://github.com/microsoft/vscode/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3Abug)
|
||||||
|
[![Gitter](https://img.shields.io/badge/chat-on%20gitter-yellow.svg)](https://gitter.im/Microsoft/vscode)
|
||||||
|
|
||||||
|
## The Repository
|
||||||
|
|
||||||
|
This repository ("`Code - OSS`") is where we (Microsoft) develop the [Visual Studio Code](https://code.visualstudio.com) product. Not only do we work on code and issues here, we also publish our [roadmap](https://github.com/microsoft/vscode/wiki/Roadmap), [monthly iteration plans](https://github.com/microsoft/vscode/wiki/Iteration-Plans), and our [endgame plans](https://github.com/microsoft/vscode/wiki/Running-the-Endgame). This source code is available to everyone under the standard [MIT license](https://github.com/microsoft/vscode/blob/master/LICENSE.txt).
|
||||||
|
|
||||||
|
## Visual Studio Code
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img alt="VS Code in action" src="https://user-images.githubusercontent.com/1487073/58344409-70473b80-7e0a-11e9-8570-b2efc6f8fa44.png">
|
||||||
|
</p>
|
||||||
|
|
||||||
|
[Visual Studio Code](https://code.visualstudio.com) is a distribution of the `Code - OSS` repository with Microsoft specific customizations released under a traditional [Microsoft product license](https://code.visualstudio.com/License/).
|
||||||
|
|
||||||
|
[Visual Studio Code](https://code.visualstudio.com) combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle. It provides comprehensive code editing, navigation, and understanding support along with lightweight debugging, a rich extensibility model, and lightweight integration with existing tools.
|
||||||
|
|
||||||
|
Visual Studio Code is updated monthly with new features and bug fixes. You can download it for Windows, macOS, and Linux on [Visual Studio Code's website](https://code.visualstudio.com/Download). To get the latest releases every day, install the [Insiders build](https://code.visualstudio.com/insiders).
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
There are many ways in which you can participate in the project, for example:
|
||||||
|
|
||||||
|
* [Submit bugs and feature requests](https://github.com/microsoft/vscode/issues), and help us verify as they are checked in
|
||||||
|
* Review [source code changes](https://github.com/microsoft/vscode/pulls)
|
||||||
|
* Review the [documentation](https://github.com/microsoft/vscode-docs) and make pull requests for anything from typos to new content
|
||||||
|
|
||||||
|
If you are interested in fixing issues and contributing directly to the code base,
|
||||||
|
please see the document [How to Contribute](https://github.com/microsoft/vscode/wiki/How-to-Contribute), which covers the following:
|
||||||
|
|
||||||
|
* [How to build and run from source](https://github.com/microsoft/vscode/wiki/How-to-Contribute#build-and-run)
|
||||||
|
* [The development workflow, including debugging and running tests](https://github.com/microsoft/vscode/wiki/How-to-Contribute#debugging)
|
||||||
|
* [Coding guidelines](https://github.com/microsoft/vscode/wiki/Coding-Guidelines)
|
||||||
|
* [Submitting pull requests](https://github.com/microsoft/vscode/wiki/How-to-Contribute#pull-requests)
|
||||||
|
* [Finding an issue to work on](https://github.com/microsoft/vscode/wiki/How-to-Contribute#where-to-contribute)
|
||||||
|
* [Contributing to translations](https://aka.ms/vscodeloc)
|
||||||
|
|
||||||
|
## Feedback
|
||||||
|
|
||||||
|
* Ask a question on [Stack Overflow](https://stackoverflow.com/questions/tagged/vscode)
|
||||||
|
* [Request a new feature](CONTRIBUTING.md)
|
||||||
|
* Upvote [popular feature requests](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc)
|
||||||
|
* [File an issue](https://github.com/microsoft/vscode/issues)
|
||||||
|
* Follow [@code](https://twitter.com/code) and let us know what you think!
|
||||||
|
|
||||||
|
See our [wiki](https://github.com/microsoft/vscode/wiki/Feedback-Channels) for a description of each of these channels and information on some other available community-driven channels.
|
||||||
|
|
||||||
|
## Related Projects
|
||||||
|
|
||||||
|
Many of the core components and extensions to VS Code live in their own repositories on GitHub. For example, the [node debug adapter](https://github.com/microsoft/vscode-node-debug) and the [mono debug adapter](https://github.com/microsoft/vscode-mono-debug) have their own repositories. For a complete list, please visit the [Related Projects](https://github.com/microsoft/vscode/wiki/Related-Projects) page on our [wiki](https://github.com/microsoft/vscode/wiki).
|
||||||
|
|
||||||
|
## Bundled Extensions
|
||||||
|
|
||||||
|
VS Code includes a set of built-in extensions located in the [extensions](extensions) folder, including grammars and snippets for many languages. Extensions that provide rich language support (code completion, Go to Definition) for a language have the suffix `language-features`. For example, the `json` extension provides coloring for `JSON` and the `json-language-features` provides rich language support for `JSON`.
|
||||||
|
|
||||||
|
## Development Container
|
||||||
|
|
||||||
|
This repository includes a Visual Studio Code Remote - Containers / Codespaces development container.
|
||||||
|
|
||||||
|
- For [Remote - Containers](https://aka.ms/vscode-remote/download/containers), use the **Remote-Containers: Open Repository in Container...** command which creates a Docker volume for better disk I/O on macOS and Windows.
|
||||||
|
- For Codespaces, install the [Visual Studio Codespaces](https://aka.ms/vscs-ext-vscode) extension in VS Code, and use the **Codespaces: Create New Codespace** command.
|
||||||
|
|
||||||
|
Docker / the Codespace should have at least **4 Cores and 6 GB of RAM (8 GB recommended)** to run full build. See the [development container README](.devcontainer/README.md) for more information.
|
||||||
|
|
||||||
|
## Code of Conduct
|
||||||
|
|
||||||
|
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
|
||||||
|
Licensed under the [MIT](LICENSE.txt) license.
|
2782
lib/vscode/ThirdPartyNotices.txt
Normal file
2782
lib/vscode/ThirdPartyNotices.txt
Normal file
File diff suppressed because it is too large
Load Diff
18
lib/vscode/azure-pipelines.yml
Normal file
18
lib/vscode/azure-pipelines.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
jobs:
|
||||||
|
- job: Windows
|
||||||
|
pool:
|
||||||
|
vmImage: VS2017-Win2016
|
||||||
|
steps:
|
||||||
|
- template: build/azure-pipelines/win32/continuous-build-win32.yml
|
||||||
|
|
||||||
|
- job: Linux
|
||||||
|
pool:
|
||||||
|
vmImage: 'Ubuntu-16.04'
|
||||||
|
steps:
|
||||||
|
- template: build/azure-pipelines/linux/continuous-build-linux.yml
|
||||||
|
|
||||||
|
- job: macOS
|
||||||
|
pool:
|
||||||
|
vmImage: macOS-latest
|
||||||
|
steps:
|
||||||
|
- template: build/azure-pipelines/darwin/continuous-build-darwin.yml
|
1
lib/vscode/build/.cachesalt
Normal file
1
lib/vscode/build/.cachesalt
Normal file
@ -0,0 +1 @@
|
|||||||
|
2020-10-05T20:24:23.714Z
|
3
lib/vscode/build/.gitattributes
vendored
Normal file
3
lib/vscode/build/.gitattributes
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
* text eol=lf
|
||||||
|
*.exe binary
|
||||||
|
*.dll binary
|
3
lib/vscode/build/.gitignore
vendored
Normal file
3
lib/vscode/build/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
azure-pipelines/**/*.js
|
||||||
|
darwin/**/*.js
|
||||||
|
lib/**/*.js
|
38
lib/vscode/build/.moduleignore
Normal file
38
lib/vscode/build/.moduleignore
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
|
||||||
|
# additional cleanup rules for node modules, .gitignore style
|
||||||
|
|
||||||
|
**/docs/**
|
||||||
|
**/example/**
|
||||||
|
**/examples/**
|
||||||
|
**/test/**
|
||||||
|
**/tests/**
|
||||||
|
|
||||||
|
**/History.md
|
||||||
|
**/CHANGELOG.md
|
||||||
|
**/README.md
|
||||||
|
**/readme.md
|
||||||
|
**/readme.markdown
|
||||||
|
|
||||||
|
**/*.ts
|
||||||
|
!typescript/**/*.d.ts
|
||||||
|
|
||||||
|
jschardet/dist/**
|
||||||
|
|
||||||
|
es6-promise/lib/**
|
||||||
|
|
||||||
|
vscode-textmate/webpack.config.js
|
||||||
|
|
||||||
|
zone.js/dist/**
|
||||||
|
!zone.js/dist/zone-node.js
|
||||||
|
|
||||||
|
# https://github.com/xtermjs/xterm.js/issues/3137
|
||||||
|
xterm/src/**
|
||||||
|
xterm/tsconfig.all.json
|
||||||
|
|
||||||
|
# https://github.com/xtermjs/xterm.js/issues/3138
|
||||||
|
xterm-addon-*/src/**
|
||||||
|
xterm-addon-*/fixtures/**
|
||||||
|
xterm-addon-*/out/**
|
||||||
|
xterm-addon-*/out-test/**
|
||||||
|
|
||||||
|
|
102
lib/vscode/build/.nativeignore
Normal file
102
lib/vscode/build/.nativeignore
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
# cleanup rules for native node modules, .gitignore style
|
||||||
|
|
||||||
|
nan/**
|
||||||
|
*/node_modules/nan/**
|
||||||
|
|
||||||
|
fsevents/binding.gyp
|
||||||
|
fsevents/fsevents.cc
|
||||||
|
fsevents/build/**
|
||||||
|
fsevents/src/**
|
||||||
|
fsevents/test/**
|
||||||
|
!fsevents/**/*.node
|
||||||
|
|
||||||
|
vscode-sqlite3/binding.gyp
|
||||||
|
vscode-sqlite3/benchmark/**
|
||||||
|
vscode-sqlite3/cloudformation/**
|
||||||
|
vscode-sqlite3/deps/**
|
||||||
|
vscode-sqlite3/test/**
|
||||||
|
vscode-sqlite3/build/**
|
||||||
|
vscode-sqlite3/src/**
|
||||||
|
!vscode-sqlite3/build/Release/*.node
|
||||||
|
|
||||||
|
windows-mutex/binding.gyp
|
||||||
|
windows-mutex/build/**
|
||||||
|
windows-mutex/src/**
|
||||||
|
!windows-mutex/**/*.node
|
||||||
|
|
||||||
|
native-keymap/binding.gyp
|
||||||
|
native-keymap/build/**
|
||||||
|
native-keymap/src/**
|
||||||
|
native-keymap/deps/**
|
||||||
|
!native-keymap/build/Release/*.node
|
||||||
|
|
||||||
|
native-is-elevated/binding.gyp
|
||||||
|
native-is-elevated/build/**
|
||||||
|
native-is-elevated/src/**
|
||||||
|
native-is-elevated/deps/**
|
||||||
|
!native-is-elevated/build/Release/*.node
|
||||||
|
|
||||||
|
native-watchdog/binding.gyp
|
||||||
|
native-watchdog/build/**
|
||||||
|
native-watchdog/src/**
|
||||||
|
!native-watchdog/build/Release/*.node
|
||||||
|
|
||||||
|
spdlog/binding.gyp
|
||||||
|
spdlog/build/**
|
||||||
|
spdlog/deps/**
|
||||||
|
spdlog/src/**
|
||||||
|
spdlog/test/**
|
||||||
|
spdlog/*.yml
|
||||||
|
!spdlog/build/Release/*.node
|
||||||
|
|
||||||
|
jschardet/dist/**
|
||||||
|
|
||||||
|
windows-foreground-love/binding.gyp
|
||||||
|
windows-foreground-love/build/**
|
||||||
|
windows-foreground-love/src/**
|
||||||
|
!windows-foreground-love/**/*.node
|
||||||
|
|
||||||
|
windows-process-tree/binding.gyp
|
||||||
|
windows-process-tree/build/**
|
||||||
|
windows-process-tree/src/**
|
||||||
|
!windows-process-tree/**/*.node
|
||||||
|
|
||||||
|
keytar/binding.gyp
|
||||||
|
keytar/build/**
|
||||||
|
keytar/src/**
|
||||||
|
keytar/script/**
|
||||||
|
keytar/node_modules/**
|
||||||
|
!keytar/**/*.node
|
||||||
|
|
||||||
|
node-pty/binding.gyp
|
||||||
|
node-pty/build/**
|
||||||
|
node-pty/src/**
|
||||||
|
node-pty/tools/**
|
||||||
|
node-pty/deps/**
|
||||||
|
node-pty/scripts/**
|
||||||
|
!node-pty/build/Release/*.exe
|
||||||
|
!node-pty/build/Release/*.dll
|
||||||
|
!node-pty/build/Release/*.node
|
||||||
|
|
||||||
|
vscode-nsfw/binding.gyp
|
||||||
|
vscode-nsfw/build/**
|
||||||
|
vscode-nsfw/src/**
|
||||||
|
vscode-nsfw/openpa/**
|
||||||
|
vscode-nsfw/includes/**
|
||||||
|
!vscode-nsfw/build/Release/*.node
|
||||||
|
!vscode-nsfw/**/*.a
|
||||||
|
|
||||||
|
vsda/build/**
|
||||||
|
vsda/ci/**
|
||||||
|
vsda/src/**
|
||||||
|
vsda/.gitignore
|
||||||
|
vsda/binding.gyp
|
||||||
|
vsda/README.md
|
||||||
|
vsda/targets
|
||||||
|
!vsda/build/Release/vsda.node
|
||||||
|
|
||||||
|
vscode-windows-ca-certs/**/*
|
||||||
|
!vscode-windows-ca-certs/package.json
|
||||||
|
!vscode-windows-ca-certs/**/*.node
|
||||||
|
|
||||||
|
node-addon-api/**/*
|
31
lib/vscode/build/.webignore
Normal file
31
lib/vscode/build/.webignore
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# cleanup rules for web node modules, .gitignore style
|
||||||
|
|
||||||
|
**/*.txt
|
||||||
|
**/*.json
|
||||||
|
**/*.md
|
||||||
|
**/*.d.ts
|
||||||
|
**/*.js.map
|
||||||
|
**/LICENSE
|
||||||
|
**/CONTRIBUTORS
|
||||||
|
|
||||||
|
**/docs/**
|
||||||
|
**/example/**
|
||||||
|
**/examples/**
|
||||||
|
|
||||||
|
jschardet/index.js
|
||||||
|
jschardet/src/**
|
||||||
|
jschardet/dist/jschardet.js
|
||||||
|
|
||||||
|
vscode-textmate/webpack.config.js
|
||||||
|
|
||||||
|
xterm/src/**
|
||||||
|
|
||||||
|
xterm-addon-search/src/**
|
||||||
|
xterm-addon-search/out/**
|
||||||
|
xterm-addon-search/fixtures/**
|
||||||
|
|
||||||
|
xterm-addon-unicode11/src/**
|
||||||
|
xterm-addon-unicode11/out/**
|
||||||
|
|
||||||
|
xterm-addon-webgl/src/**
|
||||||
|
xterm-addon-webgl/out/**
|
2
lib/vscode/build/azure-pipelines/common/.gitignore
vendored
Normal file
2
lib/vscode/build/azure-pipelines/common/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
node_modules/
|
||||||
|
*.js
|
133
lib/vscode/build/azure-pipelines/common/createAsset.ts
Normal file
133
lib/vscode/build/azure-pipelines/common/createAsset.ts
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
import * as fs from 'fs';
|
||||||
|
import { Readable } from 'stream';
|
||||||
|
import * as crypto from 'crypto';
|
||||||
|
import * as azure from 'azure-storage';
|
||||||
|
import * as mime from 'mime';
|
||||||
|
import { CosmosClient } from '@azure/cosmos';
|
||||||
|
|
||||||
|
interface Asset {
|
||||||
|
platform: string;
|
||||||
|
type: string;
|
||||||
|
url: string;
|
||||||
|
mooncakeUrl?: string;
|
||||||
|
hash: string;
|
||||||
|
sha256hash: string;
|
||||||
|
size: number;
|
||||||
|
supportsFastUpdate?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (process.argv.length !== 6) {
|
||||||
|
console.error('Usage: node createAsset.js PLATFORM TYPE NAME FILE');
|
||||||
|
process.exit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function hashStream(hashName: string, stream: Readable): Promise<string> {
|
||||||
|
return new Promise<string>((c, e) => {
|
||||||
|
const shasum = crypto.createHash(hashName);
|
||||||
|
|
||||||
|
stream
|
||||||
|
.on('data', shasum.update.bind(shasum))
|
||||||
|
.on('error', e)
|
||||||
|
.on('close', () => c(shasum.digest('hex')));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async function doesAssetExist(blobService: azure.BlobService, quality: string, blobName: string): Promise<boolean | undefined> {
|
||||||
|
const existsResult = await new Promise<azure.BlobService.BlobResult>((c, e) => blobService.doesBlobExist(quality, blobName, (err, r) => err ? e(err) : c(r)));
|
||||||
|
return existsResult.exists;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function uploadBlob(blobService: azure.BlobService, quality: string, blobName: string, filePath: string, fileName: string): Promise<void> {
|
||||||
|
const blobOptions: azure.BlobService.CreateBlockBlobRequestOptions = {
|
||||||
|
contentSettings: {
|
||||||
|
contentType: mime.lookup(filePath),
|
||||||
|
contentDisposition: `attachment; filename="${fileName}"`,
|
||||||
|
cacheControl: 'max-age=31536000, public'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
await new Promise<void>((c, e) => blobService.createBlockBlobFromLocalFile(quality, blobName, filePath, blobOptions, err => err ? e(err) : c()));
|
||||||
|
}
|
||||||
|
|
||||||
|
function getEnv(name: string): string {
|
||||||
|
const result = process.env[name];
|
||||||
|
|
||||||
|
if (typeof result === 'undefined') {
|
||||||
|
throw new Error('Missing env: ' + name);
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function main(): Promise<void> {
|
||||||
|
const [, , platform, type, fileName, filePath] = process.argv;
|
||||||
|
const quality = getEnv('VSCODE_QUALITY');
|
||||||
|
const commit = getEnv('BUILD_SOURCEVERSION');
|
||||||
|
|
||||||
|
console.log('Creating asset...');
|
||||||
|
|
||||||
|
const stat = await new Promise<fs.Stats>((c, e) => fs.stat(filePath, (err, stat) => err ? e(err) : c(stat)));
|
||||||
|
const size = stat.size;
|
||||||
|
|
||||||
|
console.log('Size:', size);
|
||||||
|
|
||||||
|
const stream = fs.createReadStream(filePath);
|
||||||
|
const [sha1hash, sha256hash] = await Promise.all([hashStream('sha1', stream), hashStream('sha256', stream)]);
|
||||||
|
|
||||||
|
console.log('SHA1:', sha1hash);
|
||||||
|
console.log('SHA256:', sha256hash);
|
||||||
|
|
||||||
|
const blobName = commit + '/' + fileName;
|
||||||
|
const storageAccount = process.env['AZURE_STORAGE_ACCOUNT_2']!;
|
||||||
|
|
||||||
|
const blobService = azure.createBlobService(storageAccount, process.env['AZURE_STORAGE_ACCESS_KEY_2']!)
|
||||||
|
.withFilter(new azure.ExponentialRetryPolicyFilter(20));
|
||||||
|
|
||||||
|
const blobExists = await doesAssetExist(blobService, quality, blobName);
|
||||||
|
|
||||||
|
if (blobExists) {
|
||||||
|
console.log(`Blob ${quality}, ${blobName} already exists, not publishing again.`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('Uploading blobs to Azure storage...');
|
||||||
|
|
||||||
|
await uploadBlob(blobService, quality, blobName, filePath, fileName);
|
||||||
|
|
||||||
|
console.log('Blobs successfully uploaded.');
|
||||||
|
|
||||||
|
const asset: Asset = {
|
||||||
|
platform,
|
||||||
|
type,
|
||||||
|
url: `${process.env['AZURE_CDN_URL']}/${quality}/${blobName}`,
|
||||||
|
hash: sha1hash,
|
||||||
|
sha256hash,
|
||||||
|
size
|
||||||
|
};
|
||||||
|
|
||||||
|
// Remove this if we ever need to rollback fast updates for windows
|
||||||
|
if (/win32/.test(platform)) {
|
||||||
|
asset.supportsFastUpdate = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('Asset:', JSON.stringify(asset, null, ' '));
|
||||||
|
|
||||||
|
const client = new CosmosClient({ endpoint: process.env['AZURE_DOCUMENTDB_ENDPOINT']!, key: process.env['AZURE_DOCUMENTDB_MASTERKEY'] });
|
||||||
|
const scripts = client.database('builds').container(quality).scripts;
|
||||||
|
await scripts.storedProcedure('createAsset').execute('', [commit, asset, true]);
|
||||||
|
}
|
||||||
|
|
||||||
|
main().then(() => {
|
||||||
|
console.log('Asset successfully created');
|
||||||
|
process.exit(0);
|
||||||
|
}, err => {
|
||||||
|
console.error(err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
60
lib/vscode/build/azure-pipelines/common/createBuild.ts
Normal file
60
lib/vscode/build/azure-pipelines/common/createBuild.ts
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
import { CosmosClient } from '@azure/cosmos';
|
||||||
|
|
||||||
|
if (process.argv.length !== 3) {
|
||||||
|
console.error('Usage: node createBuild.js VERSION');
|
||||||
|
process.exit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getEnv(name: string): string {
|
||||||
|
const result = process.env[name];
|
||||||
|
|
||||||
|
if (typeof result === 'undefined') {
|
||||||
|
throw new Error('Missing env: ' + name);
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function main(): Promise<void> {
|
||||||
|
const [, , _version] = process.argv;
|
||||||
|
const quality = getEnv('VSCODE_QUALITY');
|
||||||
|
const commit = getEnv('BUILD_SOURCEVERSION');
|
||||||
|
const queuedBy = getEnv('BUILD_QUEUEDBY');
|
||||||
|
const sourceBranch = getEnv('BUILD_SOURCEBRANCH');
|
||||||
|
const version = _version + (quality === 'stable' ? '' : `-${quality}`);
|
||||||
|
|
||||||
|
console.log('Creating build...');
|
||||||
|
console.log('Quality:', quality);
|
||||||
|
console.log('Version:', version);
|
||||||
|
console.log('Commit:', commit);
|
||||||
|
|
||||||
|
const build = {
|
||||||
|
id: commit,
|
||||||
|
timestamp: (new Date()).getTime(),
|
||||||
|
version,
|
||||||
|
isReleased: false,
|
||||||
|
sourceBranch,
|
||||||
|
queuedBy,
|
||||||
|
assets: [],
|
||||||
|
updates: {}
|
||||||
|
};
|
||||||
|
|
||||||
|
const client = new CosmosClient({ endpoint: process.env['AZURE_DOCUMENTDB_ENDPOINT']!, key: process.env['AZURE_DOCUMENTDB_MASTERKEY'] });
|
||||||
|
const scripts = client.database('builds').container(quality).scripts;
|
||||||
|
await scripts.storedProcedure('createBuild').execute('', [{ ...build, _partitionKey: '' }]);
|
||||||
|
}
|
||||||
|
|
||||||
|
main().then(() => {
|
||||||
|
console.log('Build successfully created');
|
||||||
|
process.exit(0);
|
||||||
|
}, err => {
|
||||||
|
console.error(err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
19
lib/vscode/build/azure-pipelines/common/extract-telemetry.sh
Executable file
19
lib/vscode/build/azure-pipelines/common/extract-telemetry.sh
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd $BUILD_STAGINGDIRECTORY
|
||||||
|
mkdir extraction
|
||||||
|
cd extraction
|
||||||
|
git clone --depth 1 https://github.com/microsoft/vscode-extension-telemetry.git
|
||||||
|
git clone --depth 1 https://github.com/microsoft/vscode-chrome-debug-core.git
|
||||||
|
git clone --depth 1 https://github.com/microsoft/vscode-node-debug2.git
|
||||||
|
git clone --depth 1 https://github.com/microsoft/vscode-node-debug.git
|
||||||
|
git clone --depth 1 https://github.com/microsoft/vscode-html-languageservice.git
|
||||||
|
git clone --depth 1 https://github.com/microsoft/vscode-json-languageservice.git
|
||||||
|
node $BUILD_SOURCESDIRECTORY/build/node_modules/.bin/vscode-telemetry-extractor --sourceDir $BUILD_SOURCESDIRECTORY --excludedDir $BUILD_SOURCESDIRECTORY/extensions --outputDir . --applyEndpoints
|
||||||
|
node $BUILD_SOURCESDIRECTORY/build/node_modules/.bin/vscode-telemetry-extractor --config $BUILD_SOURCESDIRECTORY/build/azure-pipelines/common/telemetry-config.json -o .
|
||||||
|
mkdir -p $BUILD_SOURCESDIRECTORY/.build/telemetry
|
||||||
|
mv declarations-resolved.json $BUILD_SOURCESDIRECTORY/.build/telemetry/telemetry-core.json
|
||||||
|
mv config-resolved.json $BUILD_SOURCESDIRECTORY/.build/telemetry/telemetry-extensions.json
|
||||||
|
cd ..
|
||||||
|
rm -rf extraction
|
9
lib/vscode/build/azure-pipelines/common/publish-webview.sh
Executable file
9
lib/vscode/build/azure-pipelines/common/publish-webview.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
REPO="$(pwd)"
|
||||||
|
|
||||||
|
# Publish webview contents
|
||||||
|
PACKAGEJSON="$REPO/package.json"
|
||||||
|
VERSION=$(node -p "require(\"$PACKAGEJSON\").version")
|
||||||
|
|
||||||
|
node build/azure-pipelines/common/publish-webview.js "$REPO/src/vs/workbench/contrib/webview/browser/pre/"
|
87
lib/vscode/build/azure-pipelines/common/publish-webview.ts
Normal file
87
lib/vscode/build/azure-pipelines/common/publish-webview.ts
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
import * as azure from 'azure-storage';
|
||||||
|
import * as mime from 'mime';
|
||||||
|
import * as minimist from 'minimist';
|
||||||
|
import { basename, join } from 'path';
|
||||||
|
|
||||||
|
const fileNames = [
|
||||||
|
'fake.html',
|
||||||
|
'host.js',
|
||||||
|
'index.html',
|
||||||
|
'main.js',
|
||||||
|
'service-worker.js'
|
||||||
|
];
|
||||||
|
|
||||||
|
async function assertContainer(blobService: azure.BlobService, container: string): Promise<void> {
|
||||||
|
await new Promise<void>((c, e) => blobService.createContainerIfNotExists(container, { publicAccessLevel: 'blob' }, err => err ? e(err) : c()));
|
||||||
|
}
|
||||||
|
|
||||||
|
async function doesBlobExist(blobService: azure.BlobService, container: string, blobName: string): Promise<boolean | undefined> {
|
||||||
|
const existsResult = await new Promise<azure.BlobService.BlobResult>((c, e) => blobService.doesBlobExist(container, blobName, (err, r) => err ? e(err) : c(r)));
|
||||||
|
return existsResult.exists;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function uploadBlob(blobService: azure.BlobService, container: string, blobName: string, file: string): Promise<void> {
|
||||||
|
const blobOptions: azure.BlobService.CreateBlockBlobRequestOptions = {
|
||||||
|
contentSettings: {
|
||||||
|
contentType: mime.lookup(file),
|
||||||
|
cacheControl: 'max-age=31536000, public'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
await new Promise<void>((c, e) => blobService.createBlockBlobFromLocalFile(container, blobName, file, blobOptions, err => err ? e(err) : c()));
|
||||||
|
}
|
||||||
|
|
||||||
|
async function publish(commit: string, files: readonly string[]): Promise<void> {
|
||||||
|
|
||||||
|
console.log('Publishing...');
|
||||||
|
console.log('Commit:', commit);
|
||||||
|
const storageAccount = process.env['AZURE_WEBVIEW_STORAGE_ACCOUNT']!;
|
||||||
|
|
||||||
|
const blobService = azure.createBlobService(storageAccount, process.env['AZURE_WEBVIEW_STORAGE_ACCESS_KEY']!)
|
||||||
|
.withFilter(new azure.ExponentialRetryPolicyFilter(20));
|
||||||
|
|
||||||
|
await assertContainer(blobService, commit);
|
||||||
|
|
||||||
|
for (const file of files) {
|
||||||
|
const blobName = basename(file);
|
||||||
|
const blobExists = await doesBlobExist(blobService, commit, blobName);
|
||||||
|
if (blobExists) {
|
||||||
|
console.log(`Blob ${commit}, ${blobName} already exists, not publishing again.`);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
console.log('Uploading blob to Azure storage...');
|
||||||
|
await uploadBlob(blobService, commit, blobName, file);
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('Blobs successfully uploaded.');
|
||||||
|
}
|
||||||
|
|
||||||
|
function main(): void {
|
||||||
|
const commit = process.env['BUILD_SOURCEVERSION'];
|
||||||
|
|
||||||
|
if (!commit) {
|
||||||
|
console.warn('Skipping publish due to missing BUILD_SOURCEVERSION');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const opts = minimist(process.argv.slice(2));
|
||||||
|
const [directory] = opts._;
|
||||||
|
|
||||||
|
const files = fileNames.map(fileName => join(directory, fileName));
|
||||||
|
|
||||||
|
publish(commit, files).catch(err => {
|
||||||
|
console.error(err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (process.argv.length < 3) {
|
||||||
|
console.error('Usage: node publish.js <directory>');
|
||||||
|
process.exit(-1);
|
||||||
|
}
|
||||||
|
main();
|
70
lib/vscode/build/azure-pipelines/common/releaseBuild.ts
Normal file
70
lib/vscode/build/azure-pipelines/common/releaseBuild.ts
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
import { CosmosClient } from '@azure/cosmos';
|
||||||
|
|
||||||
|
function getEnv(name: string): string {
|
||||||
|
const result = process.env[name];
|
||||||
|
|
||||||
|
if (typeof result === 'undefined') {
|
||||||
|
throw new Error('Missing env: ' + name);
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Config {
|
||||||
|
id: string;
|
||||||
|
frozen: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
function createDefaultConfig(quality: string): Config {
|
||||||
|
return {
|
||||||
|
id: quality,
|
||||||
|
frozen: false
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
async function getConfig(client: CosmosClient, quality: string): Promise<Config> {
|
||||||
|
const query = `SELECT TOP 1 * FROM c WHERE c.id = "${quality}"`;
|
||||||
|
|
||||||
|
const res = await client.database('builds').container('config').items.query(query).fetchAll();
|
||||||
|
|
||||||
|
if (res.resources.length === 0) {
|
||||||
|
return createDefaultConfig(quality);
|
||||||
|
}
|
||||||
|
|
||||||
|
return res.resources[0] as Config;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function main(): Promise<void> {
|
||||||
|
const commit = getEnv('BUILD_SOURCEVERSION');
|
||||||
|
const quality = getEnv('VSCODE_QUALITY');
|
||||||
|
|
||||||
|
const client = new CosmosClient({ endpoint: process.env['AZURE_DOCUMENTDB_ENDPOINT']!, key: process.env['AZURE_DOCUMENTDB_MASTERKEY'] });
|
||||||
|
const config = await getConfig(client, quality);
|
||||||
|
|
||||||
|
console.log('Quality config:', config);
|
||||||
|
|
||||||
|
if (config.frozen) {
|
||||||
|
console.log(`Skipping release because quality ${quality} is frozen.`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(`Releasing build ${commit}...`);
|
||||||
|
|
||||||
|
const scripts = client.database('builds').container(quality).scripts;
|
||||||
|
await scripts.storedProcedure('releaseBuild').execute('', [commit]);
|
||||||
|
}
|
||||||
|
|
||||||
|
main().then(() => {
|
||||||
|
console.log('Build successfully released');
|
||||||
|
process.exit(0);
|
||||||
|
}, err => {
|
||||||
|
console.error(err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
130
lib/vscode/build/azure-pipelines/common/sync-mooncake.ts
Normal file
130
lib/vscode/build/azure-pipelines/common/sync-mooncake.ts
Normal file
@ -0,0 +1,130 @@
|
|||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
import * as url from 'url';
|
||||||
|
import * as azure from 'azure-storage';
|
||||||
|
import * as mime from 'mime';
|
||||||
|
import { CosmosClient } from '@azure/cosmos';
|
||||||
|
|
||||||
|
function log(...args: any[]) {
|
||||||
|
console.log(...[`[${new Date().toISOString()}]`, ...args]);
|
||||||
|
}
|
||||||
|
|
||||||
|
function error(...args: any[]) {
|
||||||
|
console.error(...[`[${new Date().toISOString()}]`, ...args]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (process.argv.length < 3) {
|
||||||
|
error('Usage: node sync-mooncake.js <quality>');
|
||||||
|
process.exit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Build {
|
||||||
|
assets: Asset[];
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Asset {
|
||||||
|
platform: string;
|
||||||
|
type: string;
|
||||||
|
url: string;
|
||||||
|
mooncakeUrl: string;
|
||||||
|
hash: string;
|
||||||
|
sha256hash: string;
|
||||||
|
size: number;
|
||||||
|
supportsFastUpdate?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function sync(commit: string, quality: string): Promise<void> {
|
||||||
|
log(`Synchronizing Mooncake assets for ${quality}, ${commit}...`);
|
||||||
|
|
||||||
|
const client = new CosmosClient({ endpoint: process.env['AZURE_DOCUMENTDB_ENDPOINT']!, key: process.env['AZURE_DOCUMENTDB_MASTERKEY'] });
|
||||||
|
const container = client.database('builds').container(quality);
|
||||||
|
|
||||||
|
const query = `SELECT TOP 1 * FROM c WHERE c.id = "${commit}"`;
|
||||||
|
const res = await container.items.query<Build>(query, {}).fetchAll();
|
||||||
|
|
||||||
|
if (res.resources.length !== 1) {
|
||||||
|
throw new Error(`No builds found for ${commit}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const build = res.resources[0];
|
||||||
|
|
||||||
|
log(`Found build for ${commit}, with ${build.assets.length} assets`);
|
||||||
|
|
||||||
|
const storageAccount = process.env['AZURE_STORAGE_ACCOUNT_2']!;
|
||||||
|
|
||||||
|
const blobService = azure.createBlobService(storageAccount, process.env['AZURE_STORAGE_ACCESS_KEY_2']!)
|
||||||
|
.withFilter(new azure.ExponentialRetryPolicyFilter(20));
|
||||||
|
|
||||||
|
const mooncakeBlobService = azure.createBlobService(storageAccount, process.env['MOONCAKE_STORAGE_ACCESS_KEY']!, `${storageAccount}.blob.core.chinacloudapi.cn`)
|
||||||
|
.withFilter(new azure.ExponentialRetryPolicyFilter(20));
|
||||||
|
|
||||||
|
// mooncake is fussy and far away, this is needed!
|
||||||
|
blobService.defaultClientRequestTimeoutInMs = 10 * 60 * 1000;
|
||||||
|
mooncakeBlobService.defaultClientRequestTimeoutInMs = 10 * 60 * 1000;
|
||||||
|
|
||||||
|
for (const asset of build.assets) {
|
||||||
|
try {
|
||||||
|
const blobPath = url.parse(asset.url).path;
|
||||||
|
|
||||||
|
if (!blobPath) {
|
||||||
|
throw new Error(`Failed to parse URL: ${asset.url}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const blobName = blobPath.replace(/^\/\w+\//, '');
|
||||||
|
|
||||||
|
log(`Found ${blobName}`);
|
||||||
|
|
||||||
|
if (asset.mooncakeUrl) {
|
||||||
|
log(` Already in Mooncake ✔️`);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
const readStream = blobService.createReadStream(quality, blobName, undefined!);
|
||||||
|
const blobOptions: azure.BlobService.CreateBlockBlobRequestOptions = {
|
||||||
|
contentSettings: {
|
||||||
|
contentType: mime.lookup(blobPath),
|
||||||
|
cacheControl: 'max-age=31536000, public'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const writeStream = mooncakeBlobService.createWriteStreamToBlockBlob(quality, blobName, blobOptions, undefined);
|
||||||
|
|
||||||
|
log(` Uploading to Mooncake...`);
|
||||||
|
await new Promise((c, e) => readStream.pipe(writeStream).on('finish', c).on('error', e));
|
||||||
|
|
||||||
|
log(` Updating build in DB...`);
|
||||||
|
const mooncakeUrl = `${process.env['MOONCAKE_CDN_URL']}${blobPath}`;
|
||||||
|
await container.scripts.storedProcedure('setAssetMooncakeUrl')
|
||||||
|
.execute('', [commit, asset.platform, asset.type, mooncakeUrl]);
|
||||||
|
|
||||||
|
log(` Done ✔️`);
|
||||||
|
} catch (err) {
|
||||||
|
error(err);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
log(`All done ✔️`);
|
||||||
|
}
|
||||||
|
|
||||||
|
function main(): void {
|
||||||
|
const commit = process.env['BUILD_SOURCEVERSION'];
|
||||||
|
|
||||||
|
if (!commit) {
|
||||||
|
error('Skipping publish due to missing BUILD_SOURCEVERSION');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const quality = process.argv[2];
|
||||||
|
|
||||||
|
sync(commit, quality).catch(err => {
|
||||||
|
error(err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
main();
|
@ -0,0 +1,72 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"eventPrefix": "typescript-language-features/",
|
||||||
|
"sourceDirs": [
|
||||||
|
"../../s/extensions/typescript-language-features"
|
||||||
|
],
|
||||||
|
"excludedDirs": [],
|
||||||
|
"applyEndpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"eventPrefix": "git/",
|
||||||
|
"sourceDirs": [
|
||||||
|
"../../s/extensions/git"
|
||||||
|
],
|
||||||
|
"excludedDirs": [],
|
||||||
|
"applyEndpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"eventPrefix": "extension-telemetry/",
|
||||||
|
"sourceDirs": [
|
||||||
|
"vscode-extension-telemetry"
|
||||||
|
],
|
||||||
|
"excludedDirs": [],
|
||||||
|
"applyEndpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"eventPrefix": "vscode-markdown/",
|
||||||
|
"sourceDirs": [
|
||||||
|
"../../s/extensions/markdown-language-features"
|
||||||
|
],
|
||||||
|
"excludedDirs": [],
|
||||||
|
"applyEndpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"eventPrefix": "html-language-features/",
|
||||||
|
"sourceDirs": [
|
||||||
|
"../../s/extensions/html-language-features",
|
||||||
|
"vscode-html-languageservice"
|
||||||
|
],
|
||||||
|
"excludedDirs": [],
|
||||||
|
"applyEndpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"eventPrefix": "json-language-features/",
|
||||||
|
"sourceDirs": [
|
||||||
|
"../../s/extensions/json-language-features",
|
||||||
|
"vscode-json-languageservice"
|
||||||
|
],
|
||||||
|
"excludedDirs": [],
|
||||||
|
"applyEndpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"eventPrefix": "ms-vscode.node2/",
|
||||||
|
"sourceDirs": [
|
||||||
|
"vscode-chrome-debug-core",
|
||||||
|
"vscode-node-debug2"
|
||||||
|
],
|
||||||
|
"excludedDirs": [],
|
||||||
|
"applyEndpoints": true,
|
||||||
|
"patchDebugEvents": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"eventPrefix": "ms-vscode.node/",
|
||||||
|
"sourceDirs": [
|
||||||
|
"vscode-chrome-debug-core",
|
||||||
|
"vscode-node-debug"
|
||||||
|
],
|
||||||
|
"excludedDirs": [],
|
||||||
|
"applyEndpoints": true,
|
||||||
|
"patchDebugEvents": true
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>com.apple.security.cs.allow-jit</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
@ -0,0 +1,79 @@
|
|||||||
|
steps:
|
||||||
|
- task: NodeTool@0
|
||||||
|
inputs:
|
||||||
|
versionSpec: "12.14.1"
|
||||||
|
|
||||||
|
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
|
||||||
|
inputs:
|
||||||
|
versionSpec: "1.x"
|
||||||
|
|
||||||
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
|
||||||
|
inputs:
|
||||||
|
keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
|
||||||
|
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
|
||||||
|
vstsFeed: 'vscode-build-cache'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
CHILD_CONCURRENCY=1 yarn --frozen-lockfile
|
||||||
|
displayName: Install Dependencies
|
||||||
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
|
||||||
|
inputs:
|
||||||
|
keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
|
||||||
|
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
|
||||||
|
vstsFeed: 'vscode-build-cache'
|
||||||
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
yarn postinstall
|
||||||
|
displayName: Run postinstall scripts
|
||||||
|
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn electron x64
|
||||||
|
displayName: Download Electron
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn monaco-compile-check
|
||||||
|
displayName: Run Monaco Editor Checks
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn valid-layers-check
|
||||||
|
displayName: Run Valid Layers Checks
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn compile
|
||||||
|
displayName: Compile Sources
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn download-builtin-extensions
|
||||||
|
displayName: Download Built-in Extensions
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
./scripts/test.sh --tfs "Unit Tests"
|
||||||
|
displayName: Run Unit Tests (Electron)
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn test-browser --browser chromium --browser webkit --browser firefox --tfs "Browser Unit Tests"
|
||||||
|
displayName: Run Unit Tests (Browser)
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
./scripts/test-integration.sh --tfs "Integration Tests"
|
||||||
|
displayName: Run Integration Tests (Electron)
|
||||||
|
|
||||||
|
- task: PublishPipelineArtifact@0
|
||||||
|
inputs:
|
||||||
|
artifactName: crash-dump-macos
|
||||||
|
targetPath: .build/crashes
|
||||||
|
displayName: 'Publish Crash Reports'
|
||||||
|
continueOnError: true
|
||||||
|
condition: failed()
|
||||||
|
|
||||||
|
- task: PublishTestResults@2
|
||||||
|
displayName: Publish Tests Results
|
||||||
|
inputs:
|
||||||
|
testResultsFiles: '*-results.xml'
|
||||||
|
searchFolder: '$(Build.ArtifactStagingDirectory)/test-results'
|
||||||
|
condition: succeededOrFailed()
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>com.apple.security.cs.allow-jit</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.cs.disable-library-validation</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>com.apple.security.cs.allow-jit</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.cs.disable-library-validation</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
270
lib/vscode/build/azure-pipelines/darwin/product-build-darwin.yml
Normal file
270
lib/vscode/build/azure-pipelines/darwin/product-build-darwin.yml
Normal file
@ -0,0 +1,270 @@
|
|||||||
|
steps:
|
||||||
|
- script: |
|
||||||
|
mkdir -p .build
|
||||||
|
echo -n $BUILD_SOURCEVERSION > .build/commit
|
||||||
|
echo -n $VSCODE_QUALITY > .build/quality
|
||||||
|
displayName: Prepare cache flag
|
||||||
|
|
||||||
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
|
||||||
|
inputs:
|
||||||
|
keyfile: 'build/.cachesalt, .build/commit, .build/quality'
|
||||||
|
targetfolder: '.build, out-build, out-vscode-min, out-vscode-reh-min, out-vscode-reh-web-min'
|
||||||
|
vstsFeed: 'npm-vscode'
|
||||||
|
platformIndependent: true
|
||||||
|
alias: 'Compilation'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
exit 1
|
||||||
|
displayName: Check RestoreCache
|
||||||
|
condition: and(succeeded(), ne(variables['CacheRestored-Compilation'], 'true'))
|
||||||
|
|
||||||
|
- task: NodeTool@0
|
||||||
|
inputs:
|
||||||
|
versionSpec: "12.14.1"
|
||||||
|
|
||||||
|
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
|
||||||
|
inputs:
|
||||||
|
versionSpec: "1.x"
|
||||||
|
|
||||||
|
- task: AzureKeyVault@1
|
||||||
|
displayName: 'Azure Key Vault: Get Secrets'
|
||||||
|
inputs:
|
||||||
|
azureSubscription: 'vscode-builds-subscription'
|
||||||
|
KeyVaultName: vscode
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cat << EOF > ~/.netrc
|
||||||
|
machine github.com
|
||||||
|
login vscode
|
||||||
|
password $(github-distro-mixin-password)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
git config user.email "vscode@microsoft.com"
|
||||||
|
git config user.name "VSCode"
|
||||||
|
displayName: Prepare tooling
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
git remote add distro "https://github.com/$(VSCODE_MIXIN_REPO).git"
|
||||||
|
git fetch distro
|
||||||
|
git merge $(node -p "require('./package.json').distro")
|
||||||
|
displayName: Merge distro
|
||||||
|
|
||||||
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
|
||||||
|
inputs:
|
||||||
|
keyfile: 'build/.cachesalt, .yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
|
||||||
|
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
|
||||||
|
vstsFeed: 'npm-vscode'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
CHILD_CONCURRENCY=1 yarn --frozen-lockfile
|
||||||
|
displayName: Install dependencies
|
||||||
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
|
||||||
|
inputs:
|
||||||
|
keyfile: 'build/.cachesalt, .yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
|
||||||
|
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
|
||||||
|
vstsFeed: 'npm-vscode'
|
||||||
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
yarn postinstall
|
||||||
|
displayName: Run postinstall scripts
|
||||||
|
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
node build/azure-pipelines/mixin
|
||||||
|
displayName: Mix in quality
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \
|
||||||
|
yarn gulp vscode-darwin-min-ci
|
||||||
|
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \
|
||||||
|
yarn gulp vscode-reh-darwin-min-ci
|
||||||
|
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \
|
||||||
|
yarn gulp vscode-reh-web-darwin-min-ci
|
||||||
|
displayName: Build
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
./scripts/test.sh --build --tfs "Unit Tests"
|
||||||
|
displayName: Run unit tests (Electron)
|
||||||
|
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
yarn test-browser --build --browser chromium --browser webkit --browser firefox --tfs "Browser Unit Tests"
|
||||||
|
displayName: Run unit tests (Browser)
|
||||||
|
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
# Figure out the full absolute path of the product we just built
|
||||||
|
# including the remote server and configure the integration tests
|
||||||
|
# to run with these builds instead of running out of sources.
|
||||||
|
set -e
|
||||||
|
APP_ROOT=$(agent.builddirectory)/VSCode-darwin
|
||||||
|
APP_NAME="`ls $APP_ROOT | head -n 1`"
|
||||||
|
INTEGRATION_TEST_ELECTRON_PATH="$APP_ROOT/$APP_NAME/Contents/MacOS/Electron" \
|
||||||
|
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-darwin" \
|
||||||
|
./scripts/test-integration.sh --build --tfs "Integration Tests"
|
||||||
|
displayName: Run integration tests (Electron)
|
||||||
|
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-web-darwin" \
|
||||||
|
./resources/server/test/test-web-integration.sh --browser webkit
|
||||||
|
displayName: Run integration tests (Browser)
|
||||||
|
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
APP_ROOT=$(agent.builddirectory)/VSCode-darwin
|
||||||
|
APP_NAME="`ls $APP_ROOT | head -n 1`"
|
||||||
|
INTEGRATION_TEST_ELECTRON_PATH="$APP_ROOT/$APP_NAME/Contents/MacOS/Electron" \
|
||||||
|
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-darwin" \
|
||||||
|
./resources/server/test/test-remote-integration.sh
|
||||||
|
displayName: Run remote integration tests (Electron)
|
||||||
|
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
APP_ROOT=$(agent.builddirectory)/VSCode-darwin
|
||||||
|
APP_NAME="`ls $APP_ROOT | head -n 1`"
|
||||||
|
yarn smoketest --build "$APP_ROOT/$APP_NAME"
|
||||||
|
continueOnError: true
|
||||||
|
displayName: Run smoke tests (Electron)
|
||||||
|
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-web-darwin" \
|
||||||
|
yarn smoketest --web --headless
|
||||||
|
continueOnError: true
|
||||||
|
displayName: Run smoke tests (Browser)
|
||||||
|
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
|
||||||
|
|
||||||
|
- task: PublishPipelineArtifact@0
|
||||||
|
inputs:
|
||||||
|
artifactName: crash-dump-macos
|
||||||
|
targetPath: .build/crashes
|
||||||
|
displayName: 'Publish Crash Reports'
|
||||||
|
continueOnError: true
|
||||||
|
condition: failed()
|
||||||
|
|
||||||
|
- task: PublishTestResults@2
|
||||||
|
displayName: Publish Tests Results
|
||||||
|
inputs:
|
||||||
|
testResultsFiles: '*-results.xml'
|
||||||
|
searchFolder: '$(Build.ArtifactStagingDirectory)/test-results'
|
||||||
|
condition: succeededOrFailed()
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
security create-keychain -p pwd $(agent.tempdirectory)/buildagent.keychain
|
||||||
|
security default-keychain -s $(agent.tempdirectory)/buildagent.keychain
|
||||||
|
security unlock-keychain -p pwd $(agent.tempdirectory)/buildagent.keychain
|
||||||
|
echo "$(macos-developer-certificate)" | base64 -D > $(agent.tempdirectory)/cert.p12
|
||||||
|
security import $(agent.tempdirectory)/cert.p12 -k $(agent.tempdirectory)/buildagent.keychain -P "$(macos-developer-certificate-key)" -T /usr/bin/codesign
|
||||||
|
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k pwd $(agent.tempdirectory)/buildagent.keychain
|
||||||
|
DEBUG=electron-osx-sign* node build/darwin/sign.js
|
||||||
|
displayName: Set Hardened Entitlements
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
pushd $(agent.builddirectory)/VSCode-darwin && zip -r -X -y $(agent.builddirectory)/VSCode-darwin.zip * && popd
|
||||||
|
displayName: Archive build
|
||||||
|
|
||||||
|
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
|
||||||
|
inputs:
|
||||||
|
ConnectedServiceName: 'ESRP CodeSign'
|
||||||
|
FolderPath: '$(agent.builddirectory)'
|
||||||
|
Pattern: 'VSCode-darwin.zip'
|
||||||
|
signConfigType: inlineSignParams
|
||||||
|
inlineOperation: |
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"keyCode": "CP-401337-Apple",
|
||||||
|
"operationSetCode": "MacAppDeveloperSign",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"parameterName": "Hardening",
|
||||||
|
"parameterValue": "--options=runtime"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"toolName": "sign",
|
||||||
|
"toolVersion": "1.0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
SessionTimeout: 60
|
||||||
|
displayName: Codesign
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
zip -d $(agent.builddirectory)/VSCode-darwin.zip "*.pkg"
|
||||||
|
displayName: Clean Archive
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
APP_ROOT=$(agent.builddirectory)/VSCode-darwin
|
||||||
|
APP_NAME="`ls $APP_ROOT | head -n 1`"
|
||||||
|
BUNDLE_IDENTIFIER=$(node -p "require(\"$APP_ROOT/$APP_NAME/Contents/Resources/app/product.json\").darwinBundleIdentifier")
|
||||||
|
echo "##vso[task.setvariable variable=BundleIdentifier]$BUNDLE_IDENTIFIER"
|
||||||
|
displayName: Export bundle identifier
|
||||||
|
|
||||||
|
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
|
||||||
|
inputs:
|
||||||
|
ConnectedServiceName: 'ESRP CodeSign'
|
||||||
|
FolderPath: '$(agent.builddirectory)'
|
||||||
|
Pattern: 'VSCode-darwin.zip'
|
||||||
|
signConfigType: inlineSignParams
|
||||||
|
inlineOperation: |
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"keyCode": "CP-401337-Apple",
|
||||||
|
"operationSetCode": "MacAppNotarize",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"parameterName": "BundleId",
|
||||||
|
"parameterValue": "$(BundleIdentifier)"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"toolName": "sign",
|
||||||
|
"toolVersion": "1.0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
SessionTimeout: 60
|
||||||
|
displayName: Notarization
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
APP_ROOT=$(agent.builddirectory)/VSCode-darwin
|
||||||
|
APP_NAME="`ls $APP_ROOT | head -n 1`"
|
||||||
|
"$APP_ROOT/$APP_NAME/Contents/Resources/app/bin/code" --export-default-configuration=.build
|
||||||
|
displayName: Verify start after signing (export configuration)
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \
|
||||||
|
AZURE_DOCUMENTDB_MASTERKEY="$(builds-docdb-key-readwrite)" \
|
||||||
|
AZURE_STORAGE_ACCESS_KEY="$(ticino-storage-key)" \
|
||||||
|
AZURE_STORAGE_ACCESS_KEY_2="$(vscode-storage-key)" \
|
||||||
|
VSCODE_ARCH="$(VSCODE_ARCH)" \
|
||||||
|
./build/azure-pipelines/darwin/publish.sh
|
||||||
|
displayName: Publish
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
AZURE_STORAGE_ACCESS_KEY="$(ticino-storage-key)" \
|
||||||
|
yarn gulp upload-vscode-configuration
|
||||||
|
displayName: Upload configuration (for Bing settings search)
|
||||||
|
continueOnError: true
|
||||||
|
|
||||||
|
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||||
|
displayName: 'Component Detection'
|
||||||
|
continueOnError: true
|
21
lib/vscode/build/azure-pipelines/darwin/publish.sh
Executable file
21
lib/vscode/build/azure-pipelines/darwin/publish.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# publish the build
|
||||||
|
node build/azure-pipelines/common/createAsset.js \
|
||||||
|
darwin \
|
||||||
|
archive \
|
||||||
|
"VSCode-darwin-$VSCODE_QUALITY.zip" \
|
||||||
|
../VSCode-darwin.zip
|
||||||
|
|
||||||
|
if [ "$VSCODE_ARCH" == "x64" ]; then
|
||||||
|
# package Remote Extension Host
|
||||||
|
pushd .. && mv vscode-reh-darwin vscode-server-darwin && zip -Xry vscode-server-darwin.zip vscode-server-darwin && popd
|
||||||
|
|
||||||
|
# publish Remote Extension Host
|
||||||
|
node build/azure-pipelines/common/createAsset.js \
|
||||||
|
server-darwin \
|
||||||
|
archive-unsigned \
|
||||||
|
"vscode-server-darwin.zip" \
|
||||||
|
../vscode-server-darwin.zip
|
||||||
|
fi
|
42
lib/vscode/build/azure-pipelines/distro-build.yml
Normal file
42
lib/vscode/build/azure-pipelines/distro-build.yml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
trigger:
|
||||||
|
branches:
|
||||||
|
include: ['master', 'release/*']
|
||||||
|
pr:
|
||||||
|
branches:
|
||||||
|
include: ['master', 'release/*']
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- task: NodeTool@0
|
||||||
|
inputs:
|
||||||
|
versionSpec: "12.14.1"
|
||||||
|
|
||||||
|
- task: AzureKeyVault@1
|
||||||
|
displayName: 'Azure Key Vault: Get Secrets'
|
||||||
|
inputs:
|
||||||
|
azureSubscription: 'vscode-builds-subscription'
|
||||||
|
KeyVaultName: vscode
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cat << EOF > ~/.netrc
|
||||||
|
machine github.com
|
||||||
|
login vscode
|
||||||
|
password $(github-distro-mixin-password)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
git config user.email "vscode@microsoft.com"
|
||||||
|
git config user.name "VSCode"
|
||||||
|
|
||||||
|
git remote add distro "https://github.com/$VSCODE_MIXIN_REPO.git"
|
||||||
|
git fetch distro
|
||||||
|
|
||||||
|
# Push master branch into oss/master
|
||||||
|
git push distro origin/master:refs/heads/oss/master
|
||||||
|
|
||||||
|
# Push every release branch into oss/release
|
||||||
|
git for-each-ref --format="%(refname:short)" refs/remotes/origin/release/* | sed 's/^origin\/\(.*\)$/\0:refs\/heads\/oss\/\1/' | xargs git push distro
|
||||||
|
|
||||||
|
git merge $(node -p "require('./package.json').distro")
|
||||||
|
|
||||||
|
displayName: Sync & Merge Distro
|
40
lib/vscode/build/azure-pipelines/exploration-build.yml
Normal file
40
lib/vscode/build/azure-pipelines/exploration-build.yml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
pool:
|
||||||
|
vmImage: 'Ubuntu-16.04'
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branches:
|
||||||
|
include: ['master']
|
||||||
|
pr:
|
||||||
|
branches:
|
||||||
|
include: ['master']
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- task: NodeTool@0
|
||||||
|
inputs:
|
||||||
|
versionSpec: "12.14.1"
|
||||||
|
|
||||||
|
- task: AzureKeyVault@1
|
||||||
|
displayName: 'Azure Key Vault: Get Secrets'
|
||||||
|
inputs:
|
||||||
|
azureSubscription: 'vscode-builds-subscription'
|
||||||
|
KeyVaultName: vscode
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cat << EOF > ~/.netrc
|
||||||
|
machine github.com
|
||||||
|
login vscode
|
||||||
|
password $(github-distro-mixin-password)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
git config user.email "vscode@microsoft.com"
|
||||||
|
git config user.name "VSCode"
|
||||||
|
|
||||||
|
git checkout origin/electron-11.x.y
|
||||||
|
git merge origin/master
|
||||||
|
|
||||||
|
# Push master branch into exploration branch
|
||||||
|
git push origin HEAD:electron-11.x.y
|
||||||
|
|
||||||
|
displayName: Sync & Merge Exploration
|
1
lib/vscode/build/azure-pipelines/linux/.gitignore
vendored
Normal file
1
lib/vscode/build/azure-pipelines/linux/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
pat
|
@ -0,0 +1,92 @@
|
|||||||
|
steps:
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0
|
||||||
|
sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
|
||||||
|
sudo chmod +x /etc/init.d/xvfb
|
||||||
|
sudo update-rc.d xvfb defaults
|
||||||
|
sudo service xvfb start
|
||||||
|
|
||||||
|
- task: NodeTool@0
|
||||||
|
inputs:
|
||||||
|
versionSpec: "12.14.1"
|
||||||
|
|
||||||
|
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
|
||||||
|
inputs:
|
||||||
|
versionSpec: "1.x"
|
||||||
|
|
||||||
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
|
||||||
|
inputs:
|
||||||
|
keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
|
||||||
|
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
|
||||||
|
vstsFeed: 'vscode-build-cache'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
CHILD_CONCURRENCY=1 yarn --frozen-lockfile
|
||||||
|
displayName: Install Dependencies
|
||||||
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
|
||||||
|
inputs:
|
||||||
|
keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
|
||||||
|
targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
|
||||||
|
vstsFeed: 'vscode-build-cache'
|
||||||
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
yarn postinstall
|
||||||
|
displayName: Run postinstall scripts
|
||||||
|
condition: and(succeeded(), eq(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn electron x64
|
||||||
|
displayName: Download Electron
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn gulp hygiene
|
||||||
|
displayName: Run Hygiene Checks
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn monaco-compile-check
|
||||||
|
displayName: Run Monaco Editor Checks
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn valid-layers-check
|
||||||
|
displayName: Run Valid Layers Checks
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn compile
|
||||||
|
displayName: Compile Sources
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
yarn download-builtin-extensions
|
||||||
|
displayName: Download Built-in Extensions
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
DISPLAY=:10 ./scripts/test.sh --tfs "Unit Tests"
|
||||||
|
displayName: Run Unit Tests (Electron)
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
DISPLAY=:10 yarn test-browser --browser chromium --tfs "Browser Unit Tests"
|
||||||
|
displayName: Run Unit Tests (Browser)
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
DISPLAY=:10 ./scripts/test-integration.sh --tfs "Integration Tests"
|
||||||
|
displayName: Run Integration Tests (Electron)
|
||||||
|
|
||||||
|
- task: PublishPipelineArtifact@0
|
||||||
|
inputs:
|
||||||
|
artifactName: crash-dump-linux
|
||||||
|
targetPath: .build/crashes
|
||||||
|
displayName: 'Publish Crash Reports'
|
||||||
|
continueOnError: true
|
||||||
|
condition: failed()
|
||||||
|
|
||||||
|
- task: PublishTestResults@2
|
||||||
|
displayName: Publish Tests Results
|
||||||
|
inputs:
|
||||||
|
testResultsFiles: '*-results.xml'
|
||||||
|
searchFolder: '$(Build.ArtifactStagingDirectory)/test-results'
|
||||||
|
condition: succeededOrFailed()
|
3
lib/vscode/build/azure-pipelines/linux/multiarch/alpine/build.sh
Executable file
3
lib/vscode/build/azure-pipelines/linux/multiarch/alpine/build.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
echo 'noop'
|
3
lib/vscode/build/azure-pipelines/linux/multiarch/alpine/prebuild.sh
Executable file
3
lib/vscode/build/azure-pipelines/linux/multiarch/alpine/prebuild.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
echo 'noop'
|
3
lib/vscode/build/azure-pipelines/linux/multiarch/alpine/publish.sh
Executable file
3
lib/vscode/build/azure-pipelines/linux/multiarch/alpine/publish.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
echo 'noop'
|
3
lib/vscode/build/azure-pipelines/linux/multiarch/arm64/build.sh
Executable file
3
lib/vscode/build/azure-pipelines/linux/multiarch/arm64/build.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
echo 'noop'
|
3
lib/vscode/build/azure-pipelines/linux/multiarch/arm64/prebuild.sh
Executable file
3
lib/vscode/build/azure-pipelines/linux/multiarch/arm64/prebuild.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
echo 'noop'
|
3
lib/vscode/build/azure-pipelines/linux/multiarch/arm64/publish.sh
Executable file
3
lib/vscode/build/azure-pipelines/linux/multiarch/arm64/publish.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
echo 'noop'
|
3
lib/vscode/build/azure-pipelines/linux/multiarch/armhf/build.sh
Executable file
3
lib/vscode/build/azure-pipelines/linux/multiarch/armhf/build.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
echo 'noop'
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user