typescript upgrade

This commit is contained in:
WebFreak001 2016-12-07 00:10:55 +01:00
commit 2f2d0294f4
6 changed files with 20 additions and 16 deletions

View file

@ -521,18 +521,20 @@
] ]
}, },
"scripts": { "scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile", "vscode:prepublish": "tsc -p ./",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./", "compile": "tsc -watch -p ./",
"test": "node ./node_modules/vscode/bin/test",
"postinstall": "node ./node_modules/vscode/bin/install" "postinstall": "node ./node_modules/vscode/bin/install"
}, },
"dependencies": { "dependencies": {
"vscode-debugadapter": "^1.10.0", "vscode-debugadapter": "^1.14.0",
"vscode-debugprotocol": "^1.10.0", "vscode-debugprotocol": "^1.14.0",
"ssh2": "^0.5.0" "ssh2": "^0.5.4"
}, },
"devDependencies": { "devDependencies": {
"typescript": "^1.8.10", "typescript": "^2.0.10",
"vscode": "0.11.x" "vscode": "^1.0.3",
"mocha": "^3.2.0",
"@types/node": "^6.0.40",
"@types/mocha": "^2.2.32"
} }
} }

View file

@ -1,4 +1,4 @@
import { Breakpoint, IBackend, Stack, SSHArguments, Variable } from "../backend.ts" import { Breakpoint, IBackend, Stack, SSHArguments, Variable } from "../backend"
import * as ChildProcess from "child_process" import * as ChildProcess from "child_process"
import { EventEmitter } from "events" import { EventEmitter } from "events"
import { parseMI, MINode } from '../mi_parse'; import { parseMI, MINode } from '../mi_parse';

View file

@ -343,7 +343,7 @@ export class MI2DebugSession extends DebugSession {
let addOne = () => { let addOne = () => {
this.miDebugger.evalExpression(JSON.stringify(varReq.name + "+" + arrIndex + ")")).then(variable => { this.miDebugger.evalExpression(JSON.stringify(varReq.name + "+" + arrIndex + ")")).then(variable => {
try { try {
let expanded = expandValue(createVariable, variable.result("value"), id, variable); let expanded = expandValue(createVariable, variable.result("value"), varReq.name, variable);
if (!expanded) { if (!expanded) {
this.sendErrorResponse(response, 15, `Could not expand variable`); this.sendErrorResponse(response, 15, `Could not expand variable`);
} }

View file

@ -1,12 +1,16 @@
{ {
"compilerOptions": { "compilerOptions": {
"module": "commonjs", "module": "commonjs",
"target": "ES5", "target": "es6",
"outDir": "out", "outDir": "out",
"noLib": true, "lib": [
"sourceMap": true "es6"
],
"sourceMap": true,
"rootDir": "."
}, },
"exclude": [ "exclude": [
"node_modules" "node_modules",
".vscode-test"
] ]
} }

1
typings/node.d.ts vendored
View file

@ -1 +0,0 @@
/// <reference path="../node_modules/vscode/typings/node.d.ts" />

View file

@ -1 +0,0 @@
/// <reference path="../node_modules/vscode/typings/index.d.ts" />