File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
extensions/typescript-language-features/src/commands Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,17 @@ import * as vscode from 'vscode';
7
7
import { Command } from './commandManager' ;
8
8
9
9
export interface OpenJsDocLinkCommand_Args {
10
- readonly file : vscode . Uri ;
11
- readonly position : vscode . Position ;
10
+ readonly file : {
11
+ readonly scheme : string ;
12
+ readonly authority ?: string ;
13
+ readonly path ?: string ;
14
+ readonly query ?: string ;
15
+ readonly fragment ?: string ;
16
+ } ;
17
+ readonly position : {
18
+ readonly line : number ;
19
+ readonly character : number ;
20
+ } ;
12
21
}
13
22
14
23
/**
@@ -21,8 +30,10 @@ export class OpenJsDocLinkCommand implements Command {
21
30
public readonly id = OpenJsDocLinkCommand . id ;
22
31
23
32
public async execute ( args : OpenJsDocLinkCommand_Args ) : Promise < void > {
33
+ const { line, character } = args . position ;
34
+ const position = new vscode . Position ( line , character ) ;
24
35
await vscode . commands . executeCommand ( 'vscode.open' , vscode . Uri . from ( args . file ) , < vscode . TextDocumentShowOptions > {
25
- selection : new vscode . Range ( args . position , args . position ) ,
36
+ selection : new vscode . Range ( position , position ) ,
26
37
} ) ;
27
38
}
28
39
}
You can’t perform that action at this time.
0 commit comments