mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Add test for completions
This commit is contained in:
@@ -177,10 +177,11 @@ module ts.server {
|
||||
|
||||
getCompletionsAtPosition(fileName: string, position: number): CompletionInfo {
|
||||
var lineCol = this.positionToOneBasedLineCol(fileName, position);
|
||||
var args: ServerProtocol.CodeLocationRequestArgs = {
|
||||
var args: ServerProtocol.CompletionsRequestArgs = {
|
||||
file: fileName,
|
||||
line: lineCol.line,
|
||||
col: lineCol.col,
|
||||
prefix: undefined
|
||||
};
|
||||
|
||||
var request = this.processRequest<ServerProtocol.CompletionsRequest>(CommandNames.Completions, args);
|
||||
|
||||
Reference in New Issue
Block a user