Fix #22419: Add kind field to OutliningSpan

This commit is contained in:
Mohamed Hegazy
2018-05-03 16:28:55 -07:00
parent 23b9a23455
commit e52efb04f3
15 changed files with 73 additions and 24 deletions

View File

@@ -530,7 +530,8 @@ namespace ts.server {
textSpan: this.decodeSpan(item.textSpan, file),
hintSpan: this.decodeSpan(item.hintSpan, file),
bannerText: item.bannerText,
autoCollapse: item.autoCollapse
autoCollapse: item.autoCollapse,
kind: item.kind
}));
}

View File

@@ -326,6 +326,11 @@ namespace ts.server.protocol {
* the 'Collapse to Definitions' command is invoked.
*/
autoCollapse: boolean;
/**
* Classification of the contents of the span
*/
kind: OutliningSpanKind;
}
/**

View File

@@ -1112,7 +1112,8 @@ namespace ts.server {
textSpan: this.toLocationTextSpan(s.textSpan, scriptInfo),
hintSpan: this.toLocationTextSpan(s.hintSpan, scriptInfo),
bannerText: s.bannerText,
autoCollapse: s.autoCollapse
autoCollapse: s.autoCollapse,
kind: s.kind
}));
}
else {