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

@@ -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];
}