Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 83452f0

Browse files
committedApr 5, 2019
Update VS Code to 1.33.0
1 parent e73eb74 commit 83452f0

File tree

10 files changed

+292
-287
lines changed

10 files changed

+292
-287
lines changed
 

‎build/tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const libPath = path.join(__dirname, "../lib");
1212
const vscodePath = path.join(libPath, "vscode");
1313
const defaultExtensionsPath = path.join(libPath, "extensions");
1414
const pkgsPath = path.join(__dirname, "../packages");
15-
const vscodeVersion = process.env.VSCODE_VERSION || "1.32.0";
15+
const vscodeVersion = process.env.VSCODE_VERSION || "1.33.0";
1616
const vsSourceUrl = `https://codesrv-ci.cdr.sh/vstar-${vscodeVersion}.tar.gz`;
1717

1818
const buildServerBinary = register("build:server:binary", async (runner) => {

‎packages/ide/src/client.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,16 @@ export abstract class IdeClient {
4141
});
4242

4343
this.sharedProcessData = new Promise((resolve): void => {
44-
client.onSharedProcessActive(resolve);
44+
let d = client.onSharedProcessActive((data) => {
45+
d.dispose();
46+
d = client.onSharedProcessActive(() => {
47+
d.dispose();
48+
this.retry.notificationService.error(
49+
new Error("Disconnected from shared process. Searching, installing, enabling, and disabling extensions will not work until the page is refreshed."),
50+
);
51+
});
52+
resolve(data);
53+
});
4554
});
4655

4756
window.addEventListener("contextmenu", (event) => {
@@ -65,17 +74,17 @@ export abstract class IdeClient {
6574
});
6675
}
6776

68-
/**
69-
* Wrap a task in some logging, timing, and progress updates. Can optionally
70-
* wait on other tasks which won't count towards this task's time.
71-
*/
7277
public async task<T>(description: string, duration: number, task: () => Promise<T>): Promise<T>;
7378
public async task<T, V>(description: string, duration: number, task: (v: V) => Promise<T>, t: Promise<V>): Promise<T>;
7479
public async task<T, V1, V2>(description: string, duration: number, task: (v1: V1, v2: V2) => Promise<T>, t1: Promise<V1>, t2: Promise<V2>): Promise<T>;
7580
public async task<T, V1, V2, V3>(description: string, duration: number, task: (v1: V1, v2: V2, v3: V3) => Promise<T>, t1: Promise<V1>, t2: Promise<V2>, t3: Promise<V3>): Promise<T>;
7681
public async task<T, V1, V2, V3, V4>(description: string, duration: number, task: (v1: V1, v2: V2, v3: V3, v4: V4) => Promise<T>, t1: Promise<V1>, t2: Promise<V2>, t3: Promise<V3>, t4: Promise<V4>): Promise<T>;
7782
public async task<T, V1, V2, V3, V4, V5>(description: string, duration: number, task: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5) => Promise<T>, t1: Promise<V1>, t2: Promise<V2>, t3: Promise<V3>, t4: Promise<V4>, t5: Promise<V5>): Promise<T>;
7883
public async task<T, V1, V2, V3, V4, V5, V6>(description: string, duration: number, task: (v1: V1, v2: V2, v3: V3, v4: V4, v5: V5, v6: V6) => Promise<T>, t1: Promise<V1>, t2: Promise<V2>, t3: Promise<V3>, t4: Promise<V4>, t5: Promise<V5>, t6: Promise<V6>): Promise<T>;
84+
/**
85+
* Wrap a task in some logging, timing, and progress updates. Can optionally
86+
* wait on other tasks which won't count towards this task's time.
87+
*/
7988
public async task<T>(
8089
description: string, duration: number = 100, task: (...args: any[]) => Promise<T>, ...after: Array<Promise<any>> // tslint:disable-line no-any
8190
): Promise<T> {

‎packages/ide/src/retry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class Retry {
147147
*
148148
* Blocking without a name will override a block with a name.
149149
*/
150-
private block(name?: string): void {
150+
public block(name?: string): void {
151151
if (!this.blocked || !name) {
152152
this.blocked = name || true;
153153
this.items.forEach((item) => {

‎packages/protocol/src/browser/modules/spdlog.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,12 @@ export class SpdlogModule {
4545
public setAsyncMode = (bufferSize: number, flushInterval: number): Promise<void> => {
4646
return this.proxy.setAsyncMode(bufferSize, flushInterval);
4747
}
48+
49+
public createRotatingLogger(name: string, filename: string, filesize: number, filecount: number): RotatingLogger {
50+
return new RotatingLogger(this.proxy, name, filename, filesize, filecount);
51+
}
52+
53+
public createRotatingLoggerAsync(name: string, filename: string, filesize: number, filecount: number): Promise<RotatingLogger> {
54+
return Promise.resolve(this.createRotatingLogger(name, filename, filesize, filecount));
55+
}
4856
}

‎packages/vscode/src/fill/paste.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as nls from "vs/nls";
22
import { Action } from "vs/base/common/actions";
33
import { TERMINAL_COMMAND_ID } from "vs/workbench/contrib/terminal/common/terminalCommands";
44
import { ITerminalService } from "vs/workbench/contrib/terminal/common/terminal";
5-
import * as actions from "vs/workbench/contrib/terminal/electron-browser/terminalActions";
6-
import * as instance from "vs/workbench/contrib/terminal/electron-browser/terminalInstance";
5+
import * as actions from "vs/workbench/contrib/terminal/browser/terminalActions";
6+
import * as instance from "vs/workbench/contrib/terminal/browser/terminalInstance";
77
import { client } from "../client";
88

99
const getLabel = (key: string, enabled: boolean): string => {

‎packages/vscode/src/fill/workbenchRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { IWorkbenchActionRegistry, Extensions } from "vs/workbench/common/action
55
import { SyncActionDescriptor } from "vs/platform/actions/common/actions";
66
import { ContextKeyExpr } from "vs/platform/contextkey/common/contextkey";
77
import { ToggleDevToolsAction } from "vs/workbench/electron-browser/actions/developerActions";
8-
import { TerminalPasteAction } from "vs/workbench/contrib/terminal/electron-browser/terminalActions";
8+
import { TerminalPasteAction } from "vs/workbench/contrib/terminal/browser/terminalActions";
99
import { KEYBINDING_CONTEXT_TERMINAL_FOCUS } from "vs/workbench/contrib/terminal/common/terminal";
1010
import { KeyCode, KeyMod } from "vs/base/common/keyCodes";
1111
import { workbench } from "../workbench";

‎packages/vscode/src/workbench.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ export class Workbench {
139139
logger.error(error.message);
140140
});
141141

142+
const contextKeys = this.serviceCollection.get(IContextKeyService) as IContextKeyService;
143+
const bounded = this.clipboardContextKey.bindTo(contextKeys);
144+
client.clipboard.onPermissionChange((enabled) => {
145+
bounded.set(enabled);
146+
});
147+
client.clipboard.initialize();
148+
142149
client.progressService = {
143150
start: <T>(title: string, task: (progress: IProgress) => Promise<T>, onCancel: () => void): Promise<T> => {
144151
let lastProgress = 0;
@@ -237,12 +244,6 @@ export class Workbench {
237244
return;
238245
}
239246
}
240-
const contextKeys = this.serviceCollection.get(IContextKeyService) as IContextKeyService;
241-
const bounded = this.clipboardContextKey.bindTo(contextKeys);
242-
client.clipboard.onPermissionChange((enabled) => {
243-
bounded.set(enabled);
244-
});
245-
client.clipboard.initialize();
246247
}
247248
}
248249

‎packages/vscode/webpack.bootstrap.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ module.exports = merge(
3636
loader: "ignore-loader",
3737
}],
3838
}, {
39-
test: /((\\|\/)vs(\\|\/)code(\\|\/)electron-main(\\|\/))|((\\|\/)test(\\|\/))|(OSSREADME\.json$)|\/browser\//,
39+
// The only thing we need in electron-browser is the shared main shared process.
40+
test: /((\\|\/)vs(\\|\/)code(\\|\/)electron-main(\\|\/))|((\\|\/)test(\\|\/))|(OSSREADME\.json$)|\/browser\/|\/electron-browser\/(?!sharedProcess\/sharedProcessMain\.ts).+\//,
4041
use: [{
4142
loader: "ignore-loader",
4243
}],
@@ -50,6 +51,7 @@ module.exports = merge(
5051
"windows-mutex": path.resolve(fills, "empty.ts"),
5152
"windows-process-tree": path.resolve(fills, "empty.ts"),
5253
"vscode-windows-registry": path.resolve(fills, "empty.ts"),
54+
"vscode-windows-ca-certs": path.resolve(fills, "empty.ts"),
5355
"vscode-sqlite3": path.resolve(fills, "empty.ts"),
5456
"vs/base/browser/browser": path.resolve(fills, "empty.ts"),
5557

‎scripts/vscode.patch

Lines changed: 254 additions & 269 deletions
Large diffs are not rendered by default.

‎scripts/vstar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euxo pipefail
44
# Builds a tarfile containing vscode sourcefiles neccessary for CI.
55
# Done outside the CI and uploaded to object storage to reduce CI time.
66

7-
branch=1.32.0
7+
branch=1.33.0
88
dir=/tmp/vstar
99
outfile=/tmp/vstar-$branch.tar.gz
1010
rm -rf $dir

0 commit comments

Comments
 (0)
Please sign in to comment.