mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-23 00:22:56 +01:00
add folding provider & update dependencies
This commit is contained in:
parent
a021ab7a38
commit
e6f882e3f1
5 changed files with 95 additions and 46 deletions
|
|
@ -104,6 +104,11 @@ export class CSSWorker {
|
|||
let colorPresentations = this._languageService.getColorPresentations(document, stylesheet, color, range);
|
||||
return Promise.as(colorPresentations);
|
||||
}
|
||||
provideFoldingRanges(uri: string, context?: { rangeLimit?: number; }): Promise<cssService.FoldingRange[]> {
|
||||
let document = this._getTextDocument(uri);
|
||||
let ranges = this._languageService.getFoldingRanges(document, context);
|
||||
return Promise.as(ranges);
|
||||
}
|
||||
doRename(uri: string, position: ls.Position, newName: string): Promise<ls.WorkspaceEdit> {
|
||||
let document = this._getTextDocument(uri);
|
||||
let stylesheet = this._languageService.parseStylesheet(document);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue