monaco-editor
Version:
A browser based code editor
17 lines (14 loc) • 904 B
JavaScript
import { LegacyLinesDiffComputer } from './legacyLinesDiffComputer.js';
import { DefaultLinesDiffComputer } from './defaultLinesDiffComputer/defaultLinesDiffComputer.js';
import { getExternalLinesDiffComputer } from './externalLinesDiffComputer.js';
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
const linesDiffComputers = {
getLegacy: () => new LegacyLinesDiffComputer(),
getDefault: () => new DefaultLinesDiffComputer(),
getAdvancedExternal: () => getExternalLinesDiffComputer(false),
getAdvancedWasm: () => getExternalLinesDiffComputer(true),
};
export { linesDiffComputers };