Skip to content

Commit 6ecde76

Browse files
committed
Update vscode API version and TypeScript compiler version
1 parent 0e590a7 commit 6ecde76

File tree

5 files changed

+17
-20
lines changed

5 files changed

+17
-20
lines changed

.vscode/launch.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
{
55
"name": "launch as server",
66
"type": "node",
7+
"request": "launch",
78
"program": "${workspaceRoot}/out/webkit/webKitDebug.js",
8-
"runtimeArgs": ["--harmony", "--nolazy"],
9+
"runtimeArgs": ["--nolazy"],
910
"stopOnEntry": true,
1011
"args": [ "--server=4712" ],
1112
"sourceMaps": true,
12-
"outDir": "${workspaceRoot}/out"
13+
"outDir": null,
14+
"cwd": "${workspaceRoot}"
1315
},
1416
{
1517
"name": "launch in extension host",
@@ -22,15 +24,6 @@
2224
],
2325
"stopOnEntry": false,
2426
"sourceMaps": true,
25-
"outDir": "${workspaceRoot}/out"
26-
},
27-
{
28-
"name": "test",
29-
"type": "node",
30-
"program": "${workspaceRoot}/node_modules/gulp/bin/gulp.js",
31-
"stopOnEntry": false,
32-
"args": [ "test" ],
33-
"sourceMaps": true,
3427
"outDir": "out"
3528
}
3629
]

common/v8Protocol.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ export class V8Protocol extends ee.EventEmitter {
212212

213213
default:
214214
throw new Error('Unknown state');
215-
break;
216215
}
217216
}
218217

nativescript/nativescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export abstract class NSProject extends EventEmitter {
4444
private _projectPath: string;
4545

4646
constructor(projectPath: string) {
47-
this._projectPath = projectPath;
4847
super();
48+
this._projectPath = projectPath;
4949
}
5050

5151
public projectPath(): string {

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"publisher": "Telerik",
1717
"bugs": "https://github.com/NativeScript/nativescript-vscode-extension/issues",
1818
"engines": {
19-
"vscode": "0.10.x"
19+
"vscode": "0.10.9"
2020
},
2121
"homepage": "https://www.nativescript.org/",
2222
"categories": ["Debuggers", "Other"],
@@ -29,15 +29,18 @@
2929
"gulp-mocha": "^2.1.3",
3030
"gulp-sourcemaps": "^1.5.2",
3131
"gulp-tslint": "^3.3.1",
32-
"gulp-typescript": "^2.8.0",
32+
"gulp-typescript": "^2.12.0",
3333
"gulp-util": "^3.0.5",
3434
"tsd": "^0.6.5",
3535
"tslint": "^2.5.1",
36-
"typescript": "^1.6.2",
37-
"vscode": "0.10.x",
36+
"typescript": "^1.8.2",
37+
"vscode": "^0.11.x",
3838
"vsce": "^1.0.0"
3939

4040
},
41+
"scripts": {
42+
"postinstall": "node ./node_modules/vscode/bin/install"
43+
},
4144
"main": "./out/nativescript/nsMain",
4245
"activationEvents": [
4346
"onCommand:nativescript.runIos",

tsconfig.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"compilerOptions": {
3+
"target": "es5",
34
"module": "commonjs",
5+
"moduleResolution": "node",
6+
"sourceMap": true,
47
"noImplicitAny": false,
58
"removeComments": false,
6-
"target": "ES5",
7-
"sourceMap": true,
8-
"outDir": "out"
9+
"outDir": "./out",
10+
"preserveConstEnums": true
911
},
1012
"exclude": [
1113
"node_modules",

0 commit comments

Comments
 (0)