Skip to content

Do not use the docstring of commented code for the next item #7

Description

@aminya

The empty line here is not considered and because of this, the return type of the above-commented function is considered for the bottom function.

/**
 * Returns the opacity value to use when rendering the `Minimap` text.
 *
 * @return {Number} the text opacity value
 * Unused (inlined)
 */
// getTextOpacity () { return this.textOpacity }

/**
 * Returns the default text color for an editor content.
 *
 * The color value is directly read from the `TextEditorView` computed styles.
 * @param {TextEditorElement} editorElement
 * @param {number} textOpacity
 * @return {string} a CSS color
 */
function getDefaultColor(editorElement, textOpacity) {
  const color = domStylesReader.retrieveStyleFromDom([".editor"], "color", editorElement, true)
  return transparentize(color, textOpacity)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions