Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Update packages (#2014)
Browse files Browse the repository at this point in the history
* feat: Update packages

* feat: Update vscode engine to fix typings

* fix: Drop vscode version to 1.22

* fix: tslint auto lint project
  • Loading branch information
alexdor authored and ramya-rao-a committed Oct 20, 2018
1 parent 2329da0 commit 833445d
Show file tree
Hide file tree
Showing 10 changed files with 585 additions and 1,150 deletions.
1,691 changes: 563 additions & 1,128 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@
},
"extensionDependencies": [],
"dependencies": {
"console-stamp": "^0.2.2",
"diff": "~3.3.0",
"console-stamp": "^0.2.7",
"diff": "^3.5.0",
"json-rpc2": "^1.0.2",
"vscode-debug-logger": "^0.0.4",
"vscode-debugadapter": "^1.30.0",
"vscode-debugprotocol": "^1.11.0",
"vscode-debug-logger": "0.0.5",
"vscode-debugadapter": "^1.32.1",
"vscode-debugprotocol": "^1.32.0",
"vscode-extension-telemetry": "^0.1.0",
"vscode-languageclient": "~4.3.0"
},
"devDependencies": {
"@types/fs-extra": "0.0.35",
"@types/mocha": "^2.2.33",
"@types/node": "^6.0.50",
"fs-extra": "^1.0.0",
"tslint": "^4.0.2",
"typescript": "^2.1.5",
"@types/fs-extra": "^5.0.4",
"@types/mocha": "^5.2.5",
"@types/node": "^6.14.0",
"fs-extra": "^7.0.0",
"tslint": "^5.11.0",
"typescript": "^3.1.3",
"vscode": "^1.1.21"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ interface LoadConfig {
maxArrayValues: number;
// MaxStructFields is the maximum number of fields read from a struct, -1 will read all fields.
maxStructFields: number;
};
}

interface DebugThread {
file: string;
id: number;
line: number;
pc: number;
function?: DebugFunction;
};
}

interface StacktraceOut {
Locations: DebugLocation[];
Expand Down
2 changes: 1 addition & 1 deletion src/diffUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function isDiffToolAvailable(): boolean {
return diffToolAvailable;
}

export enum EditTypes { EDIT_DELETE, EDIT_INSERT, EDIT_REPLACE };
export enum EditTypes { EDIT_DELETE, EDIT_INSERT, EDIT_REPLACE }

export class Edit {
action: number;
Expand Down
6 changes: 3 additions & 3 deletions src/goDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function definitionLocation_godef(document: vscode.TextDocument, isMod: boolean,
}
if (err) {
return reject(err.message || stderr);
};
}
let result = stdout.toString();
let lines = result.split('\n');
let match = /(.*):(\d+):(\d+)/.exec(lines[0]);
Expand Down Expand Up @@ -164,7 +164,7 @@ function definitionLocation_gogetdoc(document: vscode.TextDocument, isMod: boole
return resolve(null);
}
return reject(err.message || stderr);
};
}
let goGetDocOutput = <GoGetDocOuput>JSON.parse(stdout.toString());
let match = /(.*):(\d+):(\d+)/.exec(goGetDocOutput.pos);
let definitionInfo = {
Expand Down Expand Up @@ -212,7 +212,7 @@ function definitionLocation_guru(document: vscode.TextDocument, position: vscode
}
if (err) {
return reject(err.message || stderr);
};
}
let guruOutput = <GuruDefinitionOuput>JSON.parse(stdout.toString());
let match = /(.*):(\d+):(\d+)/.exec(guruOutput.objpos);
let definitionInfo = {
Expand Down
2 changes: 1 addition & 1 deletion src/goGenerateTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function generateTestCurrentFunction(): Thenable<boolean> {
currentFunction = func;
break;
}
};
}
if (!currentFunction) {
vscode.window.showInformationMessage('No function found at cursor.');
return Promise.resolve(false);
Expand Down
2 changes: 1 addition & 1 deletion src/goGetPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ export function goGetPackage() {
// go get -v doesn't write anything when the package already exists
vscode.window.showInformationMessage(`Package already exists: ${importPath}`);
});
};
}
2 changes: 1 addition & 1 deletion src/goSuggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export class GoCompletionItemProvider implements vscode.CompletionItemProvider {
item.sortText = 'a';
suggestions.push(item);
suggestionSet.add(item.label);
};
}
}

// Add importable packages matching currentword to suggestions
Expand Down
2 changes: 1 addition & 1 deletion src/goTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function testAtCursor(goConfig: vscode.WorkspaceConfiguration, isBenchmar
testFunctionName = func.name;
break;
}
};
}
}

if (!testFunctionName) {
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ export function handleDiagnosticErrors(document: vscode.TextDocument, errors: IC
warningDiagnosticCollection.set(fileUri, newWarnings);
}
});
};
}


function mapSeverityToVSCodeSeverity(sev: string): vscode.DiagnosticSeverity {
Expand Down

0 comments on commit 833445d

Please sign in to comment.