Pick up latest TS@next

This commit is contained in:
Matt Bierner 2019-05-17 10:11:13 -07:00
parent d5534b8604
commit 12cf3eb0f8
4 changed files with 7 additions and 18 deletions

View file

@ -3,7 +3,7 @@
"version": "0.0.1",
"description": "Dependencies shared by all extensions",
"dependencies": {
"typescript": "3.5.0-dev.20190515"
"typescript": "3.5.0-dev.20190517"
},
"scripts": {
"postinstall": "node ./postinstall"

View file

@ -27,7 +27,7 @@ class SmartSelection implements vscode.SelectionRangeProvider {
return undefined;
}
const args: Proto.FileRequestArgs & { locations: Proto.Location[] } = {
const args: Proto.SelectionRangeRequestArgs = {
file,
locations: positions.map(typeConverters.Position.toLocation)
};

View file

@ -11,17 +11,6 @@ import { TypeScriptServiceConfiguration } from './utils/configuration';
import Logger from './utils/logger';
import { PluginManager } from './utils/plugins';
declare module './protocol' {
interface SelectionRange {
textSpan: Proto.TextSpan;
parent?: SelectionRange;
}
interface SelectionRangeResponse extends Proto.Response {
body?: ReadonlyArray<SelectionRange>;
}
}
export namespace ServerResponse {
export class Cancelled {
@ -65,7 +54,7 @@ export interface TypeScriptRequestTypes {
'quickinfo': [Proto.FileLocationRequestArgs, Proto.QuickInfoResponse];
'references': [Proto.FileLocationRequestArgs, Proto.ReferencesResponse];
'rename': [Proto.RenameRequestArgs, Proto.RenameResponse];
'selectionRange': [Proto.FileRequestArgs & { locations: Proto.Location[] }, Proto.SelectionRangeResponse];
'selectionRange': [Proto.SelectionRangeRequestArgs, Proto.SelectionRangeResponse];
'signatureHelp': [Proto.SignatureHelpRequestArgs, Proto.SignatureHelpResponse];
'typeDefinition': [Proto.FileLocationRequestArgs, Proto.TypeDefinitionResponse];
}

View file

@ -2,7 +2,7 @@
# yarn lockfile v1
typescript@3.5.0-dev.20190515:
version "3.5.0-dev.20190515"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.0-dev.20190515.tgz#e34d9f4ae5352ecbb7bbc2f67db6cef3d5f7d58e"
integrity sha512-pE5yxFLdt5gT8PEX1Ra7vWU6HCdo4039be182oeWk8PTBWCWqr/XxlTjRxWfYgycNrI1vMjOux+n2y0aFJ9eUg==
typescript@3.5.0-dev.20190517:
version "3.5.0-dev.20190517"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.0-dev.20190517.tgz#5a85f1091cf33fde39b04f898c5730e30edd3e39"
integrity sha512-KoBHq6ytEApXKTDtmTu4Sp/tC5SPe4FpvwutLEANhwdMPblqZdh7APuH7I/ceMlgfHSa7B00JgF7NokUJQi0/g==