mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 10:40:34 -05:00
Fix #22419: Add kind field to OutliningSpan
This commit is contained in:
@@ -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
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user