mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
fix FoldingRange conversion (1-based)
This commit is contained in:
parent
54f904f6fe
commit
ac6eafddf5
1 changed files with 2 additions and 2 deletions
|
|
@ -531,8 +531,8 @@ export class FoldingRangeAdapter implements monaco.languages.FoldingRangeProvide
|
||||||
}
|
}
|
||||||
return ranges.map(range => {
|
return ranges.map(range => {
|
||||||
let result: monaco.languages.FoldingRange = {
|
let result: monaco.languages.FoldingRange = {
|
||||||
start: range.startLine,
|
start: range.startLine + 1,
|
||||||
end: range.endLine
|
end: range.endLine + 1
|
||||||
};
|
};
|
||||||
if (typeof range.kind !== 'undefined') {
|
if (typeof range.kind !== 'undefined') {
|
||||||
result.kind = toFoldingRangeKind(<ls.FoldingRangeKind>range.kind);
|
result.kind = toFoldingRangeKind(<ls.FoldingRangeKind>range.kind);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue