mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-28 05:37:48 +01:00
removing redundant function
This commit is contained in:
@@ -469,6 +469,7 @@ export class StickyScrollController extends Disposable implements IEditorContrib
|
||||
private async _renderStickyScroll(rebuildFromLine: number = Infinity) {
|
||||
const model = this._editor.getModel();
|
||||
if (!model || model.isTooLargeForTokenization()) {
|
||||
this._foldingModel = null;
|
||||
this._stickyScrollWidget.setState(undefined, null, rebuildFromLine);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -439,15 +439,6 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
|
||||
return isInLine !== undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Given a child dom node, tries to find if it is (contained in) a sticky line number.
|
||||
* @returns a boolean.
|
||||
*/
|
||||
isInStickyLineNumber(domNode: HTMLElement | null): boolean {
|
||||
const isInLineNumber = this._getAttributeValue(domNode, STICKY_IS_LINE_NUMBER_ATTR);
|
||||
return isInLineNumber !== undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Given a child dom node, tries to find if this dom node is (contained in) a sticky folding icon.
|
||||
* @returns a boolean.
|
||||
|
||||
Reference in New Issue
Block a user