forked from microsoft/vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'microsoft:main' into master
- Loading branch information
Showing
5,519 changed files
with
500,790 additions
and
247,154 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2 | ||
# Reference: https://github.com/microsoft/vscode/wiki/How-to-Contribute | ||
properties: | ||
resources: | ||
- resource: Microsoft.WinGet.DSC/WinGetPackage | ||
directives: | ||
description: Install Git | ||
allowPrerelease: true | ||
settings: | ||
id: Git.Git | ||
source: winget | ||
- resource: Microsoft.WinGet.DSC/WinGetPackage | ||
id: npm | ||
directives: | ||
description: Install NodeJS version >=16.17.x and <17 | ||
allowPrerelease: true | ||
settings: | ||
id: OpenJS.NodeJS.LTS | ||
version: "16.20.0" | ||
source: winget | ||
- resource: NpmDsc/NpmPackage | ||
id: yarn | ||
dependsOn: | ||
- npm | ||
directives: | ||
description: Install Yarn | ||
allowPrerelease: true | ||
settings: | ||
Name: 'yarn' | ||
Global: true | ||
PackageDirectory: '${WinGetConfigRoot}\..\' | ||
- resource: Microsoft.WinGet.DSC/WinGetPackage | ||
directives: | ||
description: Install Python 3.10 | ||
allowPrerelease: true | ||
settings: | ||
id: Python.Python.3.10 | ||
source: winget | ||
- resource: Microsoft.WinGet.DSC/WinGetPackage | ||
id: vsPackage | ||
directives: | ||
description: Install Visual Studio 2022 (any edition is OK) | ||
allowPrerelease: true | ||
settings: | ||
id: Microsoft.VisualStudio.2022.BuildTools | ||
source: winget | ||
- resource: Microsoft.VisualStudio.DSC/VSComponents | ||
dependsOn: | ||
- vsPackage | ||
directives: | ||
description: Install required VS workloads | ||
allowPrerelease: true | ||
settings: | ||
productId: Microsoft.VisualStudio.Product.BuildTools | ||
channelId: VisualStudio.17.Release | ||
includeRecommended: true | ||
components: | ||
- Microsoft.VisualStudio.Workload.VCTools | ||
- resource: YarnDsc/YarnInstall | ||
dependsOn: | ||
- npm | ||
directives: | ||
description: Install dependencies | ||
allowPrerelease: true | ||
settings: | ||
PackageDirectory: '${WinGetConfigRoot}\..\' | ||
configurationVersion: 0.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM mcr.microsoft.com/devcontainers/typescript-node:16-bullseye | ||
|
||
ADD install-vscode.sh /root/ | ||
RUN /root/install-vscode.sh | ||
|
||
RUN git config --system codespaces-theme.hide-status 1 | ||
|
||
USER node | ||
RUN YARN_CACHE="$(yarn cache dir)" && rm -rf "$YARN_CACHE" && ln -s /vscode-dev/yarn-cache "$YARN_CACHE" | ||
|
||
USER root | ||
CMD chown node:node /vscode-dev && sudo -u node mkdir -p /vscode-dev/yarn-cache && sleep inf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,22 @@ | ||
{ | ||
"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-main", | ||
"overrideCommand": false, | ||
"runArgs": [ "--init", "--security-opt", "seccomp=unconfined", "--shm-size=1g"], | ||
|
||
"settings": { | ||
"resmon.show.battery": false, | ||
"resmon.show.cpufreq": false | ||
"name": "Code - OSS with X11/Wayland", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
|
||
// noVNC, VNC | ||
"forwardPorts": [6080, 5901], | ||
"portsAttributes": { | ||
"6080": { | ||
"label": "VNC web client (noVNC)", | ||
"onAutoForward": "silent" | ||
}, | ||
"5901": { | ||
"label": "VNC TCP port", | ||
"onAutoForward": "silent" | ||
"overrideCommand": false, | ||
"privileged": true, | ||
"mounts": [ | ||
{ | ||
"source": "vscode-dev", | ||
"target": "/vscode-dev", | ||
"type": "volume" | ||
} | ||
}, | ||
|
||
"extensions": [ | ||
"dbaeumer.vscode-eslint", | ||
"mutantdino.resourcemonitor" | ||
], | ||
|
||
// Optionally loads a cached yarn install for the repo | ||
"postCreateCommand": ".devcontainer/cache/restore-diff.sh && sudo chown node:node /workspaces", | ||
|
||
"remoteUser": "node", | ||
|
||
"hostRequirements": { | ||
"memory": "6gb" | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"mutantdino.resourcemonitor" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
apt update | ||
apt install -y wget gpg | ||
|
||
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | ||
install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg | ||
sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | ||
rm -f packages.microsoft.gpg | ||
|
||
apt update | ||
apt install -y code-insiders libsecret-1-dev libxkbfile-dev |
Oops, something went wrong.