diff --git a/build/benchmark.yml b/build/benchmark.yml index bf3d5aa..a58a7be 100644 --- a/build/benchmark.yml +++ b/build/benchmark.yml @@ -90,7 +90,7 @@ parameters: type: string default: 'any,ts-perf1,ts-perf2,ts-perf3,ts-perf4,ts-perf5,ts-perf6,ts-perf7,ts-perf8,ts-perf9,ts-perf10,ts-perf11,ts-perf12' - name: TS_GO - displayName: boolean to describe if building ts-go + displayName: building ts-go type: boolean default: false diff --git a/ts-perf/packages/commands/src/benchmark/measurelsp.ts b/ts-perf/packages/commands/src/benchmark/measurelsp.ts index 734c748..b7ab4ff 100644 --- a/ts-perf/packages/commands/src/benchmark/measurelsp.ts +++ b/ts-perf/packages/commands/src/benchmark/measurelsp.ts @@ -280,8 +280,8 @@ async function runPerf(options: CLIOpts) { await connection.sendRequest(protocol.ReferencesRequest.method, { textDocument: { uri: fileUri }, position: { - line: command.args.line, - character: command.args.offset, + line: command.args.line - 1, + character: command.args.offset - 1, }, context: { includeDeclaration: true }, } as protocol.ReferenceParams); @@ -307,8 +307,8 @@ async function runPerf(options: CLIOpts) { { textDocument: { uri: fileUri }, position: { - line: command.args.line, - character: command.args.offset, + line: command.args.line - 1, + character: command.args.offset - 1, }, } as protocol.CompletionParams, );