Skip to content

Commit 39ec656

Browse files
committed
minimize distro deltas
1 parent c20b7a9 commit 39ec656

4 files changed

Lines changed: 47 additions & 15 deletions

File tree

build/gulpfile.vscode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ gulp.task('vscode-translations-import', function () {
538538
// Sourcemaps
539539

540540
gulp.task('upload-vscode-sourcemaps', () => {
541-
const vs = gulp.src('out-vscode-min/**/*.map', { base: 'out-vscode-min' })
541+
const vs = gulp.src('out-vscode-min/**/*.map', { base: 'out-vscode-min' }) // client source-maps only
542542
.pipe(es.mapSync(f => {
543543
f.path = `${f.base}/core/${f.relative}`;
544544
return f;

extensions/configuration-editing/schemas/devContainer.schema.json

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"type": "object",
66
"definitions": {
77
"devContainerCommon": {
8+
"type": "object",
89
"properties": {
910
"name": {
1011
"type": "string",
@@ -18,11 +19,14 @@
1819
}
1920
},
2021
"settings": {
21-
"type": "object",
22+
"$ref": "vscode://schemas/settings/machine",
2223
"description": "Machine specific settings that should be copied into the container."
2324
},
2425
"postCreateCommand": {
25-
"type": ["string", "array"],
26+
"type": [
27+
"string",
28+
"array"
29+
],
2630
"description": "A command to run after creating the container. If this is a single string, it will be run in a shell. If this is an array of strings, it will be run as a single command without shell.",
2731
"items": {
2832
"type": "string"
@@ -35,12 +39,20 @@
3539
}
3640
},
3741
"nonComposeBase": {
42+
"type": "object",
3843
"properties": {
3944
"appPort": {
40-
"type": ["integer", "string", "array"],
45+
"type": [
46+
"integer",
47+
"string",
48+
"array"
49+
],
4150
"description": "Application ports that are exposed by the container. This can be a single port or an array of ports. Each port can be a number or a string. A number is mapped to the same port on the host. A string is passed to Docker unchanged and can be used to map ports differently, e.g. \"8000:8010\".",
4251
"items": {
43-
"type": ["integer", "string"]
52+
"type": [
53+
"integer",
54+
"string"
55+
]
4456
}
4557
},
4658
"runArgs": {
@@ -52,7 +64,10 @@
5264
},
5365
"shutdownAction": {
5466
"type": "string",
55-
"enum": ["none", "stopContainer"],
67+
"enum": [
68+
"none",
69+
"stopContainer"
70+
],
5671
"description": "Action to take when VS Code is shutting down. The default is to stop the container."
5772
},
5873
"overrideCommand": {
@@ -70,6 +85,7 @@
7085
}
7186
},
7287
"dockerFileContainer": {
88+
"type": "object",
7389
"properties": {
7490
"dockerFile": {
7591
"type": "string",
@@ -80,21 +96,30 @@
8096
"description": "The location of the context folder for building the Docker image. The path is relative to the folder containing the `devcontainer.json` file."
8197
}
8298
},
83-
"required": ["dockerFile"]
99+
"required": [
100+
"dockerFile"
101+
]
84102
},
85103
"imageContainer": {
104+
"type": "object",
86105
"properties": {
87106
"image": {
88107
"type": "string",
89108
"description": "The docker image that will be used to create the container."
90109
}
91110
},
92-
"required": ["image"]
111+
"required": [
112+
"image"
113+
]
93114
},
94115
"composeContainer": {
116+
"type": "object",
95117
"properties": {
96118
"dockerComposeFile": {
97-
"type": ["string", "array"],
119+
"type": [
120+
"string",
121+
"array"
122+
],
98123
"description": "The name of the docker-compose file(s) used to start the services.",
99124
"items": {
100125
"type": "string"
@@ -110,11 +135,18 @@
110135
},
111136
"shutdownAction": {
112137
"type": "string",
113-
"enum": ["none", "stopCompose"],
138+
"enum": [
139+
"none",
140+
"stopCompose"
141+
],
114142
"description": "Action to take when VS Code is shutting down. The default is to stop the containers."
115143
}
116144
},
117-
"required": ["dockerComposeFile", "service", "workspaceFolder"]
145+
"required": [
146+
"dockerComposeFile",
147+
"service",
148+
"workspaceFolder"
149+
]
118150
}
119151
},
120152
"allOf": [

extensions/vscode-test-resolver/src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ export function activate(context: vscode.ExtensionContext) {
105105
}
106106
extHostProcess.stdout.on('data', (data: Buffer) => processOutput(data.toString()));
107107
extHostProcess.stderr.on('data', (data: Buffer) => processOutput(data.toString()));
108-
extHostProcess.on('error', (error: Error) => processError(`remoteExtensionHostAgent failed with error:\n${error.message}`));
109-
extHostProcess.on('close', (code: number) => processError(`remoteExtensionHostAgent closed unexpectedly.\nError code: ${code}`));
108+
extHostProcess.on('error', (error: Error) => processError(`server failed with error:\n${error.message}`));
109+
extHostProcess.on('close', (code: number) => processError(`server closed unexpectedly.\nError code: ${code}`));
110110
});
111111
}
112112

tslint.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,14 +547,14 @@
547547
]
548548
},
549549
{
550-
"target": "**/vs/agent/**",
550+
"target": "**/vs/server/**",
551551
"restrictions": [
552552
"vs/nls",
553553
"**/vs/base/**/{common,node}/**",
554554
"**/vs/base/parts/**/{common,node}/**",
555555
"**/vs/platform/**/{common,node}/**",
556556
"**/vs/workbench/**/{common,node}/**",
557-
"**/vs/agent/**",
557+
"**/vs/server/**",
558558
"**/vs/code/**/{common,node}/**",
559559
"*" // node modules
560560
]

0 commit comments

Comments
 (0)