Compare commits
8 Commits
2.1638-vsc
...
2.1650-vsc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f73e9225b4 | ||
|
|
168ccb0dfc | ||
|
|
58f7f5b769 | ||
|
|
b8e6369fbe | ||
|
|
d81d5f499f | ||
|
|
4be178d234 | ||
|
|
9c40466b4b | ||
|
|
95693fb58e |
@@ -30,7 +30,7 @@ jobs:
|
|||||||
- name: "MacOS build"
|
- name: "MacOS build"
|
||||||
os: osx
|
os: osx
|
||||||
if: tag IS blank
|
if: tag IS blank
|
||||||
script: travis_wait 40 scripts/ci.bash
|
script: travis_wait 60 scripts/ci.bash
|
||||||
|
|
||||||
git:
|
git:
|
||||||
depth: 3
|
depth: 3
|
||||||
|
|||||||
@@ -303,14 +303,16 @@ class Builder {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
// This is so it doesn't get cached along with VS Code. There's no point
|
// Prevent needless cache changes.
|
||||||
// since there isn't anything like an incremental build.
|
await this.task("Cleaning for smaller cache", () => {
|
||||||
await this.task("Removing build files for smaller cache", () => {
|
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
fs.remove(serverPath),
|
fs.remove(serverPath),
|
||||||
fs.remove(path.join(vscodeSourcePath, "out-vscode")),
|
fs.remove(path.join(vscodeSourcePath, "out-vscode")),
|
||||||
fs.remove(path.join(vscodeSourcePath, "out-vscode-min")),
|
fs.remove(path.join(vscodeSourcePath, "out-vscode-min")),
|
||||||
fs.remove(path.join(vscodeSourcePath, "out-build")),
|
fs.remove(path.join(vscodeSourcePath, "out-build")),
|
||||||
|
util.promisify(cp.exec)("git reset --hard", { cwd: vscodeSourcePath }).then(() => {
|
||||||
|
return util.promisify(cp.exec)("git clean -fd", { cwd: vscodeSourcePath });
|
||||||
|
}),
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ index 990755c4f3..06449bb9cb 100644
|
|||||||
+ extraBuiltinExtensionPaths: string[];
|
+ extraBuiltinExtensionPaths: string[];
|
||||||
}
|
}
|
||||||
diff --git a/src/vs/platform/environment/node/argv.ts b/src/vs/platform/environment/node/argv.ts
|
diff --git a/src/vs/platform/environment/node/argv.ts b/src/vs/platform/environment/node/argv.ts
|
||||||
index 3e48fe4ddd..e0962b8736 100644
|
index 3e48fe4ddd..2212ff5471 100644
|
||||||
--- a/src/vs/platform/environment/node/argv.ts
|
--- a/src/vs/platform/environment/node/argv.ts
|
||||||
+++ b/src/vs/platform/environment/node/argv.ts
|
+++ b/src/vs/platform/environment/node/argv.ts
|
||||||
@@ -58,6 +58,8 @@ export const OPTIONS: OptionDescriptions<Required<ParsedArgs>> = {
|
@@ -58,6 +58,8 @@ export const OPTIONS: OptionDescriptions<Required<ParsedArgs>> = {
|
||||||
@@ -99,6 +99,15 @@ index 3e48fe4ddd..e0962b8736 100644
|
|||||||
'list-extensions': { type: 'boolean', cat: 'e', description: localize('listExtensions', "List the installed extensions.") },
|
'list-extensions': { type: 'boolean', cat: 'e', description: localize('listExtensions', "List the installed extensions.") },
|
||||||
'show-versions': { type: 'boolean', cat: 'e', description: localize('showVersions', "Show versions of installed extensions, when using --list-extension.") },
|
'show-versions': { type: 'boolean', cat: 'e', description: localize('showVersions', "Show versions of installed extensions, when using --list-extension.") },
|
||||||
'category': { type: 'string', cat: 'e', description: localize('category', "Filters installed extensions by provided category, when using --list-extension.") },
|
'category': { type: 'string', cat: 'e', description: localize('category', "Filters installed extensions by provided category, when using --list-extension.") },
|
||||||
|
@@ -185,7 +187,7 @@ export function parseArgs<T>(args: string[], options: OptionDescriptions<T>, err
|
||||||
|
delete parsedArgs[o.deprecates];
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (val) {
|
||||||
|
+ if (typeof val !== 'undefined') {
|
||||||
|
if (o.type === 'string[]') {
|
||||||
|
if (val && !Array.isArray(val)) {
|
||||||
|
val = [val];
|
||||||
diff --git a/src/vs/platform/environment/node/environmentService.ts b/src/vs/platform/environment/node/environmentService.ts
|
diff --git a/src/vs/platform/environment/node/environmentService.ts b/src/vs/platform/environment/node/environmentService.ts
|
||||||
index f7d207009d..5c37b52dab 100644
|
index f7d207009d..5c37b52dab 100644
|
||||||
--- a/src/vs/platform/environment/node/environmentService.ts
|
--- a/src/vs/platform/environment/node/environmentService.ts
|
||||||
|
|||||||
@@ -193,6 +193,11 @@ export abstract class Server {
|
|||||||
return { content: await util.promisify(fs.readFile)(filePath), filePath };
|
return { content: await util.promisify(fs.readFile)(filePath), filePath };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected async getAnyResource(...parts: string[]): Promise<Response> {
|
||||||
|
const filePath = path.join(...parts);
|
||||||
|
return { content: await util.promisify(fs.readFile)(filePath), filePath };
|
||||||
|
}
|
||||||
|
|
||||||
protected async getTarredResource(...parts: string[]): Promise<Response> {
|
protected async getTarredResource(...parts: string[]): Promise<Response> {
|
||||||
const filePath = this.ensureAuthorizedFilePath(...parts);
|
const filePath = this.ensureAuthorizedFilePath(...parts);
|
||||||
return { stream: tarFs.pack(filePath), filePath, mime: "application/tar", cache: true };
|
return { stream: tarFs.pack(filePath), filePath, mime: "application/tar", cache: true };
|
||||||
@@ -523,8 +528,8 @@ export class MainServer extends Server {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "/webview":
|
case "/webview":
|
||||||
if (requestPath.indexOf("/vscode-resource") === 0) {
|
if (/^\/vscode-resource/.test(requestPath)) {
|
||||||
return this.getResource(requestPath.replace(/^\/vscode-resource/, ""));
|
return this.getAnyResource(requestPath.replace(/^\/vscode-resource(\/file)?/, ""));
|
||||||
}
|
}
|
||||||
return this.getResource(
|
return this.getResource(
|
||||||
this.rootPath,
|
this.rootPath,
|
||||||
|
|||||||
Reference in New Issue
Block a user