mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Add a few casts to work around issues in ts 2.1.4 (#16861)
This commit is contained in:
@@ -247,7 +247,7 @@ export class ProjectJSONContribution implements JSONWorkerContribution {
|
||||
}
|
||||
return this.getNugetService('SearchQueryService').then(service => {
|
||||
let queryUrl = service + '?q=' + encodeURIComponent(pack) + '&take=' + 10;
|
||||
return this.makeJSONRequest<any>(queryUrl).then(resultObj => {
|
||||
return this.makeJSONRequest<CompletionItem>(queryUrl).then(resultObj => {
|
||||
let itemResolved = false;
|
||||
if (Array.isArray(resultObj.data)) {
|
||||
let results = <any[]>resultObj.data;
|
||||
|
||||
Reference in New Issue
Block a user