Skip to content

Commit f073981

Browse files
committed
Update command name
1 parent 70c2d58 commit f073981

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/server/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ module ts.server {
308308
offset: lineOffset.offset,
309309
};
310310

311-
var request = this.processRequest<protocol.TypeDefinitionRequest>(CommandNames.Type, args);
311+
var request = this.processRequest<protocol.TypeDefinitionRequest>(CommandNames.TypeDefinition, args);
312312
var response = this.processResponse<protocol.TypeDefinitionResponse>(request);
313313

314314
return response.body.map(entry => {

src/server/protocol.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ declare module ts.server.protocol {
127127

128128
/**
129129
* Go to type request; value of command field is
130-
* "type". Return response giving the file locations that
130+
* "typeDefinition". Return response giving the file locations that
131131
* define the type for the symbol found in file at location line, col.
132132
*/
133133
export interface TypeDefinitionRequest extends FileLocationRequest {

src/server/session.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module ts.server {
9797
export var Rename = "rename";
9898
export var Saveto = "saveto";
9999
export var SignatureHelp = "signatureHelp";
100-
export var Type = "type";
100+
export var TypeDefinition = "typeDefinition";
101101
export var Unknown = "unknown";
102102
}
103103

@@ -840,7 +840,7 @@ module ts.server {
840840
response = this.getDefinition(defArgs.line, defArgs.offset, defArgs.file);
841841
break;
842842
}
843-
case CommandNames.Type: {
843+
case CommandNames.TypeDefinition: {
844844
var defArgs = <protocol.FileLocationRequestArgs>request.arguments;
845845
response = this.getTypeDefinition(defArgs.line, defArgs.offset, defArgs.file);
846846
break;

0 commit comments

Comments
 (0)