Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TextModelOptions.cs « TextDataUtil « Util « Text « src - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a07d7976a9e22dcb1b32f0507f092aa2f8af7ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
//  Copyright (c) Microsoft Corporation. All rights reserved.
//  Licensed under the MIT License. See License.txt in the project root for license information.
//
namespace Microsoft.VisualStudio.Text.Utilities
{
    public static class TextModelOptions
    {
        // these values should be set by MEF component in editor options component. defaults
        // are here just in case that doesn't happen in some configuration.
#pragma warning disable CA2211 // Non-constant fields should not be visible
        public static int CompressedStorageFileSizeThreshold = 5 * 1024 * 1024; // 5 MB file (typically 10 MB in memory)
        public static int CompressedStoragePageSize = 1 * 1024 * 1024;          // 1 MB per page (so 10 pages at the low end)
        public static int CompressedStorageMaxLoadedPages = 3;                  // at most 3 pages loaded
        public static bool CompressedStorageGlobalManagement = false;           // per document
        public static bool CompressedStorageRetainWeakReferences = true;        // forces worst case decompression for testing purposes

        public static int StringRebuilderMaxCharactersToConsolidate = 200;      // Combine adjacent pieces when sum of sizes is less than this and
        public static int StringRebuilderMaxLinesToConsolidate = 8;             // Combine adjacent pieces when number of lines is less than this 

        public static int DiffSizeThreshold = 25 * 1024 * 1024;                 // threshold above which to do poor man's diff
#pragma warning restore CA2211 // Non-constant fields should not be visible
    }
}