Skip to content

Commit

Permalink
feat(cmds): parentModule extension
Browse files Browse the repository at this point in the history
  • Loading branch information
keeneyetact committed May 25, 2020
1 parent 3111600 commit cfa3a3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export function parentModule(ctx: Ctx): Cmd {

const response = await ctx.client.sendRequest(ra.parentModule, param);
if (response.length > 0) {
const uri = response[0].uri;
const range = response[0].range;
const uri = response[0].targetUri;
const range = response[0].targetRange;

workspace.jumpTo(uri, range.start);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lsp_ext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface MatchingBraceParams {
}
export const matchingBrace = new lc.RequestType<MatchingBraceParams, lc.Position[], void>('experimental/matchingBrace');

export const parentModule = new lc.RequestType<lc.TextDocumentPositionParams, lc.Location[], void>('rust-analyzer/parentModule');
export const parentModule = new lc.RequestType<lc.TextDocumentPositionParams, lc.LocationLink[], void>('experimental/parentModule');

export interface JoinLinesParams {
textDocument: lc.TextDocumentIdentifier;
Expand Down

0 comments on commit cfa3a3d

Please sign in to comment.