/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
import {
getActiveSearch,
getPaneCollapse,
getQuickOpenEnabled,
getSource,
getSourceTextContent,
getIgnoreListSourceUrls,
getSourceByURL,
getBreakpointsForSource,
} from "../selectors/index"; import { selectSource } from "../actions/sources/select"; import { getEditor, updateEditorLineWrapping } from "../utils/editor/index"; import { blackboxSourceActorsForSource } from "./sources/blackbox"; import { toggleBreakpoints } from "./breakpoints/index"; import { copyToTheClipboard } from "../utils/clipboard"; import { isFulfilled } from "../utils/async-value"; import { primaryPaneTabs } from "../constants"; import { features } from "../utils/prefs";
if (getQuickOpenEnabled(getState())) {
dispatch({ type: "CLOSE_QUICK_OPEN" });
}
// Open start panel if it was collapsed so the project search UI is visible if (
activeSearch === primaryPaneTabs.PROJECT_SEARCH &&
getPaneCollapse(getState(), "start")
) {
dispatch({
type: "TOGGLE_PANE",
position: "start",
paneCollapsed: false,
});
}
// Set active search to null when closing start panel if project search was active if (
position === "start" &&
paneCollapsed &&
getActiveSearch(getState()) === primaryPaneTabs.PROJECT_SEARCH
) {
dispatch(closeActiveSearch());
}
/** * Highlight one or many lines in CodeMirror for a given source. * * @param {Object} location * @param {String} location.sourceId * The precise source to highlight. * @param {Number} location.start * The 1-based index of first line to highlight. * @param {Number} location.end * The 1-based index of last line to highlight.
*/
export function highlightLineRange(location) { return {
type: "HIGHLIGHT_LINES",
location,
};
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.