VSCode скрывает данные в подсказке

Я так монимаю, VSCode имеет какое-то ограничение на показ данных, можно ли как-то это убрать/увеличить лимит?


введите сюда описание изображения


const obj = {
    "data": {
        "_id": "63e0e1b8edcf608d9cd94e65",
        "user_id": "6388808a20ec042ec6618c79",
        "mission_data": {
            "dataMission": {
                "time": [
                    {
                        "hours": 17,
                        "minutes": 30
                    },
                    {
                        "hours": 13,
                        "minutes": 30
                    },
                    {
                        "hours": 13,
                        "minutes": 30
                    },
                    {
                        "hours": 13,
                        "minutes": 30
                    },
                    {
                        "hours": 13,
                        "minutes": 30
                    }
                ],
                "morning": {
                    "environment": {
                        "wakeUp": "in my beautiful Lisbon apartment",
                        "lookLike": "bright and spacious, located in the woods next to the ocean",
                        "howSmell": "croissants and sea"
                    },
                    "activities": {
                        "wakeUp": " take my dog out for a walk, brush my teeth and make myself breakfast",
                        "howSmell": "eggs with coffee and some fruit"
                    },
                    "people": "my partner"
                },
                "afternoon": {
                    "environment": {
                        "spendAfternoon": "work from home and go out for a coffee in a neighborhood café",
                        "wearing": "comfy yoga pants and a white designer shirt",
                        "theWeatherToday": "always sunny in Lisbon and the sky is blue!"
                    },
                    "activities": {
                        "dayActivities": " do some work, take my dog out for a lunch walk, and  go to the gym",
                        "eatForLunch": "a salad, or a poke bowl",
                        "atWork": "coach clients, design new products"
                    },
                    "people": "my clients, my boyfriend, my pet"
                },
                "evening": {
                    "environment": {
                        "spendEvening": "go out for dinner with friends to a local restaurant",
                        "getThere": "foot, as I live in the city centre"
                    },
                    "activities": {
                        "spendEvening": "play some piano and read",
                        "personalFulfillment": "learn something new about philosophy or science"
                    },
                    "people": " my self, my partner, my family, colleagues"
                },
                "night": {
                    "environment": "has a huge comfy bed and blackout curtains",
                    "activities": "take a bath, meditate a little, read and sleep",
                    "people": " my partner, my family"
                }
            }
        },
        "created_at": "06/02/2023",
        "id": "63e0e1b8edcf608d9cd94e65"
    }
};

type test = typeof obj;

Ответы (1 шт):

Автор решения: Franz

Тоже искал в интернете решение и нашёл. VSCode имеет ограничение на показ данных в подсказке, чтобы не перегружать пользовательский интерфейс. Однако, Вы можете увеличить лимит, добавив следующую строку в файл настроек VSCode (File -> Preferences -> Settings):

"editor.hover.maxTokenCount": 1000

Эта опция устанавливает максимальное количество токенов (слов) для отображения в подсказке.

→ Ссылка