mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Pick up latest TS@next
This commit is contained in:
@@ -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)
|
||||
};
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user