File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,8 @@ export class FoldingRangeProvider implements vscode.FoldingRangeProvider {
2929 const result : vscode . FoldingRange [ ] = [ ] ;
3030 ranges . ranges . forEach ( ( r : CppFoldingRange ) => {
3131 const foldingRange : vscode . FoldingRange = {
32- start : r . range . start . line ,
33- // Move the end range up one, so the end } line isn't folded, because
34- // VS Code doesn't support column-based folding: https://github.com/microsoft/vscode/issues/50840
35- // The behavior matches TypeScript but not VS (which has column-based folding).
36- end : r . range . end . line - 1
32+ start : r . range . startLine ,
33+ end : r . range . endLine
3734 } ;
3835 switch ( r . kind ) {
3936 case FoldingRangeKind . Comment :
Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ export enum FoldingRangeKind {
373373
374374export interface CppFoldingRange {
375375 kind : FoldingRangeKind ;
376- range : Range ;
376+ range : InputRegion ;
377377}
378378
379379export interface GetFoldingRangesResult {
You can’t perform that action at this time.
0 commit comments