提交 ab6290f3 编写于 作者: M Matt Bierner

Remove cast

上级 f0e15cfe
......@@ -51,8 +51,7 @@ export default class TypeScriptFoldingProvider implements vscode.FoldingRangePro
}
private static getFoldingRangeKind(span: Proto.OutliningSpan): vscode.FoldingRangeKind | undefined {
// TODO: remove cast once we get a new TS insiders
switch ((span as Proto.OutliningSpan & { kind: any }).kind) {
switch (span.kind) {
case 'comment': return vscode.FoldingRangeKind.Comment;
case 'region': return vscode.FoldingRangeKind.Region;
case 'imports': return vscode.FoldingRangeKind.Imports;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册