summaryrefslogtreecommitdiff
path: root/development/vscode/vscode-1.8.1.patch
blob: dd6e3475cf5cd874f5a6198fe3efb6411c1d1e7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From f9ce2e16fcfb3699af9596d8f1e28a3ee8e27171 Mon Sep 17 00:00:00 2001
From: Benjamin Pasero <benjpas@microsoft.com>
Date: Mon, 9 Jan 2017 18:13:23 +0100
Subject: [PATCH] fix compile errors

---
 extensions/vscode-api-tests/src/window.test.ts    | 2 +-
 extensions/vscode-api-tests/src/workspace.test.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extensions/vscode-api-tests/src/window.test.ts b/extensions/vscode-api-tests/src/window.test.ts
index 5cf72dd..9273df4 100644
--- a/extensions/vscode-api-tests/src/window.test.ts
+++ b/extensions/vscode-api-tests/src/window.test.ts
@@ -315,7 +315,7 @@ suite('window namespace tests', () => {
 		assert.equal(terminal.name, 'foo');
 
 		assert.throws(() => {
-			terminal.name = 'bar';
+			(<any>terminal).name = 'bar';
 		}, 'Terminal.name should be readonly');
 	});
 
diff --git a/extensions/vscode-api-tests/src/workspace.test.ts b/extensions/vscode-api-tests/src/workspace.test.ts
index b963ab6..0b4e2c0 100644
--- a/extensions/vscode-api-tests/src/workspace.test.ts
+++ b/extensions/vscode-api-tests/src/workspace.test.ts
@@ -24,7 +24,7 @@ suite('workspace-namespace', () => {
 		assert.equal(config['config0'], true);
 		assert.equal(config['config4'], '');
 
-		assert.throws(() => config['config4'] = 'valuevalue');
+		assert.throws(() => (<any>config)['config4'] = 'valuevalue');
 
 		assert.ok(config.has('nested.config1'));
 		assert.equal(config.get('nested.config1'), 42);