提交 189f411c 编写于 作者: J Johannes Rieken

:liptsick: tuple types and destructuring

上级 20209812
......@@ -300,11 +300,9 @@ function metaTitle(references: IReference[]): string {
}
}
let findReferencesCommand: ICommandHandler = (accessor, args) => {
let resource = <URI>args[0];
let position = <editorCommon.IPosition>args[1];
let findReferencesCommand: ICommandHandler = (accessor, args:[URI, editorCommon.IPosition]) => {
let [resource, position] = args;
if (!(resource instanceof URI)) {
throw new Error('illegal argument, uri');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册