This commit is contained in:
azure-pipelines[bot] 2023-04-03 12:30:02 +00:00
parent 02bed41d9a
commit 035b25fc4a
1132 changed files with 50598 additions and 42769 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/
@ -606,6 +606,11 @@
line-height: 22px;
}
.monaco-hover .hover-row.status-bar .info {
font-style: italic;
padding: 0px 8px;
}
.monaco-hover .hover-row.status-bar .actions {
display: flex;
padding: 0px 8px;
@ -1188,10 +1193,13 @@
position: absolute;
width: 100%;
height: 100%;
transition: background-color 0.1s ease-out;
background: transparent;
}
.monaco-workbench:not(.reduce-motion) .monaco-sash:before {
transition: background-color 0.1s ease-out;
}
.monaco-sash.hover:before,
.monaco-sash.active:before {
background: var(--vscode-sash-hoverBorder);
@ -1516,7 +1524,7 @@
position: absolute;
top: 0;
left: 0;
z-index: 20;
z-index: 5;
pointer-events: none;
background-color: var(--separator-border);
}
@ -1693,7 +1701,7 @@
border-left: 1px solid transparent;
}
.monaco-tl-indent > .indent-guide {
.monaco-workbench:not(.reduce-motion) .monaco-tl-indent > .indent-guide {
transition: border-color 0.1s linear;
}
@ -1737,10 +1745,16 @@
top: 0;
display: flex;
padding: 3px;
transition: top 0.3s;
max-width: 200px;
z-index: 100;
margin: 0 6px;
border: 1px solid var(--vscode-widget-border);
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter {
transition: top 0.3s;
}
.monaco-tree-type-filter.disabled {
@ -1831,6 +1845,7 @@
.monaco-editor .blockDecorations-container {
position: absolute;
top: 0;
pointer-events: none;
}
.monaco-editor .blockDecorations-block {
@ -3162,6 +3177,13 @@
margin-left: 2px;
}
.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,
.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,
.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,
.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed {
transition: initial;
}
.monaco-editor .margin-view-overlays:hover .codicon,
.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,
.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,
@ -3464,7 +3486,7 @@
.monaco-editor .inlineSuggestionsHints.withBorder {
z-index: 39;
color: var(--vscode-editor-hoverForeground);
color: var(--vscode-editorHoverWidget-foreground);
background-color: var(--vscode-editorHoverWidget-background);
border: 1px solid var(--vscode-editorHoverWidget-border);
}
@ -3523,6 +3545,24 @@
color: var(--vscode-editorLink-activeForeground) !important;
}
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.monaco-editor .rendered-markdown kbd {
background-color: var(--vscode-keybindingLabel-background);
color: var(--vscode-keybindingLabel-foreground);
border-style: solid;
border-width: 1px;
border-radius: 3px;
border-color: var(--vscode-keybindingLabel-border);
border-bottom-color: var(--vscode-keybindingLabel-bottomBorder);
box-shadow: inset 0 -1px 0 var(--vscode-widget-shadow);
vertical-align: middle;
padding: 1px 3px;
}
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
@ -3607,7 +3647,7 @@
flex-direction: column;
line-height: 1.5em;
cursor: default;
color: var(--vscode-editor-hoverForeground);
color: var(--vscode-editorHoverWidget-foreground);
background-color: var(--vscode-editorHoverWidget-background);
border: 1px solid var(--vscode-editorHoverWidget-border);
}
@ -3910,7 +3950,7 @@
.monaco-editor .sticky-widget {
width: 100%;
box-shadow: var(--vscode-scrollbar-shadow) 0 3px 2px -2px;
z-index: 11;
z-index: 4;
background-color: var(--vscode-editorStickyScroll-background);
}
@ -4448,7 +4488,7 @@
.monaco-editor .codicon.codicon-symbol-text,
.monaco-workbench .codicon.codicon-symbol-text { color: var(--vscode-symbolIcon-textForeground); }
.monaco-editor .codicon.codicon-symbol-type-parameter,
.monaco-workbench .codicon.codicon-symbol-type-parameter { color: var(--vscode-typeParameterForeground); }
.monaco-workbench .codicon.codicon-symbol-type-parameter { color: var(--vscode-symbolIcon-typeParameterForeground); }
.monaco-editor .codicon.codicon-symbol-unit,
.monaco-workbench .codicon.codicon-symbol-unit { color: var(--vscode-symbolIcon-unitForeground); }
.monaco-editor .codicon.codicon-symbol-variable,
@ -4816,13 +4856,6 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.action-list-description {
opacity: .7;
margin-left: 0.5em;
font-size: .9em;
white-space: pre;
}
.action-widget {
font-size: 13px;
border-radius: 0;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/
@ -158,7 +158,8 @@ define("vs/editor/editor.main.nls.de", {
"Steuert, ob die semantische Hervorhebung für die Sprachen angezeigt wird, die sie unterstützen.",
"Lassen Sie Peek-Editoren geöffnet, auch wenn Sie auf ihren Inhalt doppelklicken oder auf die ESCAPETASTE klicken.",
"Zeilen, die diese Länge überschreiten, werden aus Leistungsgründen nicht tokenisiert",
"Controls whether the tokenization should happen asynchronously on a web worker.",
"Steuert, ob die Tokenisierung asynchron auf einem Webworker erfolgen soll.",
"Steuert, ob die asynchrone Tokenisierung protokolliert werden soll. Nur zum Debuggen.",
"Definiert die Klammersymbole, die den Einzug vergrößern oder verkleinern.",
"Das öffnende Klammerzeichen oder die Zeichenfolgensequenz.",
"Das schließende Klammerzeichen oder die Zeichenfolgensequenz.",
@ -231,6 +232,7 @@ define("vs/editor/editor.main.nls.de", {
"Aktiviert das Glühlampensymbol für Codeaktionen im Editor.",
"Zeigt die geschachtelten aktuellen Bereiche während des Bildlaufs am oberen Rand des Editors an.",
"Definiert die maximale Anzahl fixierter Linien, die angezeigt werden sollen.",
"Legt das Modell fest, das zur Bestimmung der zu fixierenden Linien verwendet wird. Existiert das Gliederungsmodell nicht, wird auf das Modell des Folding Providers zurückgegriffen, der wiederum auf das Einrückungsmodell zurückgreift. Diese Reihenfolge wird in allen drei Fällen beachtet.",
"Aktiviert die Inlay-Hinweise im Editor.",
"Inlay-Hinweise sind aktiviert",
"Inlay-Hinweise werden standardmäßig angezeigt und ausgeblendet, wenn Sie {0} gedrückt halten",
@ -292,6 +294,7 @@ define("vs/editor/editor.main.nls.de", {
"Die Symbolleiste „Inline-Vorschlag“ anzeigen, wenn ein Inline-Vorschlag angezeigt wird.",
"Die Symbolleiste „Inline-Vorschlag“ anzeigen, wenn Sie mit dem Mauszeiger auf einen Inline-Vorschlag zeigen.",
"Steuert, wann die Inlinevorschlagssymbolleiste angezeigt werden soll.",
"Steuert, wie Inlinevorschläge mit dem Vorschlagswidget interagieren. Wenn diese Option aktiviert ist, wird das Vorschlagswidget nicht automatisch angezeigt, wenn Inlinevorschläge verfügbar sind.",
"Steuert, ob die Klammerpaar-Farbgebung aktiviert ist oder nicht. Verwenden Sie {0}, um die Hervorhebungsfarben der Klammer zu überschreiben.",
"Steuert, ob jeder Klammertyp über einen eigenen unabhängigen Farbpool verfügt.",
"Aktiviert Klammernpaarführungslinien.",
@ -368,6 +371,7 @@ define("vs/editor/editor.main.nls.de", {
"Steuert, ob Vorschläge mit der EINGABETASTE (zusätzlich zur TAB-Taste) akzeptiert werden sollen. Vermeidet Mehrdeutigkeit zwischen dem Einfügen neuer Zeilen oder dem Annehmen von Vorschlägen.",
"Steuert die Anzahl von Zeilen im Editor, die von einer Sprachausgabe in einem Arbeitsschritt gelesen werden können. Wenn eine Sprachausgabe erkannt wird, wird der Standardwert automatisch auf 500 festgelegt. Warnung: Ein Wert höher als der Standardwert, kann sich auf die Leistung auswirken.",
"Editor-Inhalt",
"Steuern Sie, ob Inlinevorschläge von einer Sprachausgabe gelesen werden. Beachten Sie, dass dies unter macOS mit VoiceOver nicht funktioniert.",
"Verwenden Sie Sprachkonfigurationen, um zu bestimmen, wann Klammern automatisch geschlossen werden sollen.",
"Schließe Klammern nur automatisch, wenn der Cursor sich links von einem Leerzeichen befindet.",
"Steuert, ob der Editor automatisch Klammern schließen soll, nachdem der Benutzer eine öffnende Klammer hinzugefügt hat.",
@ -570,6 +574,9 @@ define("vs/editor/editor.main.nls.de", {
"Gibt an, ob der Editor über Mehrfachauswahl verfügt.",
"Gibt an, ob die TAB-TASTE den Fokus aus dem Editor verschiebt.",
"Gibt an, ob Hover im Editor sichtbar ist.",
"Gibt an, ob Daraufzeigen im Editor fokussiert ist.",
"Gibt an, ob der Fokus auf dem Fixierten Bildlauf liegt.",
"Gibt an, ob der Fixierte Bildlauf sichtbar ist.",
"Gibt an, ob der Editor Bestandteil eines größeren Editors ist (z. B. Notebooks).",
"Der Sprachbezeichner des Editors.",
"Gibt an, ob der Editor über einen Vervollständigungselementanbieter verfügt.",
@ -649,6 +656,7 @@ define("vs/editor/editor.main.nls.de", {
"Übersichtslineal-Markierungsfarbe für zusammengehörige Klammern.",
"Gehe zu Klammer",
"Auswählen bis Klammer",
"Klammern entfernen",
"Gehe zu &&Klammer",
],
"vs/editor/contrib/caretOperations/browser/caretOperations": [
@ -670,6 +678,8 @@ define("vs/editor/editor.main.nls.de", {
"Kopieren als",
"Kopieren als",
"Freigeben",
"Freigeben",
"Freigeben",
"&&Einfügen",
"Einfügen",
"Einfügen",
@ -680,10 +690,6 @@ define("vs/editor/editor.main.nls.de", {
"Beim Anwenden der Code-Aktion ist ein unbekannter Fehler aufgetreten",
],
"vs/editor/contrib/codeAction/browser/codeActionCommands": [
"Keine bevorzugten Refactorings für \"{0}\" verfügbar",
"Keine Refactorings für \"{0}\" verfügbar",
"Keine bevorzugten Refactorings verfügbar",
"Keine Refactorings verfügbar",
"Art der auszuführenden Codeaktion",
"Legt fest, wann die zurückgegebenen Aktionen angewendet werden",
"Die erste zurückgegebene Codeaktion immer anwenden",
@ -697,7 +703,10 @@ define("vs/editor/editor.main.nls.de", {
"Keine bevorzugten Codeaktionen verfügbar",
"Keine Codeaktionen verfügbar",
"Refactoring durchführen...",
"Mit Vorschau umgestalten...",
"Keine bevorzugten Refactorings für \"{0}\" verfügbar",
"Keine Refactorings für \"{0}\" verfügbar",
"Keine bevorzugten Refactorings verfügbar",
"Keine Refactorings verfügbar",
"Quellaktion...",
"Keine bevorzugten Quellaktionen für \"{0}\" verfügbar",
"Keine Quellaktionen für \"{0}\" verfügbar",
@ -966,8 +975,17 @@ define("vs/editor/editor.main.nls.de", {
"Symbol {0} von {1}",
],
"vs/editor/contrib/hover/browser/hover": [
"Hovern anzeigen",
"Anzeigen oder Fokus beim Daraufzeigen",
"Definitionsvorschauhover anzeigen",
"Bildlauf nach oben beim Daraufzeigen",
"Bildlauf nach unten beim Daraufzeigen",
"Bildlauf nach links beim Daraufzeigen",
"Bildlauf nach rechts beim Daraufzeigen",
"Eine Seite nach oben beim Daraufzeigen",
"Eine Seite nach unten beim Daraufzeigen",
"Gehe nach oben beim Daraufzeigen",
"Gehe nach unten beim Daraufzeigen",
"Fokus entfernen beim Daraufzeigen",
],
"vs/editor/contrib/hover/browser/markdownHoverParticipant": [
"Wird geladen...",
@ -1262,6 +1280,12 @@ define("vs/editor/editor.main.nls.de", {
"Fixierten Bildlauf &&umschalten",
"Fixierter Bildlauf",
"&&Fixierter Bildlauf",
"Fokus auf Fixierten Bildlauf",
"&&Fokus fixierter Bildlauf",
"Nächste fixierte Zeile auswählen",
"Zuletzt gewählte fixierte Zeile auswählen",
"Gehe zur fokussierten fixierten Zeile",
"Editor auswählen",
],
"vs/editor/contrib/suggest/browser/suggest": [
"Gibt an, ob ein Vorschlag fokussiert ist",
@ -1363,6 +1387,7 @@ define("vs/editor/editor.main.nls.de", {
"Dieses Dokument enthält viele mehrdeutige Unicode-Zeichen.",
"Dieses Dokument enthält viele unsichtbare Unicode-Zeichen.",
"Das Zeichen {0} kann mit dem Zeichen {1} verwechselt werden, was im Quellcode häufiger vorkommt.",
"Das Zeichen {0} kann mit dem Zeichen {1} verwechselt werden, was im Quellcode häufiger vorkommt.",
"Das Zeichen {0} ist nicht sichtbar.",
"Das Zeichen {0} ist kein einfaches ASCII-Zeichen.",
"Einstellungen anpassen",
@ -1412,6 +1437,7 @@ define("vs/editor/editor.main.nls.de", {
"Ansehen",
"Hilfe",
"Test",
"Datei",
"Einstellungen",
"Entwickler",
],
@ -1475,6 +1501,17 @@ define("vs/editor/editor.main.nls.de", {
"vs/platform/contextkey/browser/contextKeyService": [
"Ein Befehl, der Informationen zu Kontextschlüsseln zurückgibt",
],
"vs/platform/contextkey/common/contextkey": [
"Leerer Kontextschlüsselausdruck",
"Haben Sie vergessen, einen Ausdruck zu schreiben? Sie können auch „false“ oder „true“ festlegen, um immer auf „false“ oder „true“ auszuwerten.",
"„in“ nach „not“.",
"schließende Klammer „)“",
"Unerwartetes Token",
"Haben Sie vergessen, && oder || vor dem Token einzufügen?",
"Unerwartetes Ende des Ausdrucks.",
"Haben Sie vergessen, einen Kontextschlüssel zu setzen?",
"Erwartet: {0}\r\nEmpfangen: „{1}“.",
],
"vs/platform/contextkey/common/contextkeys": [
"Gibt an, ob macOS als Betriebssystem verwendet wird.",
"Gibt an, ob Linux als Betriebssystem verwendet wird.",
@ -1486,10 +1523,18 @@ define("vs/editor/editor.main.nls.de", {
"Qualitätstyp des VS Codes",
"Gibt an, ob sich der Tastaturfokus in einem Eingabefeld befindet.",
],
"vs/platform/contextkey/common/scanner": [
"Meinten Sie {0}?",
"Meinten Sie {0} oder {1}?",
"Meinten Sie {0}, {1} oder {2}?",
"Haben Sie vergessen, das Anführungszeichen zu öffnen oder zu schließen?",
"Haben Sie vergessen, das Zeichen „/“ (Schrägstrich) zu escapen? Setzen Sie zwei Backslashes davor, um es zu escapen, z. B. „\\\\/“.",
],
"vs/platform/history/browser/contextScopedHistoryWidget": [
"Gibt an, ob Vorschläge sichtbar sind.",
],
"vs/platform/keybinding/common/abstractKeybindingService": [
"({0}) wurde gedrückt. Es wird auf die zweite Taste in der Kombination gewartet...",
"({0}) wurde gedrückt. Es wird auf die zweite Taste in der Kombination gewartet...",
"Die Tastenkombination ({0}, {1}) ist kein Befehl.",
],
@ -1651,6 +1696,7 @@ define("vs/editor/editor.main.nls.de", {
"Rahmenfarbe des Bereichs, der die Suche eingrenzt. Die Farbe darf nicht deckend sein, weil sie sonst die zugrunde liegenden Dekorationen verdeckt.",
"Farbe der Abfrageübereinstimmungen des Such-Editors",
"Rahmenfarbe der Abfrageübereinstimmungen des Such-Editors",
"Farbe des Texts in der Abschlussmeldung des Such-Viewlets.",
"Hervorhebung unterhalb des Worts, für das ein Hoverelement angezeigt wird. Die Farbe darf nicht deckend sein, weil sie sonst die zugrunde liegenden Dekorationen verdeckt.",
"Hintergrundfarbe des Editor-Mauszeigers.",
"Vordergrundfarbe des Editor-Mauszeigers",

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/
@ -158,7 +158,8 @@ define("vs/editor/editor.main.nls.es", {
"Controla si se muestra semanticHighlighting para los idiomas que lo admiten.",
"Mantiene abiertos los editores interactivos, incluso al hacer doble clic en su contenido o presionar \"Escape\".",
"Las lineas por encima de esta longitud no se tokenizarán por razones de rendimiento.",
"Controls whether the tokenization should happen asynchronously on a web worker.",
"Controla si la tokenización debe producirse de forma asincrónica en un rol de trabajo.",
"Controla si se debe registrar la tokenización asincrónica. Solo para depuración.",
"Define los corchetes que aumentan o reducen la sangría.",
"Secuencia de cadena o corchete de apertura.",
"Secuencia de cadena o corchete de cierre.",
@ -231,6 +232,7 @@ define("vs/editor/editor.main.nls.es", {
"Habilita la bombilla de acción de código en el editor.",
"Muestra los ámbitos actuales anidados durante el desplazamiento en la parte superior del editor.",
"Define el número máximo de líneas rápidas que se mostrarán.",
"Define el modelo que se va a usar para determinar qué líneas se van a pegar. Si el modelo de esquema no existe, recurrirá al modelo del proveedor de plegado que recurre al modelo de sangría. Este orden se respeta en los tres casos.",
"Habilita las sugerencias de incrustación en el editor.",
"Las sugerencias de incrustación están habilitadas",
"Las sugerencias de incrustación se muestran de forma predeterminada y se ocultan cuando se mantiene presionado {0}",
@ -292,6 +294,7 @@ define("vs/editor/editor.main.nls.es", {
"Muestra la barra de herramientas de sugerencias insertadas cada vez que se muestra una sugerencia insertada.",
"Muestra la barra de herramientas de sugerencias insertadas al mantener el puntero sobre una sugerencia insertada.",
"Controla cuándo mostrar la barra de herramientas de sugerencias insertadas.",
"Controla cómo interactúan las sugerencias insertadas con el widget de sugerencias. Si se habilita, el widget de sugerencias no se muestra automáticamente cuando hay sugerencias insertadas disponibles.",
"Controla si está habilitada o no la coloración de pares de corchetes. Use {0} para invalidar los colores de resaltado de corchete.",
"Controla si cada tipo de corchete tiene su propio grupo de colores independiente.",
"Habilita guías de par de corchetes.",
@ -368,6 +371,7 @@ define("vs/editor/editor.main.nls.es", {
"Controla si las sugerencias deben aceptarse con \"Entrar\", además de \"TAB\". Ayuda a evitar la ambigüedad entre insertar nuevas líneas o aceptar sugerencias.",
"Controla el número de líneas del editor que pueden ser leídas por un lector de pantalla a la vez. Cuando detectamos un lector de pantalla, fijamos automáticamente el valor por defecto en 500. Advertencia: esto tiene una implicación de rendimiento para números mayores que el predeterminado.",
"Contenido del editor",
"Controla si un lector de pantalla anuncia sugerencias insertadas. Tenga en cuenta que esto no funciona en macOS con VoiceOver.",
"Utilizar las configuraciones del lenguaje para determinar cuándo cerrar los corchetes automáticamente.",
"Cerrar automáticamente los corchetes cuando el cursor esté a la izquierda de un espacio en blanco.",
"Controla si el editor debe cerrar automáticamente los corchetes después de que el usuario agregue un corchete de apertura.",
@ -570,6 +574,9 @@ define("vs/editor/editor.main.nls.es", {
"Si el editor tiene varias selecciones",
"Si \"Tabulación\" moverá el foco fuera del editor",
"Si el mantenimiento del puntero del editor es visible",
"Si se centra el desplazamiento del editor",
"Si el desplazamiento permanente está centrado",
"Si el desplazamiento permanente está visible",
"Si el editor forma parte de otro más grande (por ejemplo, blocs de notas)",
"Identificador de idioma del editor",
"Si el editor tiene un proveedor de elementos de finalización",
@ -649,6 +656,7 @@ define("vs/editor/editor.main.nls.es", {
"Resumen color de marcador de regla para corchetes.",
"Ir al corchete",
"Seleccionar para corchete",
"Quitar corchetes",
"Ir al &&corchete",
],
"vs/editor/contrib/caretOperations/browser/caretOperations": [
@ -670,6 +678,8 @@ define("vs/editor/editor.main.nls.es", {
"Copiar como",
"Copiar como",
"Compartir",
"Compartir",
"Compartir",
"&&Pegar",
"Pegar",
"Pegar",
@ -680,10 +690,6 @@ define("vs/editor/editor.main.nls.es", {
"Se ha producido un error desconocido al aplicar la acción de código",
],
"vs/editor/contrib/codeAction/browser/codeActionCommands": [
"No hay refactorizaciones preferidas de \"{0}\" disponibles",
"No hay refactorizaciones de \"{0}\" disponibles",
"No hay ninguna refactorización favorita disponible.",
"No hay refactorizaciones disponibles",
"Tipo de la acción de código que se va a ejecutar.",
"Controla cuándo se aplican las acciones devueltas.",
"Aplicar siempre la primera acción de código devuelto.",
@ -697,7 +703,10 @@ define("vs/editor/editor.main.nls.es", {
"No hay acciones de código preferidas disponibles",
"No hay acciones de código disponibles",
"Refactorizar...",
"Refactorizar con vista previa...",
"No hay refactorizaciones preferidas de \"{0}\" disponibles",
"No hay refactorizaciones de \"{0}\" disponibles",
"No hay ninguna refactorización favorita disponible.",
"No hay refactorizaciones disponibles",
"Acción de código fuente...",
"No hay acciones de origen preferidas para \"{0}\" disponibles",
"No hay ninguna acción de código fuente para \"{0}\" disponible.",
@ -966,8 +975,17 @@ define("vs/editor/editor.main.nls.es", {
"Símbolo {0} de {1}",
],
"vs/editor/contrib/hover/browser/hover": [
"Mostrar al mantener el puntero",
"Mostrar o centrarse al mantener el puntero",
"Mostrar vista previa de la definición que aparece al mover el puntero",
"Desplazar hacia arriba al mantener el puntero",
"Desplazar hacia abajo al mantener el puntero",
"Desplazar al mantener el puntero a la izquierda",
"Desplazar al mantener el puntero a la derecha",
"Desplazamiento de página hacia arriba",
"Desplazamiento de página hacia abajo",
"Ir al puntero superior",
"Ir a la parte inferior al mantener el puntero",
"Foco de escape al mantener el puntero",
],
"vs/editor/contrib/hover/browser/markdownHoverParticipant": [
"Cargando...",
@ -1262,6 +1280,12 @@ define("vs/editor/editor.main.nls.es", {
"&&Alternar desplazamiento permanente",
"Desplazamiento permanente",
"&&Desplazamiento permanente",
"Desplazamiento permanente de foco",
"&&Desplazamiento permanente de foco",
"Seleccionar la siguiente línea de desplazamiento rápida",
"Seleccionar la línea de desplazamiento rápida anterior",
"Ir a la línea de desplazamiento rápida con foco",
"Seleccionar el Editor",
],
"vs/editor/contrib/suggest/browser/suggest": [
"Si alguna sugerencia tiene el foco",
@ -1362,6 +1386,7 @@ define("vs/editor/editor.main.nls.es", {
"Este documento contiene muchos caracteres Unicode ASCII no básicos",
"Este documento contiene muchos caracteres Unicode ambiguos",
"Este documento contiene muchos caracteres Unicode invisibles",
"El carácter {0} podría confundirse con el carácter ASCII {1}, que es más común en el código fuente.",
"El carácter {0} podría confundirse con el carácter {1}, que es más común en el código fuente.",
"El carácter {0} es invisible.",
"El carácter {0} no es un carácter ASCII básico.",
@ -1412,6 +1437,7 @@ define("vs/editor/editor.main.nls.es", {
"Ver",
"Ayuda",
"Probar",
"archivo",
"Preferencias",
"Desarrollador",
],
@ -1475,6 +1501,17 @@ define("vs/editor/editor.main.nls.es", {
"vs/platform/contextkey/browser/contextKeyService": [
"Comando que devuelve información sobre las claves de contexto",
],
"vs/platform/contextkey/common/contextkey": [
"Expresión de clave de contexto vacía",
"¿Ha olvidado escribir una expresión? también puede poner \"false\" o \"true\" para evaluar siempre como false o true, respectivamente.",
"\'in\' después de \'not\'.",
"paréntesis de cierre \')\'",
"Token inesperado",
"¿Ha olvidado poner && o || antes del token?",
"Final de expresión inesperado",
"¿Ha olvidado poner una clave de contexto?",
"Esperado: {0}\r\nrecibido: \'{1}\'.",
],
"vs/platform/contextkey/common/contextkeys": [
"Si el sistema operativo es macOS",
"Si el sistema operativo es Linux",
@ -1486,11 +1523,19 @@ define("vs/editor/editor.main.nls.es", {
"Tipo de calidad de VS Code",
"Si el foco del teclado está dentro de un cuadro de entrada",
],
"vs/platform/contextkey/common/scanner": [
"¿Quiso decir {0}?",
"¿Quiso decir {0} o {1}?",
"¿Quiso decir {0}, {1} o {2}?",
"¿Ha olvidado abrir o cerrar la cita?",
"¿Ha olvidado escapar el carácter \"/\" (barra diagonal)?Coloque dos barras diagonales inversas antes de que escape, por ejemplo, \'\\\\/\'.",
],
"vs/platform/history/browser/contextScopedHistoryWidget": [
"Indica si las sugerencias están visibles.",
],
"vs/platform/keybinding/common/abstractKeybindingService": [
"Se presionó ({0}). Esperando la siguiente tecla...",
"Se ha presionado ({0}). Esperando la siguiente tecla...",
"La combinación de claves ({0}, {1}) no es un comando.",
],
"vs/platform/list/browser/listService": [
@ -1651,6 +1696,7 @@ define("vs/editor/editor.main.nls.es", {
"Color del borde de la gama que limita la búsqueda. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",
"Color de las consultas coincidentes del Editor de búsqueda.",
"Color de borde de las consultas coincidentes del Editor de búsqueda.",
"Color del texto en el mensaje de finalización del viewlet de búsqueda.",
"Destacar debajo de la palabra para la que se muestra un mensaje al mantener el mouse. El color no debe ser opaco para no ocultar decoraciones subyacentes.",
"Color de fondo al mantener el puntero en el editor.",
"Color de primer plano al mantener el puntero en el editor.",

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/
@ -158,7 +158,8 @@ define("vs/editor/editor.main.nls.fr", {
"Contrôle si semanticHighlighting est affiché pour les langages qui le prennent en charge.",
"Maintenir les éditeurs d\'aperçu ouverts même si l\'utilisateur double-clique sur son contenu ou appuie sur la touche Échap.",
"Les lignes plus longues que cette valeur ne sont pas tokenisées pour des raisons de performances",
"Controls whether the tokenization should happen asynchronously on a web worker.",
"Contrôle si la création de jetons doit se produire de manière asynchrone sur un worker web.",
"Contrôle si la création de jetons asynchrones doit être journalisée. Pour le débogage uniquement.",
"Définit les symboles de type crochet qui augmentent ou diminuent le retrait.",
"Séquence de chaînes ou de caractères de crochets ouvrants.",
"Séquence de chaînes ou de caractères de crochets fermants.",
@ -231,6 +232,7 @@ define("vs/editor/editor.main.nls.fr", {
"Active lampoule daction de code dans léditeur.",
"Affiche les étendues actives imbriqués pendant le défilement en haut de léditeur.",
"Définit le nombre maximal de lignes rémanentes à afficher.",
"Définit le modèle à utiliser pour déterminer les lignes à coller. Si le modèle hiérarchique nexiste pas, il revient au modèle de fournisseur de pliage qui revient au modèle de mise en retrait. Cette demande est respectée dans les trois cas.",
"Active les indicateurs inlay dans léditeur.",
"Les indicateurs dinlay sont activés.",
"Les indicateurs dinlay sont affichés par défaut et masqués lors de la conservation {0}",
@ -292,6 +294,7 @@ define("vs/editor/editor.main.nls.fr", {
"Afficher la barre doutils de suggestion en ligne chaque fois quune suggestion inline est affichée.",
"Afficher la barre doutils de suggestion en ligne lorsque vous pointez sur une suggestion incluse.",
"Contrôle quand afficher la barre doutils de suggestion incluse.",
"Contrôle la façon dont les suggestions inline interagissent avec le widget de suggestion. Si cette option est activée, le widget de suggestion nest pas affiché automatiquement lorsque des suggestions inline sont disponibles.",
"Contrôle si la colorisation des paires de crochets est activée ou non. Utilisez {0} pour remplacer les couleurs de surbrillance des crochets.",
"Contrôle si chaque type de crochet possède son propre pool de couleurs indépendant.",
"Désactive les repères de paire de crochets.",
@ -368,6 +371,7 @@ define("vs/editor/editor.main.nls.fr", {
"Contrôle si les suggestions sont acceptées après appui sur \'Entrée\', en plus de \'Tab\'. Permet déviter toute ambiguïté entre linsertion de nouvelles lignes et l\'acceptation de suggestions.",
"Contrôle le nombre de lignes de léditeur quun lecteur décran peut lire en une seule fois. Quand nous détectons un lecteur décran, nous définissons automatiquement la valeur par défaut à 500. Attention : Les valeurs supérieures à la valeur par défaut peuvent avoir un impact important sur les performances.",
"Contenu de l\'éditeur",
"Contrôlez si les suggestions inline sont annoncées par un lecteur décran. Notez que cela ne fonctionne pas sur macOS avec VoiceOver.",
"Utilisez les configurations de langage pour déterminer quand fermer automatiquement les parenthèses.",
"Fermer automatiquement les parenthèses uniquement lorsque le curseur est à gauche de lespace.",
"Contrôle si léditeur doit fermer automatiquement les parenthèses quand lutilisateur ajoute une parenthèse ouvrante.",
@ -570,6 +574,9 @@ define("vs/editor/editor.main.nls.fr", {
"Indique si l\'éditeur a plusieurs sélections",
"Indique si la touche Tab permet de déplacer le focus hors de l\'éditeur",
"Indique si le pointage de l\'éditeur est visible",
"Indique si le pointage de léditeur est ciblé",
"Indique si le défilement du pense-bête a le focus",
"Indique si le défilement du pense-bête est visible",
"Indique si l\'éditeur fait partie d\'un éditeur plus important (par exemple Notebooks)",
"Identificateur de langage de l\'éditeur",
"Indique si l\'éditeur a un fournisseur d\'éléments de complétion",
@ -649,6 +656,7 @@ define("vs/editor/editor.main.nls.fr", {
"Couleur du marqueur de la règle d\'aperçu pour rechercher des parenthèses.",
"Atteindre le crochet",
"Sélectionner jusqu\'au crochet",
"Supprimer les crochets",
"Accéder au &&crochet",
],
"vs/editor/contrib/caretOperations/browser/caretOperations": [
@ -670,6 +678,8 @@ define("vs/editor/editor.main.nls.fr", {
"Copier en tant que",
"Copier en tant que",
"Partager",
"Partager",
"Partager",
"Co&&ller",
"Coller",
"Coller",
@ -680,10 +690,6 @@ define("vs/editor/editor.main.nls.fr", {
"Une erreur inconnue s\'est produite à l\'application de l\'action du code",
],
"vs/editor/contrib/codeAction/browser/codeActionCommands": [
"Aucune refactorisation par défaut disponible pour \'{0}\'",
"Aucune refactorisation disponible pour \'{0}\'",
"Aucune refactorisation par défaut disponible",
"Aucune refactorisation disponible",
"Type d\'action de code à exécuter.",
"Contrôle quand les actions retournées sont appliquées.",
"Appliquez toujours la première action de code retournée.",
@ -697,7 +703,10 @@ define("vs/editor/editor.main.nls.fr", {
"Aucune action de code par défaut disponible",
"Aucune action de code disponible",
"Remanier...",
"Refactoriser avec laperçu...",
"Aucune refactorisation par défaut disponible pour \'{0}\'",
"Aucune refactorisation disponible pour \'{0}\'",
"Aucune refactorisation par défaut disponible",
"Aucune refactorisation disponible",
"Action de la source",
"Aucune action source par défaut disponible pour \'{0}\'",
"Aucune action source disponible pour \'{0}\'",
@ -966,8 +975,17 @@ define("vs/editor/editor.main.nls.fr", {
"Symbole {0} sur {1}",
],
"vs/editor/contrib/hover/browser/hover": [
"Afficher par pointage",
"Afficher ou focus sur pointer",
"Afficher le pointeur de l\'aperçu de définition",
"Faire défiler le pointage vers le haut",
"Faire défiler le pointage vers le bas",
"Faire défiler vers la gauche au pointage",
"Faire défiler le pointage vers la droite",
"Pointer vers le haut de la page",
"Pointer vers le bas de la page",
"Atteindre le pointage supérieur",
"Pointer vers le bas",
"Pointage du focus déchappement",
],
"vs/editor/contrib/hover/browser/markdownHoverParticipant": [
"Chargement en cours...",
@ -1262,6 +1280,12 @@ define("vs/editor/editor.main.nls.fr", {
"&&Activer/désactiver le défilement épinglé",
"Défilement épinglé",
"&&Défilement épinglé",
"Focus sur le défilement du pense-bête",
"&&Focus sur le défilement du pense-bête",
"Sélectionner la ligne de défilement du pense-bête suivante",
"Sélectionner la ligne de défilement du pense-bête précédente",
"Atteindre la ligne de défilement pense-bête prioritaire",
"Sélectionner l\'éditeur",
],
"vs/editor/contrib/suggest/browser/suggest": [
"Indique si une suggestion a le focus",
@ -1362,6 +1386,7 @@ define("vs/editor/editor.main.nls.fr", {
"Ce document contient de nombreux caractères Unicode ASCII non basiques.",
"Ce document contient de nombreux caractères Unicode ambigus.",
"Ce document contient de nombreux caractères Unicode invisibles.",
"Le caractère {0} peut être confondu avec le caractère ASCII {1}, qui est plus courant dans le code source.",
"Le caractère {0} peut être confus avec le caractère {1}, ce qui est plus courant dans le code source.",
"Le caractère {0} est invisible.",
"Le caractère {0} nest pas un caractère ASCII de base.",
@ -1412,6 +1437,7 @@ define("vs/editor/editor.main.nls.fr", {
"Afficher",
"Aide",
"Test",
"fichier",
"Préférences",
"Développeur",
],
@ -1475,6 +1501,17 @@ define("vs/editor/editor.main.nls.fr", {
"vs/platform/contextkey/browser/contextKeyService": [
"Commande qui retourne des informations sur les clés de contexte",
],
"vs/platform/contextkey/common/contextkey": [
"Expression de clé de contexte vide",
"Avez-vous oublié décrire une expression ? Vous pouvez également placer \'false\' ou \'true\' pour toujours donner la valeur false ou true, respectivement.",
"\'in\' après \'not\'.",
"parenthèse fermante \')\'",
"Jeton inattendu",
"Avez-vous oublié de placer && ou || avant le jeton ?",
"Fin dexpression inattendue",
"Avez-vous oublié de placer une clé de contexte ?",
"Attendu : {0}\r\nReçu : \'{1}\'.",
],
"vs/platform/contextkey/common/contextkeys": [
"Indique si le système d\'exploitation est macOS",
"Indique si le système d\'exploitation est Linux",
@ -1486,11 +1523,19 @@ define("vs/editor/editor.main.nls.fr", {
"Type de qualité de VS Code",
"Indique si le focus clavier se trouve dans une zone d\'entrée",
],
"vs/platform/contextkey/common/scanner": [
"Voulez-vous dire {0}?",
"Voulez-vous dire {0} ou {1}?",
"Voulez-vous dire {0}, {1} ou {2}?",
"Avez-vous oublié douvrir ou de fermer le devis ?",
"Avez-vous oublié déchapper le caractère « / » (barre oblique) ? Placez deux barre obliques inverses avant dy échapper, par ex., « \\\\/ ».",
],
"vs/platform/history/browser/contextScopedHistoryWidget": [
"Indique si les suggestions sont visibles",
],
"vs/platform/keybinding/common/abstractKeybindingService": [
"Touche ({0}) utilisée. En attente d\'une seconde touche...",
"({0}) a été enfoncé. En attente de la touche suivante de la pression...",
"La combinaison de touches ({0}, {1}) nest pas une commande.",
],
"vs/platform/list/browser/listService": [
@ -1651,6 +1696,7 @@ define("vs/editor/editor.main.nls.fr", {
"Couleur de bordure de la plage limitant la recherche. La couleur ne doit pas être opaque pour ne pas masquer les ornements sous-jacents.",
"Couleur des correspondances de requête de l\'éditeur de recherche.",
"Couleur de bordure des correspondances de requête de l\'éditeur de recherche.",
"Couleur du texte dans le message dachèvement de la viewlet de recherche.",
"Surlignage sous le mot sélectionné par pointage. La couleur ne doit pas être opaque pour ne pas masquer les ornements sous-jacents.",
"Couleur d\'arrière-plan du pointage de l\'éditeur.",
"Couleur de premier plan du pointage de l\'éditeur.",

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/
@ -158,7 +158,8 @@ define("vs/editor/editor.main.nls.it", {
"Controlla se l\'evidenziazione semanticHighlighting è visualizzata per i linguaggi che la supportano.",
"Consente di mantenere aperti gli editor rapidi anche quando si fa doppio clic sul contenuto o si preme \'ESC\'.",
"Per motivi di prestazioni le righe di lunghezza superiore non verranno tokenizzate",
"Controls whether the tokenization should happen asynchronously on a web worker.",
"Controlla se la tokenizzazione deve essere eseguita in modo asincrono in un web worker.",
"Controlla se deve essere registrata la tokenizzazione asincrona. Solo per il debug.",
"Definisce i simboli di parentesi quadra che aumentano o riducono il rientro.",
"Sequenza di stringa o carattere parentesi quadra di apertura.",
"Sequenza di stringa o carattere parentesi quadra di chiusura.",
@ -231,6 +232,7 @@ define("vs/editor/editor.main.nls.it", {
"Abilita la lampadina delle azioni codice nell\'editor.",
"Mostra gli ambiti correnti annidati durante lo scorrimento nella parte superiore dell\'editor.",
"Definisce il numero massimo di righe permanenti da mostrare.",
"Definisce il modello da utilizzare per determinare quali linee applicare. Se il modello di struttura non esiste, verrà eseguito il fallback sul modello del provider di riduzione che rientra nel modello di rientro. Questo ordine viene rispettato in tutti e tre i casi.",
"Abilita i suggerimenti incorporati nell\'Editor.",
"Gli hint di inlay sono abilitati",
"Gli hint di inlay vengono visualizzati per impostazione predefinita e vengono nascosti quando si tiene premuto {0}",
@ -292,6 +294,7 @@ define("vs/editor/editor.main.nls.it", {
"Mostra la barra degli strumenti dei suggerimenti in linea ogni volta che viene visualizzato un suggerimento in linea.",
"Mostra la barra degli strumenti dei suggerimenti in linea quando al passaggio del mouse su un suggerimento in linea.",
"Controlla quando mostrare la barra dei suggerimenti in linea.",
"Controlla la modalità di interazione dei suggerimenti inline con il widget dei suggerimenti. Se questa opzione è abilitata, il widget dei suggerimenti non viene visualizzato automaticamente quando sono disponibili suggerimenti inline.",
"Controlla se la colorazione delle coppie di parentesi è abilitata. Usare {0} per eseguire l\'override dei colori di evidenziazione delle parentesi.",
"Controlla se ogni tipo di parentesi ha un pool di colori indipendente.",
"Abilita le guide per coppie di parentesi quadre.",
@ -368,6 +371,7 @@ define("vs/editor/editor.main.nls.it", {
"Controlla se i suggerimenti devono essere accettati con \'INVIO\' in aggiunta a \'TAB\'. In questo modo è possibile evitare ambiguità tra l\'inserimento di nuove righe e l\'accettazione di suggerimenti.",
"Controlla il numero di righe nell\'Editor che possono essere lette alla volta da un utilità per la lettura dello schermo. Quando viene rilevata un\'utilità per la lettura dello schermo, questo valore viene impostato su 500 per impostazione predefinita. Avviso: questa opzione può influire sulle prestazioni se il numero di righe è superiore a quello predefinito.",
"Contenuto editor",
"Controlla se i suggerimenti inline vengono annunciati da un\'utilità per la lettura dello schermo. Si noti che questo non funziona in macOS con VoiceOver.",
"Usa le configurazioni del linguaggio per determinare la chiusura automatica delle parentesi.",
"Chiudi automaticamente le parentesi solo quando il cursore si trova alla sinistra di uno spazio vuoto.",
"Controlla se l\'editor deve chiudere automaticamente le parentesi quadre dopo che sono state aperte.",
@ -570,6 +574,9 @@ define("vs/editor/editor.main.nls.it", {
"Indica se per l\'editor esistono più selezioni",
"Indica se premendo `TAB`, lo stato attivo verrà spostato all\'esterno dell\'editor",
"Indica se il passaggio del puntatore nell\'editor è visibile",
"Indica se l\'area sensibile al passaggio del mouse dell\'edito è attivata",
"Indica se lo scorrimento permanente è attivo",
"Indica se lo scorrimento permanente è visibile",
"Indica se l\'editor fa parte di un editor più esteso (ad esempio notebook)",
"Identificatore lingua dell\'editor",
"Indica se per l\'editor esiste un provider di voci di completamento",
@ -649,6 +656,7 @@ define("vs/editor/editor.main.nls.it", {
"Colore del marcatore del righello delle annotazioni per la corrispondenza delle parentesi.",
"Vai alla parentesi quadra",
"Seleziona fino alla parentesi",
"Rimuovi parentesi quadre",
"Vai alla parentesi &&quadra",
],
"vs/editor/contrib/caretOperations/browser/caretOperations": [
@ -670,6 +678,8 @@ define("vs/editor/editor.main.nls.it", {
"Copia con nome",
"Copia con nome",
"Condividi",
"Condividi",
"Condividi",
"&&Incolla",
"Incolla",
"Incolla",
@ -680,10 +690,6 @@ define("vs/editor/editor.main.nls.it", {
"Si è verificato un errore sconosciuto durante l\'applicazione dell\'azione del codice",
],
"vs/editor/contrib/codeAction/browser/codeActionCommands": [
"Non sono disponibili refactoring preferiti per \'{0}\'",
"Non sono disponibili refactoring per \'{0}\'",
"Non sono disponibili refactoring preferiti",
"Refactoring non disponibili",
"Tipo dell\'azione codice da eseguire.",
"Controlla quando vengono applicate le azioni restituite.",
"Applica sempre la prima azione codice restituita.",
@ -697,7 +703,10 @@ define("vs/editor/editor.main.nls.it", {
"Non sono disponibili azioni codice preferite",
"Azioni codice non disponibili",
"Effettua refactoring...",
"Refactoring con anteprima...",
"Non sono disponibili refactoring preferiti per \'{0}\'",
"Non sono disponibili refactoring per \'{0}\'",
"Non sono disponibili refactoring preferiti",
"Refactoring non disponibili",
"Azione origine...",
"Non sono disponibili azioni origine preferite per \'{0}\'",
"Non sono disponibili azioni origine per \'{0}\'",
@ -966,8 +975,17 @@ define("vs/editor/editor.main.nls.it", {
"Simbolo {0} di {1}",
],
"vs/editor/contrib/hover/browser/hover": [
"Visualizza passaggio del mouse",
"Mostra o sposta lo stato attivo al passaggio del mouse",
"Mostra anteprima definizione al passaggio del mouse",
"Scorri verso l\'alto al passaggio del mouse",
"Scorri verso il basso al passaggio del mouse",
"Scorri a sinistra al passaggio del mouse",
"Scorri a destra al passaggio del mouse",
"Vai alla pagina precedente al passaggio del mouse",
"Vai alla pagina successiva al passaggio del mouse",
"Vai in alto al passaggio del mouse",
"Vai in basso al passaggio del mouse",
"Esci dallo stato attivo al passaggio del mouse",
],
"vs/editor/contrib/hover/browser/markdownHoverParticipant": [
"Caricamento...",
@ -1262,6 +1280,12 @@ define("vs/editor/editor.main.nls.it", {
"&&Alternanza scorrimento permanente",
"Scorrimento permanente",
"&&Scorrimento permanente",
"Sposta stato attivo su Scorrimento permanente",
"&&Sposta stato attivo su Scorrimento permanente",
"Seleziona la riga di scorrimento permanente successiva",
"Seleziona riga di scorrimento permanente precedente",
"Vai alla linea di scorrimento permanente attiva",
"Selezionare l\'editor",
],
"vs/editor/contrib/suggest/browser/suggest": [
"Indica se i suggerimenti sono evidenziati",
@ -1362,6 +1386,7 @@ define("vs/editor/editor.main.nls.it", {
"Questo documento contiene molti caratteri Unicode ASCII non di base",
"Il documento contiene molti caratteri Unicode ambigui",
"Questo documento contiene molti caratteri Unicode invisibili",
"Il carattere {0} potrebbe essere confuso con il carattere ASCII {1}, che è più comune nel codice sorgente.",
"Il carattere {0} potrebbe essere confuso con il carattere {1}, che è più comune nel codice sorgente.",
"Il carattere {0} è invisibile.",
"Il carattere {0} non è un carattere ASCII di base.",
@ -1412,6 +1437,7 @@ define("vs/editor/editor.main.nls.it", {
"Visualizza",
"Guida",
"Test",
"FILE",
"Preferenze",
"Sviluppatore",
],
@ -1475,6 +1501,17 @@ define("vs/editor/editor.main.nls.it", {
"vs/platform/contextkey/browser/contextKeyService": [
"Comando che restituisce informazioni sulle chiavi di contesto",
],
"vs/platform/contextkey/common/contextkey": [
"Espressione chiave di contesto vuota",
"Si è dimenticato di scrivere un\'espressione? È anche possibile inserire \'false\' o \'true\' per restituire sempre rispettivamente false o true.",
"\'in\' dopo \'not\'.",
"Parentesi chiusa \')\'",
"Token imprevisto",
"Si è dimenticato di inserire && o || prima del token?",
"Fine imprevista dell\'espressione",
"Si è dimenticato di inserire una chiave di contesto?",
"Previsto: {0}\r\nRicevuto: \'{1}\'.",
],
"vs/platform/contextkey/common/contextkeys": [
"Indica se il sistema operativo è macOS",
"Indica se il sistema operativo è Linux",
@ -1486,11 +1523,19 @@ define("vs/editor/editor.main.nls.it", {
"Tipo di qualità del VS Code",
"Indica se lo stato attivo della tastiera si trova all\'interno di una casella di input",
],
"vs/platform/contextkey/common/scanner": [
"Si intendeva {0}?",
"Si intendeva {0} o {1}?",
"Si intendeva {0}, {1} o {2}?",
"Si è dimenticato di aprire o chiudere la citazione?",
"Si è dimenticato di eseguire il carattere di escape \'/\' (slash)? Inserire due barre rovesciate prima del carattere di escape, ad esempio \'\\\\/\'.",
],
"vs/platform/history/browser/contextScopedHistoryWidget": [
"Indica se i suggerimenti sono visibili",
],
"vs/platform/keybinding/common/abstractKeybindingService": [
"È stato premuto ({0}). In attesa del secondo tasto...",
"È stato premuto ({0}). In attesa del prossimo tasto...",
"La combinazione di tasti ({0}, {1}) non è un comando.",
],
"vs/platform/list/browser/listService": [
@ -1651,6 +1696,7 @@ define("vs/editor/editor.main.nls.it", {
"Colore del bordo dell\'intervallo che limita la ricerca. Il colore non deve essere opaco per evitare di nascondere le decorazioni sottostanti.",
"Colore delle corrispondenze query dell\'editor della ricerca.",
"Colore del bordo delle corrispondenze query dell\'editor della ricerca.",
"Colore del testo nel messaggio di completamento del viewlet di ricerca.",
"Evidenziazione sotto la parola per cui è visualizzata un\'area sensibile al passaggio del mouse. Il colore non deve essere opaco per evitare di nascondere le decorazioni sottostanti.",
"Colore di sfondo dell\'area sensibile al passaggio del mouse dell\'editor.",
"Colore primo piano dell\'area sensibile al passaggio del mouse dell\'editor.",

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/
@ -158,7 +158,8 @@ define("vs/editor/editor.main.nls.ja", {
"semanticHighlighting をサポートされる言語で表示するかどうかを制御します。",
"エディターのコンテンツをダブルクリックするか、`Escape` キーを押しても、ピーク エディターを開いたままにします。",
"この長さを越える行は、パフォーマンス上の理由によりトークン化されません。",
"Controls whether the tokenization should happen asynchronously on a web worker.",
"Web ワーカーでトークン化を非同期的に行うかどうかを制御します。",
"非同期トークン化をログに記録するかどうかを制御します。デバッグ用のみ。",
"インデントを増減する角かっこを定義します。",
"左角かっこまたは文字列シーケンス。",
"右角かっこまたは文字列シーケンス。",
@ -231,6 +232,7 @@ define("vs/editor/editor.main.nls.ja", {
"エディターでコード アクションの電球を有効にします。",
"スクロール中にエディターの上部に入れ子になった現在のスコープを表示します。",
"表示する追従行の最大数を定義します。",
"固定する行を決定するために使用するモデルを定義します。アウトライン モデルが存在しない場合、インデント モデルにフォールバックする折りたたみプロバイダー モデルにフォールバックします。この順序は、3 つのケースすべてで優先されます。",
"エディターでインレー ヒントを有効にします。",
"インレイ ヒントが有効になっています",
"インレイ ヒントは既定で表示され、{0} を押したままにすると非表示になります",
@ -292,6 +294,7 @@ define("vs/editor/editor.main.nls.ja", {
"インライン候補が表示されるたびに、インライン候補ツール バーを表示します。",
"インライン候補にカーソルを合わせるたびに、インライン候補ツール バーを表示します。",
"インライン候補ツール バーを表示するタイミングを制御します。",
"インライン提案と提案ウィジェットの相互作用の方法を制御します。有効すると、インライン候補が使用可能な場合は、提案ウィジェットが自動的に表示されません。",
"ブラケットのペアの色付けが有効かどうかを制御します。 {0} を使用して、ブラケットの強調表示の色をオーバーライドします。",
"括弧の各種別が、個別のカラー プールを保持するかどうかを制御します。",
"ブラケット ペア ガイドを有効にする。",
@ -368,6 +371,7 @@ define("vs/editor/editor.main.nls.ja", {
"`Tab` キーに加えて `Enter` キーで候補を受け入れるかどうかを制御します。改行の挿入や候補の反映の間であいまいさを解消するのに役立ちます。",
"一度にスクリーン リーダーによって読み上げることができるエディターの行数を制御します。スクリーン リーダーが検出されると、既定値が 500 に自動的に設定されます。警告: 既定値より大きい数値の場合は、パフォーマンスに影響があります。",
"エディターのコンテンツ",
"スクリーン リーダーでインライン候補が通知されるかどうかを制御します。VoiceOver を使用した macOS では動作しないことに注意してください。",
"言語設定を使用して、いつかっこを自動クローズするか決定します。",
"カーソルが空白文字の左にあるときだけ、かっこを自動クローズします。",
"エディターで左角かっこを追加した後に自動的に右角かっこを挿入するかどうかを制御します。",
@ -570,6 +574,9 @@ define("vs/editor/editor.main.nls.ja", {
"エディターに複数の選択範囲があるかどうか",
"`Tab` によってフォーカスがエディターの外に移動するかどうか",
"エディターのホバーが表示されているかどうか",
"エディターのホバーがフォーカスされているかどうか",
"固定スクロールがフォーカスされているかどうか",
"固定スクロールが表示されているかどうか",
"エディターがより大きなエディター (例: Notebooks) の一部であるかどうか",
"エディターの言語識別子",
"エディターに入力候補項目プロバイダーがあるかどうか",
@ -649,6 +656,7 @@ define("vs/editor/editor.main.nls.ja", {
"一致するブラケットを示す概要ルーラーのマーカー色。",
"ブラケットへ移動",
"ブラケットに選択",
"かっこを外す",
"ブラケットに移動(&&B)",
],
"vs/editor/contrib/caretOperations/browser/caretOperations": [
@ -670,6 +678,8 @@ define("vs/editor/editor.main.nls.ja", {
"形式を指定してコピー",
"形式を指定してコピー",
"共有",
"共有",
"共有",
"貼り付け(&&P)",
"貼り付け",
"貼り付け",
@ -680,10 +690,6 @@ define("vs/editor/editor.main.nls.ja", {
"コード アクションの適用中に不明なエラーが発生しました",
],
"vs/editor/contrib/codeAction/browser/codeActionCommands": [
"\'{0}\' に対して使用できる優先リファクタリングがありません",
"\'{0}\' に対して使用できるリファクタリングがありません",
"使用できる優先リファクタリングがありません",
"利用可能なリファクタリングはありません",
"実行するコード アクションの種類。",
"返されたアクションが適用されるタイミングを制御します。",
"最初に返されたコード アクションを常に適用します。",
@ -697,7 +703,10 @@ define("vs/editor/editor.main.nls.ja", {
"使用できる優先コード アクションがありません",
"利用可能なコード アクションはありません",
"リファクター...",
"プレビューを使用したリファクター...",
"\'{0}\' に対して使用できる優先リファクタリングがありません",
"\'{0}\' に対して使用できるリファクタリングがありません",
"使用できる優先リファクタリングがありません",
"利用可能なリファクタリングはありません",
"ソース アクション...",
"\'{0}\' に対して使用できる優先ソース アクションがありません",
"\'{0}\' に対して使用できるソース アクションがありません",
@ -966,8 +975,17 @@ define("vs/editor/editor.main.nls.ja", {
"シンボル {0}/{1}",
],
"vs/editor/contrib/hover/browser/hover": [
"ホバーの表示",
"[表示またはフォーカス] ホバー",
"定義プレビューのホバーを表示する",
"[上にスクロール] ホバー",
"[下にスクロール] ホバー",
"[左にスクロール] ホバー",
"[右にスクロール] ホバー",
"[ページを上に] ホバー",
"[ページを下に] ホバー",
"[上に移動] ホバー",
"[下に移動] ホバー",
"[フォーカスのエスケープ] ホバー",
],
"vs/editor/contrib/hover/browser/markdownHoverParticipant": [
"読み込んでいます...",
@ -1262,6 +1280,12 @@ define("vs/editor/editor.main.nls.ja", {
"固定スクロールの切り替え(&&T)",
"固定スクロール",
"固定スクロール(&&)",
"固定スクロールへのフォーカス",
"固定スクロールへのフォーカス(&F)",
"次の固定スクロール行を選択",
"前の固定スクロール行を選択",
"フォーカスされた固定スクロール行に移動",
"エディターを選択",
],
"vs/editor/contrib/suggest/browser/suggest": [
"候補がフォーカスされているかどうか",
@ -1362,6 +1386,7 @@ define("vs/editor/editor.main.nls.ja", {
"このドキュメントには、基本 ASCII 外の Unicode 文字が多数含まれています",
"このドキュメントにはまぎらわしい Unicode 文字が多数含まれています",
"このドキュメントには不可視の Unicode 文字が多数含まれています",
"文字 {0} は、ソース コードでより一般的な ASCII 文字 {1} と混同される可能性があります。",
"文字 {0}は、ソース コードでより一般的な文字{1}と混同される可能性があります。",
"文字 {0}は非表示です。",
"文字 {0} は基本 ASCII 文字ではありません。",
@ -1412,6 +1437,7 @@ define("vs/editor/editor.main.nls.ja", {
"表示",
"ヘルプ",
"テスト",
"ファイル",
"基本設定",
"開発者",
],
@ -1475,6 +1501,17 @@ define("vs/editor/editor.main.nls.ja", {
"vs/platform/contextkey/browser/contextKeyService": [
"コンテキスト キーに関する情報を返すコマンド",
],
"vs/platform/contextkey/common/contextkey": [
"空のコンテキスト キー式",
"式を書き忘れましたか? \'false\' または \'true\' を指定すると、それぞれ常に false または true と評価できます。",
"\'not\' の後に \'in\' があります。",
"終わりかっこ \')\'",
"予期しないトークン",
"トークンの前に && または || を指定し忘れましたか?",
"予期しない式の終わり",
"コンテキスト キーを指定し忘れましたか?",
"期待値: {0}\r\n受取済み: \'{1}\'。",
],
"vs/platform/contextkey/common/contextkeys": [
"オペレーティング システムが macOS であるかどうか",
"オペレーティング システムが Linux であるかどうか",
@ -1486,11 +1523,19 @@ define("vs/editor/editor.main.nls.ja", {
"VS Code の品質の種類",
"キーボードのフォーカスが入力ボックス内にあるかどうか",
],
"vs/platform/contextkey/common/scanner": [
"{0} を意図していましたか?",
"{0} または {1} を意図していましたか?",
"{0}、{1}、または {2} を意図していましたか?",
"見積もりを開いたり閉じたりし忘れましたか?",
"\'/\' (スラッシュ) 文字をエスケープし忘れましたか? エスケープする前に \'\\\\/\' などの 2 つの円記号を指定してください。",
],
"vs/platform/history/browser/contextScopedHistoryWidget": [
"候補を表示するかどうか",
],
"vs/platform/keybinding/common/abstractKeybindingService": [
"({0}) が渡されました。2 番目のキーを待っています...",
"({0}) が渡されました。次のキーを待っています...",
"キーの組み合わせ ({0}、{1}) はコマンドではありません。",
],
"vs/platform/list/browser/listService": [
@ -1651,6 +1696,7 @@ define("vs/editor/editor.main.nls.ja", {
"検索を制限する範囲の境界線色。この色は、基本装飾が非表示にならないよう不透明にすることはできません。",
"検索エディターのクエリの色が一致します。",
"検索エディター クエリの境界線の色が一致します。",
"検索ビューレットの完了メッセージ内のテキストの色。",
"ホバーが表示されている語の下を強調表示します。この色は、基本装飾が非表示にならないよう不透明にすることはできません。",
"エディター ホバーの背景色。",
"エディター ホバーの前景色。",

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/
@ -162,6 +162,7 @@ define("vs/editor/editor.main.nls", {
"Keep peek editors open even when double-clicking their content or when hitting `Escape`.",
"Lines above this length will not be tokenized for performance reasons",
"Controls whether the tokenization should happen asynchronously on a web worker.",
"Controls whether async tokenization should be logged. For debugging only.",
"Defines the bracket symbols that increase or decrease the indentation.",
"The opening bracket character or string sequence.",
"The closing bracket character or string sequence.",
@ -234,6 +235,7 @@ define("vs/editor/editor.main.nls", {
"Enables the Code Action lightbulb in the editor.",
"Shows the nested current scopes during the scroll at the top of the editor.",
"Defines the maximum number of sticky lines to show.",
"Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.",
"Enables the inlay hints in the editor.",
"Inlay hints are enabled",
"Inlay hints are showing by default and hide when holding {0}",
@ -295,6 +297,7 @@ define("vs/editor/editor.main.nls", {
"Show the inline suggestion toolbar whenever an inline suggestion is shown.",
"Show the inline suggestion toolbar when hovering over an inline suggestion.",
"Controls when to show the inline suggestion toolbar.",
"Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.",
"Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.",
"Controls whether each bracket type has its own independent color pool.",
"Enables bracket pair guides.",
@ -371,6 +374,7 @@ define("vs/editor/editor.main.nls", {
"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.",
"Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.",
"Editor content",
"Control whether inline suggestions are announced by a screen reader. Note that this does not work on macOS with VoiceOver.",
"Use language configurations to determine when to autoclose brackets.",
"Autoclose brackets only when the cursor is to the left of whitespace.",
"Controls whether the editor should automatically close brackets after the user adds an opening bracket.",
@ -573,6 +577,9 @@ define("vs/editor/editor.main.nls", {
"Whether the editor has multiple selections",
"Whether `Tab` will move focus out of the editor",
"Whether the editor hover is visible",
"Whether the editor hover is focused",
"Whether the sticky scroll is focused",
"Whether the sticky scroll is visible",
"Whether the editor is part of a larger editor (e.g. notebooks)",
"The language identifier of the editor",
"Whether the editor has a completion item provider",
@ -652,6 +659,7 @@ define("vs/editor/editor.main.nls", {
"Overview ruler marker color for matching brackets.",
"Go to Bracket",
"Select to Bracket",
"Remove Brackets",
"Go to &&Bracket"
],
"vs/editor/contrib/caretOperations/browser/caretOperations": [
@ -673,6 +681,8 @@ define("vs/editor/editor.main.nls", {
"Copy As",
"Copy As",
"Share",
"Share",
"Share",
"&&Paste",
"Paste",
"Paste",
@ -683,10 +693,6 @@ define("vs/editor/editor.main.nls", {
"An unknown error occurred while applying the code action"
],
"vs/editor/contrib/codeAction/browser/codeActionCommands": [
"No preferred refactorings for '{0}' available",
"No refactorings for '{0}' available",
"No preferred refactorings available",
"No refactorings available",
"Kind of the code action to run.",
"Controls when the returned actions are applied.",
"Always apply the first returned code action.",
@ -700,7 +706,10 @@ define("vs/editor/editor.main.nls", {
"No preferred code actions available",
"No code actions available",
"Refactor...",
"Refactor with Preview...",
"No preferred refactorings for '{0}' available",
"No refactorings for '{0}' available",
"No preferred refactorings available",
"No refactorings available",
"Source Action...",
"No preferred source actions for '{0}' available",
"No source actions for '{0}' available",
@ -969,8 +978,17 @@ define("vs/editor/editor.main.nls", {
"Symbol {0} of {1}"
],
"vs/editor/contrib/hover/browser/hover": [
"Show Hover",
"Show Definition Preview Hover"
"Show or Focus Hover",
"Show Definition Preview Hover",
"Scroll Up Hover",
"Scroll Down Hover",
"Scroll Left Hover",
"Scroll Right Hover",
"Page Up Hover",
"Page Down Hover",
"Go To Top Hover",
"Go To Bottom Hover",
"Escape Focus Hover"
],
"vs/editor/contrib/hover/browser/markdownHoverParticipant": [
"Loading...",
@ -1264,7 +1282,13 @@ define("vs/editor/editor.main.nls", {
"Toggle Sticky Scroll",
"&&Toggle Sticky Scroll",
"Sticky Scroll",
"&&Sticky Scroll"
"&&Sticky Scroll",
"Focus Sticky Scroll",
"&&Focus Sticky Scroll",
"Select next sticky scroll line",
"Select previous sticky scroll line",
"Go to focused sticky scroll line",
"Select Editor"
],
"vs/editor/contrib/suggest/browser/suggest": [
"Whether any suggestion is focused",
@ -1365,6 +1389,7 @@ define("vs/editor/editor.main.nls", {
"This document contains many non-basic ASCII unicode characters",
"This document contains many ambiguous unicode characters",
"This document contains many invisible unicode characters",
"The character {0} could be confused with the ASCII character {1}, which is more common in source code.",
"The character {0} could be confused with the character {1}, which is more common in source code.",
"The character {0} is invisible.",
"The character {0} is not a basic ASCII character.",
@ -1415,6 +1440,7 @@ define("vs/editor/editor.main.nls", {
"View",
"Help",
"Test",
"File",
"Preferences",
"Developer"
],
@ -1478,6 +1504,17 @@ define("vs/editor/editor.main.nls", {
"vs/platform/contextkey/browser/contextKeyService": [
"A command that returns information about context keys"
],
"vs/platform/contextkey/common/contextkey": [
"Empty context key expression",
"Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively.",
"'in' after 'not'.",
"closing parenthesis ')'",
"Unexpected token",
"Did you forget to put && or || before the token?",
"Unexpected end of expression",
"Did you forget to put a context key?",
"Expected: {0}\nReceived: '{1}'."
],
"vs/platform/contextkey/common/contextkeys": [
"Whether the operating system is macOS",
"Whether the operating system is Linux",
@ -1489,11 +1526,19 @@ define("vs/editor/editor.main.nls", {
"Quality type of VS Code",
"Whether keyboard focus is inside an input box"
],
"vs/platform/contextkey/common/scanner": [
"Did you mean {0}?",
"Did you mean {0} or {1}?",
"Did you mean {0}, {1} or {2}?",
"Did you forget to open or close the quote?",
"Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'."
],
"vs/platform/history/browser/contextScopedHistoryWidget": [
"Whether suggestion are visible"
],
"vs/platform/keybinding/common/abstractKeybindingService": [
"({0}) was pressed. Waiting for second key of chord...",
"({0}) was pressed. Waiting for next key of chord...",
"The key combination ({0}, {1}) is not a command."
],
"vs/platform/list/browser/listService": [
@ -1654,6 +1699,7 @@ define("vs/editor/editor.main.nls", {
"Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations.",
"Color of the Search Editor query matches.",
"Border color of the Search Editor query matches.",
"Color of the text in the search viewlet's completion message.",
"Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations.",
"Background color of the editor hover.",
"Foreground color of the editor hover.",

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/
@ -158,7 +158,8 @@ define("vs/editor/editor.main.nls.ko", {
"semanticHighlighting이 지원하는 언어에 대해 표시되는지 여부를 제어합니다.",
"해당 콘텐츠를 두 번 클릭하거나 \'Esc\' 키를 누르더라도 Peek 편집기를 열린 상태로 유지합니다.",
"이 길이를 초과하는 줄은 성능상의 이유로 토큰화되지 않습니다.",
"Controls whether the tokenization should happen asynchronously on a web worker.",
"웹 작업자에서 토큰화가 비동기적으로 수행되어야 하는지 여부를 제어합니다.",
"비동기 토큰화가 기록되어야 하는지 여부를 제어합니다. 디버깅 전용입니다.",
"들여쓰기를 늘리거나 줄이는 대괄호 기호를 정의합니다.",
"여는 대괄호 문자 또는 문자열 시퀀스입니다.",
"닫는 대괄호 문자 또는 문자열 시퀀스입니다.",
@ -231,6 +232,7 @@ define("vs/editor/editor.main.nls.ko", {
"편집기에서 코드 동작 전구를 사용하도록 설정합니다.",
"편집기 위쪽에서 스크롤하는 동안 중첩된 현재 범위를 표시합니다.",
"표시할 최대 고정 선 수를 정의합니다.",
"고정할 줄을 결정하는 데 사용할 모델을 정의합니다. 개요 모델이 없으면 들여쓰기 모델에 해당하는 접기 공급자 모델에서 대체됩니다. 이 순서는 세 가지 경우 모두 적용됩니다.",
"편집기에서 인레이 힌트를 사용하도록 설정합니다.",
"인레이 힌트를 사용할 수 있음",
"인레이 힌트는 기본적으로 표시되고 {0}을(를) 길게 누를 때 숨겨집니다.",
@ -292,6 +294,7 @@ define("vs/editor/editor.main.nls.ko", {
"인라인 추천을 표시힐 때마다 인라인 추천 도구 모음을 표시합니다.",
"인라인 추천을 마우스로 가리키면 인라인 추천 도구 모음을 표시합니다.",
"인라인 추천 도구 모음을 표시할 시기를 제어합니다.",
"인라인 제안이 제안 위젯과 상호 작용하는 방법을 제어합니다. 사용하도록 설정하면 인라인 제안을 사용할 수 있을 때 제안 위젯이 자동으로 표시되지 않습니다.",
"대괄호 쌍 색 지정을 사용할지 여부를 제어합니다. {0}을(를) 사용하여 대괄호 강조 색을 재정의합니다.",
"각 대괄호 형식에 고유한 독립적인 색 풀이 있는지 여부를 제어합니다.",
"대괄호 쌍 가이드를 사용하도록 설정합니다.",
@ -368,6 +371,7 @@ define("vs/editor/editor.main.nls.ko", {
"\'Tab\' 키 외에 \'Enter\' 키에 대한 제안도 허용할지를 제어합니다. 새 줄을 삽입하는 동작과 제안을 허용하는 동작 간의 모호함을 없앨 수 있습니다.",
"화면 읽기 프로그램에서 한 번에 읽을 수 있는 편집기 줄 수를 제어합니다. 화면 읽기 프로그램을 검색하면 기본값이 500으로 자동 설정됩니다. 경고: 기본값보다 큰 수의 경우 성능에 영향을 미칩니다.",
"편집기 콘텐츠",
"화면 판독기에서 인라인 제안을 발표할지 여부를 제어합니다. VoiceOver가 있는 macOS에서는 작동하지 않습니다.",
"언어 구성을 사용하여 대괄호를 자동으로 닫을 경우를 결정합니다.",
"커서가 공백의 왼쪽에 있는 경우에만 대괄호를 자동으로 닫습니다.",
"사용자가 여는 괄호를 추가한 후 편집기에서 괄호를 자동으로 닫을지 여부를 제어합니다.",
@ -570,6 +574,9 @@ define("vs/editor/editor.main.nls.ko", {
"편집기에 여러 개의 선택 항목이 있는지 여부",
"\'Tab\' 키를 누르면 편집기 밖으로 포커스가 이동하는지 여부",
"편집기 호버가 표시되는지 여부",
"편집기 가리키기에 포커스가 있는지 여부",
"스티키 스크롤의 포커스 여부",
"스티키 스크롤의 가시성 여부",
"편집기가 더 큰 편집기(예: 전자 필기장)에 속해 있는지 여부",
"편집기의 언어 식별자",
"편집기에 완성 항목 공급자가 있는지 여부",
@ -649,6 +656,7 @@ define("vs/editor/editor.main.nls.ko", {
"괄호에 해당하는 영역을 표시자에 채색하여 표시합니다.",
"대괄호로 이동",
"괄호까지 선택",
"대괄호 제거",
"대괄호로 이동(&&B)",
],
"vs/editor/contrib/caretOperations/browser/caretOperations": [
@ -670,6 +678,8 @@ define("vs/editor/editor.main.nls.ko", {
"다음으로 복사",
"다음으로 복사",
"공유",
"공유",
"공유",
"붙여넣기(&&P)",
"붙여넣기",
"붙여넣기",
@ -680,10 +690,6 @@ define("vs/editor/editor.main.nls.ko", {
"코드 작업을 적용하는 중 알 수 없는 오류가 발생했습니다.",
],
"vs/editor/contrib/codeAction/browser/codeActionCommands": [
"\'{0}\'에 대한 기본 리팩터링 없음",
"\'{0}\'에 대한 리팩터링 없음",
"기본 설정 리팩터링을 사용할 수 없음",
"사용 가능한 리펙터링이 없습니다.",
"실행할 코드 작업의 종류입니다.",
"반환된 작업이 적용되는 경우를 제어합니다.",
"항상 반환된 첫 번째 코드 작업을 적용합니다.",
@ -697,7 +703,10 @@ define("vs/editor/editor.main.nls.ko", {
"사용할 수 있는 기본 코드 작업 없음",
"사용 가능한 코드 동작이 없습니다.",
"리팩터링...",
"미리 보기로 리팩터링...",
"\'{0}\'에 대한 기본 리팩터링 없음",
"\'{0}\'에 대한 리팩터링 없음",
"기본 설정 리팩터링을 사용할 수 없음",
"사용 가능한 리펙터링이 없습니다.",
"소스 작업...",
"\'{0}\'에 대한 기본 소스 작업을 사용할 수 없음",
"\'{0}\'에 대한 소스 작업을 사용할 수 없음",
@ -966,8 +975,17 @@ define("vs/editor/editor.main.nls.ko", {
"{1}의 기호 {0}",
],
"vs/editor/contrib/hover/browser/hover": [
"가리키기 표시",
"가리키기 또는 포커스 표시",
"정의 미리 보기 가리킨 항목 표시",
"위로 스크롤 가리키기",
"아래로 스크롤 가리키기",
"왼쪽으로 스크롤 가리키기",
"오른쪽으로 스크롤 가리키기",
"페이지 위로 가리키기",
"페이지 아래쪽 가리키기",
"위쪽 가리키기로 이동",
"아래쪽 가리키기로 이동",
"포커스 가리키기 이스케이프",
],
"vs/editor/contrib/hover/browser/markdownHoverParticipant": [
"로드 중...",
@ -1262,6 +1280,12 @@ define("vs/editor/editor.main.nls.ko", {
"고정 스크롤 토글(&&T)",
"고정 스크롤",
"고정 스크롤(&&S)",
"고정 스크롤 포커스",
"고정 스크롤 포커스(&&F)",
"다음 고정 스크롤 선 선택",
"이전 고정 스크롤 선 선택",
"포커스가 있는 고정 스크롤 선으로 이동",
"편집기 선택",
],
"vs/editor/contrib/suggest/browser/suggest": [
"제안에 초점을 맞추는지 여부",
@ -1362,6 +1386,7 @@ define("vs/editor/editor.main.nls.ko", {
"이 문서에는 기본 ASCII 유니코드 문자가 아닌 문자가 많이 포함되어 있습니다.",
"이 문서에는 모호한 유니코드 문자가 많이 포함되어 있습니다.",
"이 문서에는 보이지 않는 유니코드 문자가 많이 포함되어 있습니다.",
"문자 {0}은(는) 소스 코드에서 더 일반적인 ASCII 문자 {1}과(와) 혼동될 수 있습니다.",
"{0} 문자는 소스 코드에서 더 일반적인 {1} 문자와 혼동될 수 있습니다.",
"{0} 문자가 보이지 않습니다.",
"{0} 문자는 기본 ASCII 문자가 아닙니다.",
@ -1412,6 +1437,7 @@ define("vs/editor/editor.main.nls.ko", {
"보기",
"도움말",
"테스트",
"파일",
"기본 설정",
"개발자",
],
@ -1475,6 +1501,17 @@ define("vs/editor/editor.main.nls.ko", {
"vs/platform/contextkey/browser/contextKeyService": [
"컨텍스트 키에 대한 정보를 반환하는 명령",
],
"vs/platform/contextkey/common/contextkey": [
"빈 컨텍스트 키 식",
"식 쓰는 것을 잊으셨나요? 항상 \'false\' 또는 \'true\'를 넣어 각각 false 또는 true로 평가할 수도 있습니다.",
"\'not\' 뒤에 \'in\'이 있습니다.",
"닫는 괄호 \')\'",
"예기치 않은 토큰",
"토큰 앞에 && 또는 ||를 입력하는 것을 잊으셨나요?",
"필요하지 않은 식의 끝",
"컨텍스트 키를 입력하는 것을 잊으셨나요?",
"예상: {0}\r\n수신됨: \'{1}\'.",
],
"vs/platform/contextkey/common/contextkeys": [
"운영 체제가 macOS인지 여부",
"운영 체제가 Linux인지 여부",
@ -1486,11 +1523,19 @@ define("vs/editor/editor.main.nls.ko", {
"VS 코드의 품질 유형",
"키보드 포커스가 입력 상자 내에 있는지 여부",
],
"vs/platform/contextkey/common/scanner": [
"{0}을(를) 사용하시겠습니까?",
"{0} 또는 {1}을(를) 사용하시겠습니까?",
"{0}, {1} 또는 {2}을(를) 사용하시겠습니까?",
"견적을 열거나 닫는 것을 잊으셨나요?",
"\'/\'(슬래시) 문자를 이스케이프하는 것을 잊으셨나요? 이스케이프하려면 앞에 백슬라시 두 개(예: \'\\\\/\')를 넣습니다.",
],
"vs/platform/history/browser/contextScopedHistoryWidget": [
"제안이 표시되는지 여부",
],
"vs/platform/keybinding/common/abstractKeybindingService": [
"({0})을(를) 눌렀습니다. 둘째 키는 잠시 기다렸다가 누르십시오...",
"({0})을(를) 눌렀습니다. 코드의 다음 키를 기다리는 중...",
"키 조합({0}, {1})은 명령이 아닙니다.",
],
"vs/platform/list/browser/listService": [
@ -1651,6 +1696,7 @@ define("vs/editor/editor.main.nls.ko", {
"검색을 제한하는 범위의 테두리 색입니다. 기본 장식을 숨기지 않도록 색은 불투명하지 않아야 합니다.",
"검색 편집기 쿼리의 색상이 일치합니다.",
"검색 편집기 쿼리의 테두리 색상이 일치합니다.",
"검색 뷰렛 완료 메시지의 텍스트 색입니다.",
"호버가 표시된 단어 아래를 강조 표시합니다. 기본 장식을 숨기지 않도록 색은 불투명하지 않아야 합니다.",
"편집기 호버의 배경색.",
"편집기 호버의 전경색입니다.",

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/
@ -158,7 +158,8 @@ define("vs/editor/editor.main.nls.ru", {
"Определяет показ семантической подсветки для языков, поддерживающих ее.",
"Оставлять быстрый редактор открытым даже при двойном щелчке по его содержимому и при нажатии ESC.",
"Строки, длина которых превышает указанное значение, не будут размечены из соображений производительности",
"Controls whether the tokenization should happen asynchronously on a web worker.",
"Определяет, должна ли разметка происходить асинхронно в рабочей роли.",
"Определяет, следует ли регистрировать асинхронную разметку. Только для отладки.",
"Определяет символы скобок, увеличивающие или уменьшающие отступ.",
"Открывающий символ скобки или строковая последовательность.",
"Закрывающий символ скобки или строковая последовательность.",
@ -231,6 +232,7 @@ define("vs/editor/editor.main.nls.ru", {
"Включает значок лампочки для действия кода в редакторе.",
"Отображает вложенные текущие области во время прокрутки в верхней части редактора.",
"Определяет максимальное число залипающих линий для отображения.",
"Определяет модель, используемую для определения строк залипания. Если модель структуры не существует, она откатится к модели поставщика свертывания, которая откатывается к модели отступов. Этот порядок соблюдается во всех трех случаях.",
"Включает встроенные указания в редакторе.",
"Вложенные подсказки включены.",
"Вложенные подсказки отображаются по умолчанию и скрываются удержанием клавиш {0}.",
@ -292,6 +294,7 @@ define("vs/editor/editor.main.nls.ru", {
"Отображать панель инструментов встроенного предложения при каждом отображении встроенного предложения.",
"Отображать панель инструментов предложений при наведении указателя мыши на встроенное предложение.",
"Определяет, когда отображать встроенную панель инструментов предложений.",
"Управляет взаимодействием встроенных предложений с мини-приложением предложений. Если этот параметр включен, мини-приложение предложений не отображается автоматически, когда доступны встроенные предложения.",
"Определяет, включена ли раскраска пар скобок. Используйте {0} для переопределения цветов выделения скобок.",
"Определяет, имеет ли каждый тип скобок собственный независимый пул цветов.",
"Включение направляющих для пар скобок.",
@ -368,6 +371,7 @@ define("vs/editor/editor.main.nls.ru", {
"Определяет, будут ли предложения приниматься клавишей ВВОД в дополнение к клавише TAB. Это помогает избежать неоднозначности между вставкой новых строк и принятием предложений.",
"Управляет числом строк в редакторе, которые могут быть прочитаны средством чтения с экрана за один раз. При обнаружении средства чтения с экрана автоматически устанавливается значение по умолчанию 500. Внимание! При указании числа строк, превышающего значение по умолчанию, возможно снижение производительности.",
"Содержимое редактора",
"Управляйте тем, будут ли встроенные предложения объявляться средством чтения с экрана. Обратите внимание, что это не поддерживается в macOS с VoiceOver.",
"Использовать конфигурации языка для автоматического закрытия скобок.",
"Автоматически закрывать скобки только в том случае, если курсор находится слева от пробела.",
"Определяет, должен ли редактор автоматически добавлять закрывающую скобку при вводе пользователем открывающей скобки.",
@ -570,6 +574,9 @@ define("vs/editor/editor.main.nls.ru", {
"Есть ли в редакторе множественный выбор",
"Перемещается ли фокус с редактора при нажатии клавиши TAB",
"Является ли наведение в редакторе видимым",
"Находится ли в фокусе наведение в редакторе",
"Находится ли залипание прокрутки в фокусе",
"Отображается ли залипание прокрутки",
"Является ли редактор частью большего редактора (например, записных книжек)",
"Идентификатор языка редактора",
"Есть ли в редакторе поставщик элементов завершения",
@ -649,6 +656,7 @@ define("vs/editor/editor.main.nls.ru", {
"Цвет метки линейки в окне просмотра для пар скобок.",
"Перейти к скобке",
"Выбрать скобку",
"Удалить скобки",
"Перейти к &&скобке",
],
"vs/editor/contrib/caretOperations/browser/caretOperations": [
@ -670,6 +678,8 @@ define("vs/editor/editor.main.nls.ru", {
"Копировать как",
"Копировать как",
"Поделиться",
"Поделиться",
"Поделиться",
"&&Вставить",
"Вставить",
"Вставить",
@ -680,10 +690,6 @@ define("vs/editor/editor.main.nls.ru", {
"При применении действия кода произошла неизвестная ошибка",
],
"vs/editor/contrib/codeAction/browser/codeActionCommands": [
"Нет доступных предпочтительных рефакторингов для \"{0}\"",
"Нет доступного рефакторинга для \"{0}\"",
"Нет доступных предпочтительных рефакторингов",
"Доступные операции рефакторинга отсутствуют",
"Тип запускаемого действия кода.",
"Определяет, когда применяются возвращенные действия.",
"Всегда применять первое возвращенное действие кода.",
@ -697,7 +703,10 @@ define("vs/editor/editor.main.nls.ru", {
"Нет доступных предпочтительных действий кода",
"Доступные действия кода отсутствуют",
"Рефакторинг...",
"Рефакторинг с предварительной версией...",
"Нет доступных предпочтительных рефакторингов для \"{0}\"",
"Нет доступного рефакторинга для \"{0}\"",
"Нет доступных предпочтительных рефакторингов",
"Доступные операции рефакторинга отсутствуют",
"Действие с исходным кодом...",
"Нет доступных предпочтительных действий источника для \'{0}\'",
"Нет доступных исходных действий для \"{0}\"",
@ -966,8 +975,17 @@ define("vs/editor/editor.main.nls.ru", {
"Символ {0} из {1}",
],
"vs/editor/contrib/hover/browser/hover": [
"Показать при наведении",
"Показать наведение или перевести на него фокус",
"Отображать предварительный просмотр определения при наведении курсора мыши",
"Прокрутить наведение вверх",
"Прокрутить наведение вниз",
"Прокрутить наведение влево",
"Прокрутить наведение вправо",
"Перейти на страницу вверх в наведении",
"Перейти на страницу вниз в наведении",
"Перейти к верхнему наведению",
"Перейти к нижнему наведению",
"Выйти из наведения в фокусе",
],
"vs/editor/contrib/hover/browser/markdownHoverParticipant": [
"Загрузка...",
@ -1262,6 +1280,12 @@ define("vs/editor/editor.main.nls.ru", {
"&&Переключить залипание прокрутки",
"Залипание прокрутки",
"&&&Залипание прокрутки",
"Фокус на залипании прокрутки",
"&&Фокус на залипании прокрутки",
"Выбрать следующую строку залипания прокрутки",
"Выбрать предыдущую строку залипания прокрутки",
"Перейти к строке залипания прокрутки, которая находится в фокусе",
"Выберите редактор",
],
"vs/editor/contrib/suggest/browser/suggest": [
"Находится ли какое-либо предложение в фокусе",
@ -1362,6 +1386,7 @@ define("vs/editor/editor.main.nls.ru", {
"Этот документ содержит много нестандартных символов Юникода ASCII",
"Этот документ содержит много неоднозначных символов Юникода",
"Этот документ содержит много невидимых символов Юникода",
"Символ {0} можно спутать с символом ASCII {1}, который чаще встречается в исходном коде.",
"Символ {0} можно спутать с символом {1}, который чаще встречается в исходном коде.",
"Символ {0} невидим.",
"Символ {0} не является базовым символом ASCII.",
@ -1412,6 +1437,7 @@ define("vs/editor/editor.main.nls.ru", {
"Представление",
"Справка",
"Тест",
"Файл",
"Параметры",
"Разработчик",
],
@ -1475,6 +1501,17 @@ define("vs/editor/editor.main.nls.ru", {
"vs/platform/contextkey/browser/contextKeyService": [
"Команда, возвращающая сведения о ключах контекста",
],
"vs/platform/contextkey/common/contextkey": [
"Пустое выражение ключа контекста",
"Вы забыли записать выражение? Вы также можете поместить \"false\" или \"true\", чтобы всегда оценивать по значению false или true соответственно.",
"\"in\" после \"not\".",
"закрывающая круглая скобка \")\"",
"Непредвиденный маркер",
"Возможно, вы забыли поместить && или || перед маркером?",
"Неожиданный конец выражения",
"Возможно, вы забыли поместить ключ контекста?",
"Ожидается: {0}\r\nПолучено: \"{1}\".",
],
"vs/platform/contextkey/common/contextkeys": [
"Используется ли операционная система macOS",
"Используется ли операционная система Linux",
@ -1486,11 +1523,19 @@ define("vs/editor/editor.main.nls.ru", {
"Тип качества VS Code",
"Находится ли фокус клавиатуры в поле ввода",
],
"vs/platform/contextkey/common/scanner": [
"Вы имели в виду {0}?",
"Вы имели в виду {0} или {1}?",
"Вы имели в виду {0}, {1} или {2}?",
"Вы забыли открыть или закрыть цитату?",
"Вы забыли экранировать символ \"/\" (косая черта)? Чтобы экранировать, поместите перед символом две обратные косые черты, например \"\\\\/\".",
],
"vs/platform/history/browser/contextScopedHistoryWidget": [
"Отображаются ли предложения",
],
"vs/platform/keybinding/common/abstractKeybindingService": [
"Была нажата клавиша {0}. Ожидание нажатия второй клавиши сочетания...",
"Была нажата клавиша ({0}). Ожидание нажатия следующей клавиши сочетания...",
"Сочетание клавиш ({0} и {1}) не является командой.",
],
"vs/platform/list/browser/listService": [
@ -1651,6 +1696,7 @@ define("vs/editor/editor.main.nls.ru", {
"Цвет границы для диапазона, ограничивающего поиск. Цвет не должен быть непрозрачным, чтобы не скрыть расположенные ниже элементы оформления.",
"Цвет соответствий для запроса в редакторе поиска.",
"Цвет границы для соответствующих запросов в редакторе поиска.",
"Цвет текста в поиске сообщения завершения вьюлета.",
"Выделение под словом, для которого отображается меню при наведении курсора. Цвет не должен быть непрозрачным, чтобы не скрыть расположенные ниже элементы оформления.",
"Цвет фона при наведении указателя на редактор.",
"Цвет переднего плана для наведения указателя на редактор.",

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/
@ -158,7 +158,8 @@ define("vs/editor/editor.main.nls.zh-cn", {
"控制是否为支持它的语言显示语义突出显示。",
"保持速览编辑器处于打开状态,即使双击其中的内容或者点击 `Escape` 键也是如此。",
"由于性能原因,超过这个长度的行将不会被标记",
"Controls whether the tokenization should happen asynchronously on a web worker.",
"控制是否应在 Web 辅助进程上异步进行标记化。",
"控制是否应记录异步词汇切分。仅用于调试。",
"定义增加和减少缩进的括号。",
"左方括号字符或字符串序列。",
"右方括号字符或字符串序列。",
@ -231,6 +232,7 @@ define("vs/editor/editor.main.nls.zh-cn", {
"在编辑器中启用代码操作小灯泡提示。",
"在编辑器顶部的滚动过程中显示嵌套的当前作用域。",
"定义要显示的最大粘滞行数。",
"定义用于确定要粘贴的行的模型。如果大纲模型不存在,它将回退到回退到缩进模型的折叠提供程序模型上。在所有三种情况下都遵循此顺序。",
"在编辑器中启用内联提示。",
"已启用内嵌提示",
"默认情况下显示内嵌提示,并在按住 {0} 时隐藏",
@ -292,6 +294,7 @@ define("vs/editor/editor.main.nls.zh-cn", {
"每当显示内联建议时,显示内联建议工具栏。",
"将鼠标悬停在内联建议上时显示内联建议工具栏。",
"控制何时显示内联建议工具栏。",
"控制内联建议如何与建议小组件交互。如果启用,当内联建议可用时,不会自动显示建议小组件。",
"控制是否启用括号对着色。请使用 {0} 重写括号突出显示颜色。",
"控制每个方括号类型是否具有自己的独立颜色池。",
"启用括号对参考线。",
@ -368,6 +371,7 @@ define("vs/editor/editor.main.nls.zh-cn", {
"控制除了 `Tab` 键以外, `Enter` 键是否同样可以接受建议。这能减少“插入新行”和“接受建议”命令之间的歧义。",
"控制编辑器中可由屏幕阅读器一次读出的行数。我们检测到屏幕阅读器时,会自动将默认值设置为 500。警告: 如果行数大于默认值,可能会影响性能。",
"编辑器内容",
"控制内联建议是否由屏幕阅读器公布。请注意,这不适用于带有 VoiceOver 的 macOS。",
"使用语言配置确定何时自动闭合括号。",
"仅当光标位于空白字符左侧时,才自动闭合括号。",
"控制编辑器是否在左括号后自动插入右括号。",
@ -570,6 +574,9 @@ define("vs/editor/editor.main.nls.zh-cn", {
"编辑器是否有多个选择",
"\"Tab\" 是否将焦点移出编辑器",
"编辑器软键盘是否可见",
"是否聚焦编辑器悬停",
"是否聚焦粘性滚动",
"粘性滚动是否可见",
"该编辑器是否是更大的编辑器(例如笔记本)的一部分",
"编辑器的语言标识符",
"编辑器是否具有补全项提供程序",
@ -649,6 +656,7 @@ define("vs/editor/editor.main.nls.zh-cn", {
"概览标尺上表示匹配括号的标记颜色。",
"转到括号",
"选择括号所有内容",
"删除括号",
"转到括号(&&B)",
],
"vs/editor/contrib/caretOperations/browser/caretOperations": [
@ -670,6 +678,8 @@ define("vs/editor/editor.main.nls.zh-cn", {
"复制为",
"复制为",
"共享",
"共享",
"共享",
"粘贴(&&P)",
"粘贴",
"粘贴",
@ -680,10 +690,6 @@ define("vs/editor/editor.main.nls.zh-cn", {
"应用代码操作时发生未知错误",
],
"vs/editor/contrib/codeAction/browser/codeActionCommands": [
"没有适用于\"{0}\"的首选重构",
"没有可用的\"{0}\"重构",
"没有可用的首选重构",
"没有可用的重构操作",
"要运行的代码操作的种类。",
"控制何时应用返回的操作。",
"始终应用第一个返回的代码操作。",
@ -697,7 +703,10 @@ define("vs/editor/editor.main.nls.zh-cn", {
"没有可用的首选代码操作",
"没有可用的代码操作",
"重构...",
"使用预览重构...",
"没有适用于\"{0}\"的首选重构",
"没有可用的\"{0}\"重构",
"没有可用的首选重构",
"没有可用的重构操作",
"源代码操作...",
"没有适用于\"{0}\"的首选源操作",
"没有适用于“ {0}”的源操作",
@ -966,8 +975,17 @@ define("vs/editor/editor.main.nls.zh-cn", {
"{1} 的符号 {0}",
],
"vs/editor/contrib/hover/browser/hover": [
"显示悬停",
"显示或聚焦悬停",
"显示定义预览悬停",
"向上滚动悬停",
"向下滚动悬停",
"向左滚动悬停",
"向右滚动悬停",
"向上翻页悬停",
"向下翻页悬停",
"转到顶部悬停",
"转到底部悬停",
"转义聚焦悬停",
],
"vs/editor/contrib/hover/browser/markdownHoverParticipant": [
"正在加载...",
@ -1262,6 +1280,12 @@ define("vs/editor/editor.main.nls.zh-cn", {
"切换粘滞滚动(&&T)",
"粘滞滚动",
"粘滞滚动(&&S)",
"聚焦粘性滚动",
"聚焦粘性滚动(&&F)",
"选择下一个粘性滚动行",
"选择上一个粘性滚动行",
"转到聚焦的粘性滚动行",
"选择编辑器",
],
"vs/editor/contrib/suggest/browser/suggest": [
"是否以任何建议为中心",
@ -1362,6 +1386,7 @@ define("vs/editor/editor.main.nls.zh-cn", {
"本文档包含许多非基本 ASCII unicode 字符",
"本文档包含许多不明确的 unicode 字符",
"本文档包含许多不可见的 unicode 字符",
"字符 {0} 可能会与 ASCII 字符 {1} 混淆,后者在源代码中更为常见。",
"字符 {0} 可能会与字符 {1} 混淆,后者在源代码中更为常见。",
"字符 {0} 不可见。",
"字符 {0} 不是基本 ASCII 字符。",
@ -1412,6 +1437,7 @@ define("vs/editor/editor.main.nls.zh-cn", {
"查看",
"帮助",
"测试",
"文件",
"首选项",
"开发人员",
],
@ -1475,6 +1501,17 @@ define("vs/editor/editor.main.nls.zh-cn", {
"vs/platform/contextkey/browser/contextKeyService": [
"用于返回上下文键的相关信息的命令",
],
"vs/platform/contextkey/common/contextkey": [
"上下文键表达式为空",
"忘记写入表达式了吗? 还可以放置 \"false\" 或 \"true\" 以始终分别评估为 false 或 true。",
"\"not\" 后面的 \"in\"。",
"右括号 \")\"",
"意外的令牌",
"忘记在令牌之前放置 && 或 || 了吗?",
"意外的表达式结尾",
"忘记放置上下文键了吗?",
"应为: {0}\r\n收到的: \"{1}\"。",
],
"vs/platform/contextkey/common/contextkeys": [
"操作系统是否 macOS",
"操作系统是否为 Linux",
@ -1486,11 +1523,19 @@ define("vs/editor/editor.main.nls.zh-cn", {
"VS Code 的质量类型",
"键盘焦点是否在输入框中",
],
"vs/platform/contextkey/common/scanner": [
"你指的是 {0} 吗?",
"你指的是 {0} 还是 {1}?",
"你指的是 {0}、{1} 还是 {2}?",
"忘记左引号或右引号了吗?",
"忘记转义 \"/\"(斜杠)字符了吗? 在该字符前放置两个反斜杠以进行转义,例如 \"\\\\/\"。",
],
"vs/platform/history/browser/contextScopedHistoryWidget": [
"建议是否可见",
],
"vs/platform/keybinding/common/abstractKeybindingService": [
"({0})已按下。正在等待按下第二个键...",
"已按下({0})。正在等待第二个键...",
"组合键({0}{1})不是命令。",
],
"vs/platform/list/browser/listService": [
@ -1499,7 +1544,7 @@ define("vs/editor/editor.main.nls.zh-cn", {
"映射为 `Alt` (Windows 和 Linux) 或 `Option` (macOS)。",
"在通过鼠标多选树和列表条目时使用的修改键 (例如“资源管理器”、“打开的编辑器”和“源代码管理”视图)。“在侧边打开”功能所需的鼠标动作 (若可用) 将会相应调整,不与多选修改键冲突。",
"控制如何使用鼠标打开树和列表中的项(若支持)。请注意,如果此设置不适用,某些树和列表可能会选择忽略它。",
"控制列表和树是否支持工作台中的水平滚动。警告: 打开此设置影响会影响性能。",
"控制工作台上的列表和树是否支持水平滚动。警告: 打开此设置会影响性能。",
"控制在滚动条中单击时是否逐页单击。",
"控制树缩进(以像素为单位)。",
"控制树是否应呈现缩进参考线。",
@ -1651,6 +1696,7 @@ define("vs/editor/editor.main.nls.zh-cn", {
"限制搜索的范围的边框颜色。颜色必须透明,以免隐藏下面的修饰效果。",
"搜索编辑器查询匹配的颜色。",
"搜索编辑器查询匹配的边框颜色。",
"搜索 Viewlet 完成消息中文本的颜色。",
"在下面突出显示悬停的字词。颜色必须透明,以免隐藏下面的修饰效果。",
"编辑器悬停提示的背景颜色。",
"编辑器悬停的前景颜色。",

View file

@ -1,6 +1,6 @@
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.36.0-dev.20230224(f2d1d1d4a1d685a9bcf4bb5d6929080866f20c39)
* Version: 0.37.0-dev.20230403(4244bc3a06315f6c603b804a5a6fa7b9797f8060)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
*-----------------------------------------------------------*/
@ -158,7 +158,8 @@ define("vs/editor/editor.main.nls.zh-tw", {
"控制 semanticHighlighting 是否會為支援的語言顯示。",
"即使按兩下內容或按 `Escape`,仍保持瞄孔編輯器開啟。",
"因效能的緣故,不會將超過此高度的行 Token 化",
"Controls whether the tokenization should happen asynchronously on a web worker.",
"控制權杖化是否應該在 Web 工作者上非同步進行。",
"控制是否應該記錄非同步權杖化。僅適用偵錯。",
"定義增加或減少縮排的括弧符號。",
"左括弧字元或字串順序。",
"右括弧字元或字串順序。",
@ -231,6 +232,7 @@ define("vs/editor/editor.main.nls.zh-tw", {
"在編輯器中啟用程式碼動作燈泡。",
"在編輯器頂端捲動期間顯示巢狀的目前範圍。",
"定義要顯示的自黏線數目上限。",
"定義要用於判斷要黏住的線條的模型。如果大綱模型不存在,則會回到摺疊提供者模型,其會回到縮排模型。這三種情況中會遵守此順序。",
"啟用編輯器中的內嵌提示。",
"已啟用內嵌提示",
"預設會顯示內嵌提示,並在按住 {0} 時隱藏",
@ -292,6 +294,7 @@ define("vs/editor/editor.main.nls.zh-tw", {
"每當顯示內嵌建議時,顯示內嵌建議工具列。",
"每當游標停留在內嵌建議上方時,顯示內嵌建議工具列。",
"控制何時顯示內嵌建議工具列。",
"控制內嵌建議如何與建議小工具互動。如果啟用,有可用的內嵌建議時,不會自動顯示建議小工具。",
"控制是否啟用成對方括弧著色。使用 {0} 覆寫括弧亮顯顏色。",
"控制每個括弧類型是否有自己的獨立色彩集區。",
"啟用括弧配對輔助線。",
@ -368,6 +371,7 @@ define("vs/editor/editor.main.nls.zh-tw", {
"控制除了 \'Tab\' 外,是否也透過 \'Enter\' 接受建議。這有助於避免混淆要插入新行或接受建議。",
"控制編輯器中可一次由螢幕助讀程式讀出的行數。偵測到螢幕助讀程式時會自動預設為 500。警告: 若數字超過預設,可能會對效能有所影響。",
"編輯器內容",
"控制內嵌建議是否由螢幕閱讀程式宣告。請注意,在使用 VoiceOver 的 macOS 上無法進行此作業。",
"使用語言配置確定何時自動關閉括號。",
"僅當游標位於空白的左側時自動關閉括號。",
"控制編輯器是否應在使用者新增左括弧後,自動加上右括弧。",
@ -570,6 +574,9 @@ define("vs/editor/editor.main.nls.zh-tw", {
"編輯器是否有多個選取項目",
"\'Tab\' 是否會將焦點移出編輯器",
"編輯器暫留是否顯示",
"編輯器暫留是否聚焦",
"自黏捲動是否聚焦",
"自黏捲動是否顯示",
"編輯器是否為較大編輯器的一部分 (例如筆記本)",
"編輯器的語言識別碼",
"編輯器是否有完成項目提供者",
@ -649,6 +656,7 @@ define("vs/editor/editor.main.nls.zh-tw", {
"成對括弧的概觀尺規標記色彩。",
"移至方括弧",
"選取至括弧",
"移除括弧",
"前往括弧(&&B)",
],
"vs/editor/contrib/caretOperations/browser/caretOperations": [
@ -670,6 +678,8 @@ define("vs/editor/editor.main.nls.zh-tw", {
"複製為",
"複製為",
"共用",
"共用",
"共用",
"貼上(&&P)",
"貼上",
"貼上",
@ -680,10 +690,6 @@ define("vs/editor/editor.main.nls.zh-tw", {
"套用程式碼動作時發生未知的錯誤",
],
"vs/editor/contrib/codeAction/browser/codeActionCommands": [
"沒有適用於 \'{0}\' 的偏好重構。",
"沒有可用的 \"{0}\" 重構",
"沒有可用的偏好重構",
"沒有可用的重構",
"要執行程式碼動作的種類。",
"控制要套用傳回動作的時機。",
"一律套用第一個傳回的程式碼動作。",
@ -697,7 +703,10 @@ define("vs/editor/editor.main.nls.zh-tw", {
"沒有可用的偏好程式碼動作",
"沒有可用的程式碼操作",
"重構...",
"使用預覽重構...",
"沒有適用於 \'{0}\' 的偏好重構。",
"沒有可用的 \"{0}\" 重構",
"沒有可用的偏好重構",
"沒有可用的重構",
"來源動作...",
"沒有適用於 \'{0}\' 的偏好來源動作",
"沒有 \"{0}\" 可用的來源動作",
@ -966,8 +975,17 @@ define("vs/editor/editor.main.nls.zh-tw", {
"{1} 的符號 {0}",
],
"vs/editor/contrib/hover/browser/hover": [
"動態顯示",
"顯示或聚焦暫留",
"顯示定義預覽懸停",
"向上捲動暫留",
"向下捲動暫留",
"向左捲動暫留",
"向右捲動暫留",
"上一頁暫留",
"下一頁暫留",
"移至上方暫留",
"移至下方暫留",
"逸出聚焦暫留",
],
"vs/editor/contrib/hover/browser/markdownHoverParticipant": [
"正在載入...",
@ -1262,6 +1280,12 @@ define("vs/editor/editor.main.nls.zh-tw", {
"切換自黏捲動(&&T)",
"自黏捲動",
"自黏捲動(&&S)",
"聚焦自黏捲動",
"焦點自黏捲動(&&F)",
"選取下一個自黏捲動行",
"選取上一個自黏捲動行",
"移至聚焦的自黏捲動行",
"選取編輯器",
],
"vs/editor/contrib/suggest/browser/suggest": [
"是否聚焦任何建議",
@ -1362,6 +1386,7 @@ define("vs/editor/editor.main.nls.zh-tw", {
"此文件包含許多非基本 ASCII Unicode 字元",
"此文件包含許多不明確的 Unicode 字元",
"此文件包含許多隱藏的 Unicode 字元",
"字元 {0} 可能與 ASCII 字元 {1} 混淆,這在原始程式碼中比較常見。",
"字元 {0} 可能與字元 {1} 混淆,這在原始程式碼中比較常見。",
"字元 {0} 隱藏。",
"字元 {0} 不是基本的 ASCII 字元。",
@ -1412,6 +1437,7 @@ define("vs/editor/editor.main.nls.zh-tw", {
"檢視",
"說明",
"測試",
"檔案",
"喜好設定",
"開發人員",
],
@ -1475,6 +1501,17 @@ define("vs/editor/editor.main.nls.zh-tw", {
"vs/platform/contextkey/browser/contextKeyService": [
"傳回有關內容索引鍵資訊的命令",
],
"vs/platform/contextkey/common/contextkey": [
"空的內容索引鍵運算式",
"您是否忘記撰寫運算式? 您也可以分別放置 \'false\' 或 \'true\',以一律評估為 False 或 True。",
"\'not\' 後為 \'in\'。",
"右括弧 \')\'",
"未預期的權杖",
"您是否忘記在權杖之前放置 && 或 ||?",
"運算式未預期的結尾",
"您是否忘記放置內容金鑰?",
"預期: {0}\r\n收到: \'{1}\'。",
],
"vs/platform/contextkey/common/contextkeys": [
"作業系統是否為 macOS",
"作業系統是否為 Linux",
@ -1486,11 +1523,19 @@ define("vs/editor/editor.main.nls.zh-tw", {
"VS Code 的品質類型",
"鍵盤焦點是否位於輸入方塊內",
],
"vs/platform/contextkey/common/scanner": [
"您是指 \'{0}\'?",
"您是指 {0} 或 {1}?",
"您是指 {0}、{1} 或 {2}?",
"您是否忘記左括弧或右括弧?",
"您是否忘記逸出 \'/\' (斜線) 字元? 在反斜線前放兩個反斜線以逸出,例如 \'\\\\/\'。",
],
"vs/platform/history/browser/contextScopedHistoryWidget": [
"是否顯示建議",
],
"vs/platform/keybinding/common/abstractKeybindingService": [
"已按下 ({0})。等待第二個套索鍵...",
"({0}) 已按下。正在等待下一個套索鍵...",
"按鍵組合 ({0}, {1}) 不是命令。",
],
"vs/platform/list/browser/listService": [
@ -1651,6 +1696,7 @@ define("vs/editor/editor.main.nls.zh-tw", {
"限制搜尋之範圍的框線色彩。其不得為不透明色彩,以免隱藏底層裝飾。",
"搜尋編輯器查詢符合的色彩。",
"搜索編輯器查詢符合的邊框色彩。",
"搜尋 Viewlet 完成訊息中文字的色彩。",
"在顯示動態顯示的文字下醒目提示。其不得為不透明色彩,以免隱藏底層裝飾。",
"編輯器動態顯示的背景色彩。",
"編輯器動態顯示的前景色彩。",

File diff suppressed because it is too large Load diff

View file

@ -3,17 +3,16 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
var _a;
import { globals } from '../common/platform.js';
import { logOnceWebWorkerWarning } from '../common/worker/simpleWorker.js';
const ttPolicy = (_a = window.trustedTypes) === null || _a === void 0 ? void 0 : _a.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });
function getWorker(label) {
// Option for hosts to overwrite the worker script (used in the standalone editor)
if (globals.MonacoEnvironment) {
if (typeof globals.MonacoEnvironment.getWorker === 'function') {
return globals.MonacoEnvironment.getWorker('workerMain.js', label);
const monacoEnvironment = globalThis.MonacoEnvironment;
if (monacoEnvironment) {
if (typeof monacoEnvironment.getWorker === 'function') {
return monacoEnvironment.getWorker('workerMain.js', label);
}
if (typeof globals.MonacoEnvironment.getWorkerUrl === 'function') {
const workerUrl = globals.MonacoEnvironment.getWorkerUrl('workerMain.js', label);
if (typeof monacoEnvironment.getWorkerUrl === 'function') {
const workerUrl = monacoEnvironment.getWorkerUrl('workerMain.js', label);
return new Worker(ttPolicy ? ttPolicy.createScriptURL(workerUrl) : workerUrl, { name: label });
}
}
@ -29,12 +28,12 @@ function getWorker(label) {
}
// ESM-comment-begin
// export function getWorkerBootstrapUrl(scriptPath: string, label: string): string {
// if (/^((http:)|(https:)|(file:))/.test(scriptPath) && scriptPath.substring(0, self.origin.length) !== self.origin) {
// if (/^((http:)|(https:)|(file:))/.test(scriptPath) && scriptPath.substring(0, globalThis.origin.length) !== globalThis.origin) {
// // this is the cross-origin case
// // i.e. the webpage is running at a different origin than where the scripts are loaded from
// const myPath = 'vs/base/worker/defaultWorkerFactory.js';
// const workerBaseUrl = require.toUrl(myPath).slice(0, -myPath.length); // explicitly using require.toUrl(), see https://github.com/microsoft/vscode/issues/107440#issuecomment-698982321
// const js = `/*${label}*/self.MonacoEnvironment={baseUrl: '${workerBaseUrl}'};const ttPolicy = self.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });importScripts(ttPolicy?.createScriptURL('${scriptPath}') ?? '${scriptPath}');/*${label}*/`;
// const js = `/*${label}*/globalThis.MonacoEnvironment={baseUrl: '${workerBaseUrl}'};const ttPolicy = globalThis.trustedTypes?.createPolicy('defaultWorkerFactory', { createScriptURL: value => value });importScripts(ttPolicy?.createScriptURL('${scriptPath}') ?? '${scriptPath}');/*${label}*/`;
// const blob = new Blob([js], { type: 'application/javascript' });
// return URL.createObjectURL(blob);
// }

View file

@ -421,10 +421,11 @@ export function getActiveElement() {
}
return result;
}
export function createStyleSheet(container = document.getElementsByTagName('head')[0]) {
export function createStyleSheet(container = document.getElementsByTagName('head')[0], beforeAppend) {
const style = document.createElement('style');
style.type = 'text/css';
style.media = 'screen';
beforeAppend === null || beforeAppend === void 0 ? void 0 : beforeAppend(style);
container.appendChild(style);
return style;
}
@ -686,6 +687,14 @@ export function $(description, attrs, ...children) {
$.SVG = function (description, attrs, ...children) {
return _$(Namespace.SVG, description, attrs, ...children);
};
export function setVisibility(visible, ...elements) {
if (visible) {
show(...elements);
}
else {
hide(...elements);
}
}
export function show(...elements) {
for (const element of elements) {
element.style.display = '';

View file

@ -18,24 +18,19 @@ function extractKeyCode(e) {
return 7 /* KeyCode.PauseBreak */;
}
else if (browser.isFirefox) {
if (keyCode === 59) {
return 80 /* KeyCode.Semicolon */;
}
else if (keyCode === 107) {
return 81 /* KeyCode.Equal */;
}
else if (keyCode === 109) {
return 83 /* KeyCode.Minus */;
}
else if (platform.isMacintosh && keyCode === 224) {
return 57 /* KeyCode.Meta */;
switch (keyCode) {
case 59: return 80 /* KeyCode.Semicolon */;
// based on: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode#numpad_keys
case 107: return 104 /* KeyCode.NumpadAdd */;
case 109: return 106 /* KeyCode.NumpadSubtract */;
case 224:
if (platform.isMacintosh) {
return 57 /* KeyCode.Meta */;
}
}
}
else if (browser.isWebKit) {
if (keyCode === 91) {
return 57 /* KeyCode.Meta */;
}
else if (platform.isMacintosh && keyCode === 93) {
if (platform.isMacintosh && keyCode === 93) {
// the two meta keys in the Mac have different key codes (91 and 93)
return 57 /* KeyCode.Meta */;
}

View file

@ -71,7 +71,7 @@ const defaultMarkedRenderers = Object.freeze({
* which comes with support for pretty code block rendering and which uses the default way of handling links.
*/
export function renderMarkdown(markdown, options = {}, markedOptions = {}) {
var _a;
var _a, _b;
const disposables = new DisposableStore();
let isDisposed = false;
const element = createElement(options);
@ -129,7 +129,16 @@ export function renderMarkdown(markdown, options = {}, markedOptions = {}) {
renderer.paragraph = defaultMarkedRenderers.paragraph;
// Will collect [id, renderedElement] tuples
const codeBlocks = [];
if (options.codeBlockRenderer) {
const syncCodeBlocks = [];
if (options.codeBlockRendererSync) {
renderer.code = (code, lang) => {
const id = defaultGenerator.nextId();
const value = options.codeBlockRendererSync(postProcessCodeBlockLanguageId(lang), code);
syncCodeBlocks.push([id, value]);
return `<div class="code" data-code="${id}">${escape(code)}</div>`;
};
}
else if (options.codeBlockRenderer) {
renderer.code = (code, lang) => {
const id = defaultGenerator.nextId();
const value = options.codeBlockRenderer(postProcessCodeBlockLanguageId(lang), code);
@ -203,7 +212,17 @@ export function renderMarkdown(markdown, options = {}, markedOptions = {}) {
if (markdown.supportThemeIcons) {
value = markdownEscapeEscapedIcons(value);
}
let renderedMarkdown = marked.parse(value, markedOptions);
let renderedMarkdown;
if (options.fillInIncompleteTokens) {
// The defaults are applied by parse but not lexer()/parser(), and they need to be present
const opts = Object.assign(Object.assign({}, marked.defaults), markedOptions);
const tokens = marked.lexer(value, opts);
const newTokens = fillInIncompleteTokens(tokens);
renderedMarkdown = marked.parser(newTokens, opts);
}
else {
renderedMarkdown = marked.parse(value, markedOptions);
}
// Rewrite theme icons
if (markdown.supportThemeIcons) {
const elements = renderLabelWithIcons(renderedMarkdown);
@ -262,6 +281,16 @@ export function renderMarkdown(markdown, options = {}, markedOptions = {}) {
(_b = options.asyncRenderCallback) === null || _b === void 0 ? void 0 : _b.call(options);
});
}
else if (syncCodeBlocks.length > 0) {
const renderedElements = new Map(syncCodeBlocks);
const placeholderElements = element.querySelectorAll(`div[data-code]`);
for (const placeholderElement of placeholderElements) {
const renderedElement = renderedElements.get((_b = placeholderElement.dataset['code']) !== null && _b !== void 0 ? _b : '');
if (renderedElement) {
DOM.reset(placeholderElement, renderedElement);
}
}
}
// signal size changes for image tags
if (options.asyncRenderCallback) {
for (const img of element.getElementsByTagName('img')) {
@ -307,7 +336,7 @@ function sanitizeRenderedMarkdown(options, renderedMarkdown) {
if (e.attrName === 'style' || e.attrName === 'class') {
if (element.tagName === 'SPAN') {
if (e.attrName === 'style') {
e.keepAttr = /^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(e.attrValue);
e.keepAttr = /^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(e.attrValue);
return;
}
else if (e.attrName === 'class') {
@ -376,6 +405,26 @@ function getSanitizerOptions(options) {
allowedSchemes
};
}
/**
* Strips all markdown from `string`, if it's an IMarkdownString. For example
* `# Header` would be output as `Header`. If it's not, the string is returned.
*/
export function renderStringAsPlaintext(string) {
return typeof string === 'string' ? string : renderMarkdownAsPlaintext(string);
}
/**
* Strips all markdown from `markdown`. For example `# Header` would be output as `Header`.
*/
export function renderMarkdownAsPlaintext(markdown) {
var _a;
// values that are too long will freeze the UI
let value = (_a = markdown.value) !== null && _a !== void 0 ? _a : '';
if (value.length > 100000) {
value = `${value.substr(0, 100000)}`;
}
const html = marked.parse(value, { renderer: plainTextRenderer.value }).replace(/&(#\d+|[a-zA-Z]+);/g, m => { var _a; return (_a = unescapeInfo.get(m)) !== null && _a !== void 0 ? _a : m; });
return sanitizeRenderedMarkdown({ isTrusted: false }, html).toString();
}
const unescapeInfo = new Map([
['&quot;', '"'],
['&nbsp;', ' '],
@ -445,3 +494,76 @@ const plainTextRenderer = new Lazy(() => {
};
return renderer;
});
function mergeRawTokenText(tokens) {
let mergedTokenText = '';
tokens.forEach(token => {
mergedTokenText += token.raw;
});
return mergedTokenText;
}
export function fillInIncompleteTokens(tokens) {
let i;
let newTokens;
for (i = 0; i < tokens.length; i++) {
const token = tokens[i];
if (token.type === 'paragraph' && token.raw.match(/(\n|^)```/)) {
// If the code block was complete, it would be in a type='code'
newTokens = completeCodeBlock(tokens.slice(i));
break;
}
if (token.type === 'paragraph' && token.raw.match(/(\n|^)\|/)) {
newTokens = completeTable(tokens.slice(i));
break;
}
}
if (newTokens) {
const newTokensList = [
...tokens.slice(0, i),
...newTokens,
];
newTokensList.links = tokens.links;
return newTokensList;
}
return tokens;
}
function completeCodeBlock(tokens) {
const mergedRawText = mergeRawTokenText(tokens);
return marked.lexer(mergedRawText + '\n```');
}
function completeTable(tokens) {
const mergedRawText = mergeRawTokenText(tokens);
const lines = mergedRawText.split('\n');
let numCols; // The number of line1 col headers
let hasSeparatorRow = false;
for (let i = 0; i < lines.length; i++) {
const line = lines[i].trim();
if (typeof numCols === 'undefined' && line.match(/^\s*\|/)) {
const line1Matches = line.match(/(\|[^\|]+)(?=\||$)/g);
if (line1Matches) {
numCols = line1Matches.length;
}
}
else if (typeof numCols === 'number') {
if (line.match(/^\s*\|/)) {
if (i !== lines.length - 1) {
// We got the line1 header row, and the line2 separator row, but there are more lines, and it wasn't parsed as a table!
// That's strange and means that the table is probably malformed in the source, so I won't try to patch it up.
return tokens;
}
// Got a line2 separator row- partial or complete, doesn't matter, we'll replace it with a correct one
hasSeparatorRow = true;
}
else {
// The line after the header row isn't a valid separator row, so the table is malformed, don't fix it up
return tokens;
}
}
}
if (typeof numCols === 'number' && numCols > 0) {
const prefixText = hasSeparatorRow ? lines.slice(0, -1).join('\n') : mergedRawText;
const line1EndsInPipe = !!prefixText.match(/\|\s*$/);
const newRawText = prefixText + (line1EndsInPipe ? '' : '|') + `\n|${' --- |'.repeat(numCols)}`;
return marked.lexer(newRawText);
}
return tokens;
}

View file

@ -32,7 +32,7 @@ export class StandardMouseEvent {
this.posy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
}
// Find the position of the iframe this code is executing in relative to the iframe where the event was captured.
const iframeOffsets = IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(self, e.view);
const iframeOffsets = IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(window, e.view);
this.posx -= iframeOffsets.left;
this.posy -= iframeOffsets.top;
}

View file

@ -1,9 +1,12 @@
import { addDisposableListener, EventHelper, EventType, reset, trackFocus } from '../../dom.js';
import { sanitize } from '../../dompurify/dompurify.js';
import { StandardKeyboardEvent } from '../../keyboardEvent.js';
import { EventType as TouchEventType, Gesture } from '../../touch.js';
import { renderMarkdown, renderStringAsPlaintext } from '../../markdownRenderer.js';
import { Gesture, EventType as TouchEventType } from '../../touch.js';
import { renderLabelWithIcons } from '../iconLabel/iconLabels.js';
import { Color } from '../../../common/color.js';
import { Emitter } from '../../../common/event.js';
import { isMarkdownString, markdownStringEqual } from '../../../common/htmlContent.js';
import { Disposable } from '../../../common/lifecycle.js';
import './button.css';
export const unthemedButtonStyles = {
@ -20,6 +23,7 @@ export class Button extends Disposable {
get onDidClick() { return this._onDidClick.event; }
constructor(container, options) {
super();
this._label = '';
this._onDidClick = this._register(new Emitter());
this.options = options;
this._element = document.createElement('a');
@ -118,20 +122,47 @@ export class Button extends Disposable {
return this._element;
}
set label(value) {
var _a;
if (this._label === value) {
return;
}
if (isMarkdownString(this._label) && isMarkdownString(value) && markdownStringEqual(this._label, value)) {
return;
}
this._element.classList.add('monaco-text-button');
const labelElement = this.options.supportShortLabel ? this._labelElement : this._element;
if (this.options.supportIcons) {
reset(labelElement, ...this.getContentElements(value));
if (isMarkdownString(value)) {
const rendered = renderMarkdown(value, { inline: true });
rendered.dispose();
// Don't include outer `<p>`
const root = (_a = rendered.element.querySelector('p')) === null || _a === void 0 ? void 0 : _a.innerHTML;
if (root) {
// Only allow a very limited set of inline html tags
const sanitized = sanitize(root, { ADD_TAGS: ['b', 'i', 'u', 'code', 'span'], ALLOWED_ATTR: ['class'], RETURN_TRUSTED_TYPE: true });
labelElement.innerHTML = sanitized;
}
else {
reset(labelElement);
}
}
else {
labelElement.textContent = value;
if (this.options.supportIcons) {
reset(labelElement, ...this.getContentElements(value));
}
else {
labelElement.textContent = value;
}
}
if (typeof this.options.title === 'string') {
this._element.title = this.options.title;
}
else if (this.options.title) {
this._element.title = value;
this._element.title = renderStringAsPlaintext(value);
}
this._label = value;
}
get label() {
return this._label;
}
set enabled(value) {
if (value) {

View file

@ -120,7 +120,7 @@ export class FindInput extends Widget {
}
this.controls = document.createElement('div');
this.controls.className = 'controls';
this.controls.style.display = this.showCommonFindToggles ? 'block' : 'none';
this.controls.style.display = this.showCommonFindToggles ? '' : 'none';
if (this.caseSensitive) {
this.controls.append(this.caseSensitive.domNode);
}
@ -150,6 +150,10 @@ export class FindInput extends Widget {
get onDidChange() {
return this.inputBox.onDidChange;
}
layout(style) {
this.inputBox.layout();
this.updateInputBoxPadding(style.collapsedFindWidget);
}
enable() {
var _a, _b, _c;
this.domNode.classList.remove('disabled');
@ -184,7 +188,6 @@ export class FindInput extends Widget {
}
}
setAdditionalToggles(toggles) {
var _a, _b, _c, _d, _e, _f;
for (const currentToggle of this.additionalToggles) {
currentToggle.domNode.remove();
}
@ -203,11 +206,20 @@ export class FindInput extends Widget {
this.additionalToggles.push(toggle);
}
if (this.additionalToggles.length > 0) {
this.controls.style.display = 'block';
this.controls.style.display = '';
}
this.updateInputBoxPadding();
}
updateInputBoxPadding(controlsHidden = false) {
var _a, _b, _c, _d, _e, _f;
if (controlsHidden) {
this.inputBox.paddingRight = 0;
}
else {
this.inputBox.paddingRight =
(((_b = (_a = this.caseSensitive) === null || _a === void 0 ? void 0 : _a.width()) !== null && _b !== void 0 ? _b : 0) + ((_d = (_c = this.wholeWords) === null || _c === void 0 ? void 0 : _c.width()) !== null && _d !== void 0 ? _d : 0) + ((_f = (_e = this.regex) === null || _e === void 0 ? void 0 : _e.width()) !== null && _f !== void 0 ? _f : 0))
+ this.additionalToggles.reduce((r, t) => r + t.width(), 0);
}
this.inputBox.paddingRight =
(((_b = (_a = this.caseSensitive) === null || _a === void 0 ? void 0 : _a.width()) !== null && _b !== void 0 ? _b : 0) + ((_d = (_c = this.wholeWords) === null || _c === void 0 ? void 0 : _c.width()) !== null && _d !== void 0 ? _d : 0) + ((_f = (_e = this.regex) === null || _e === void 0 ? void 0 : _e.width()) !== null && _f !== void 0 ? _f : 0))
+ this.additionalToggles.reduce((r, t) => r + t.width(), 0);
}
getValue() {
return this.inputBox.value;

View file

@ -114,6 +114,11 @@
line-height: 22px;
}
.monaco-hover .hover-row.status-bar .info {
font-style: italic;
padding: 0px 8px;
}
.monaco-hover .hover-row.status-bar .actions {
display: flex;
padding: 0px 8px;

View file

@ -11,6 +11,7 @@ import { ScrollableElement } from '../scrollbar/scrollableElement.js';
import { Widget } from '../widget.js';
import { Emitter, Event } from '../../../common/event.js';
import { HistoryNavigator } from '../../../common/history.js';
import { equals } from '../../../common/objects.js';
import './inputBox.css';
import * as nls from '../../../../nls.js';
const $ = dom.$;
@ -198,6 +199,10 @@ export class InputBox extends Widget {
this.scrollableElement.setScrollPosition({ scrollTop });
}
showMessage(message, force) {
if (this.state === 'open' && equals(this.message, message)) {
// Already showing
return;
}
this.message = message;
this.element.classList.remove('idle');
this.element.classList.remove('info');

View file

@ -43,13 +43,13 @@ export class KeybindingLabel {
var _a;
this.clear();
if (this.keybinding) {
const [firstChord, secondChord] = this.keybinding.getChords(); // TODO@chords
if (firstChord) {
this.renderChord(this.domNode, firstChord, this.matches ? this.matches.firstPart : null);
const chords = this.keybinding.getChords();
if (chords[0]) {
this.renderChord(this.domNode, chords[0], this.matches ? this.matches.firstPart : null);
}
if (secondChord) {
for (let i = 1; i < chords.length; i++) {
dom.append(this.domNode, $('span.monaco-keybinding-key-chord-separator', undefined, ' '));
this.renderChord(this.domNode, secondChord, this.matches ? this.matches.chordPart : null);
this.renderChord(this.domNode, chords[i], this.matches ? this.matches.chordPart : null);
}
const title = ((_a = this.options.disableTitle) !== null && _a !== void 0 ? _a : false) ? undefined : this.keybinding.getAriaLabel() || undefined;
if (title !== undefined) {

View file

@ -107,10 +107,13 @@
position: absolute;
width: 100%;
height: 100%;
transition: background-color 0.1s ease-out;
background: transparent;
}
.monaco-workbench:not(.reduce-motion) .monaco-sash:before {
transition: background-color 0.1s ease-out;
}
.monaco-sash.hover:before,
.monaco-sash.active:before {
background: var(--vscode-sash-hoverBorder);

View file

@ -54,7 +54,7 @@
position: absolute;
top: 0;
left: 0;
z-index: 20;
z-index: 5;
pointer-events: none;
background-color: var(--separator-border);
}

View file

@ -772,10 +772,12 @@ export class SplitView extends Disposable {
return undefined;
}
dispose() {
super.dispose();
var _a;
(_a = this.sashDragState) === null || _a === void 0 ? void 0 : _a.disposable.dispose();
dispose(this.viewItems);
this.viewItems = [];
this.sashItems.forEach(i => i.disposable.dispose());
this.sashItems = [];
super.dispose();
}
}

View file

@ -32,7 +32,7 @@
border-left: 1px solid transparent;
}
.monaco-tl-indent > .indent-guide {
.monaco-workbench:not(.reduce-motion) .monaco-tl-indent > .indent-guide {
transition: border-color 0.1s linear;
}
@ -76,10 +76,16 @@
top: 0;
display: flex;
padding: 3px;
transition: top 0.3s;
max-width: 200px;
z-index: 100;
margin: 0 6px;
border: 1px solid var(--vscode-widget-border);
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter {
transition: top 0.3s;
}
.monaco-tree-type-filter.disabled {

View file

@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { IndexTreeModel } from './indexTreeModel.js';
import { TreeError } from './tree.js';
import { ObjectTreeElementCollapseState, TreeError } from './tree.js';
import { Iterable } from '../../../common/iterator.js';
export class ObjectTreeModel {
constructor(user, list, options = {}) {
@ -76,10 +76,35 @@ export class ObjectTreeModel {
node = this.nodesByIdentity.get(id);
}
if (!node) {
return Object.assign(Object.assign({}, treeElement), { children: this.preserveCollapseState(treeElement.children) });
let collapsed;
if (typeof treeElement.collapsed === 'undefined') {
collapsed = undefined;
}
else if (treeElement.collapsed === ObjectTreeElementCollapseState.Collapsed || treeElement.collapsed === ObjectTreeElementCollapseState.PreserveOrCollapsed) {
collapsed = true;
}
else if (treeElement.collapsed === ObjectTreeElementCollapseState.Expanded || treeElement.collapsed === ObjectTreeElementCollapseState.PreserveOrExpanded) {
collapsed = false;
}
else {
collapsed = Boolean(treeElement.collapsed);
}
return Object.assign(Object.assign({}, treeElement), { children: this.preserveCollapseState(treeElement.children), collapsed });
}
const collapsible = typeof treeElement.collapsible === 'boolean' ? treeElement.collapsible : node.collapsible;
const collapsed = typeof treeElement.collapsed !== 'undefined' ? treeElement.collapsed : node.collapsed;
let collapsed;
if (typeof treeElement.collapsed === 'undefined' || treeElement.collapsed === ObjectTreeElementCollapseState.PreserveOrCollapsed || treeElement.collapsed === ObjectTreeElementCollapseState.PreserveOrExpanded) {
collapsed = node.collapsed;
}
else if (treeElement.collapsed === ObjectTreeElementCollapseState.Collapsed) {
collapsed = true;
}
else if (treeElement.collapsed === ObjectTreeElementCollapseState.Expanded) {
collapsed = false;
}
else {
collapsed = Boolean(treeElement.collapsed);
}
return Object.assign(Object.assign({}, treeElement), { collapsible,
collapsed, children: this.preserveCollapseState(treeElement.children) });
});

View file

@ -2,6 +2,19 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export var ObjectTreeElementCollapseState;
(function (ObjectTreeElementCollapseState) {
ObjectTreeElementCollapseState[ObjectTreeElementCollapseState["Expanded"] = 0] = "Expanded";
ObjectTreeElementCollapseState[ObjectTreeElementCollapseState["Collapsed"] = 1] = "Collapsed";
/**
* If the element is already in the tree, preserve its current state. Else, expand it.
*/
ObjectTreeElementCollapseState[ObjectTreeElementCollapseState["PreserveOrExpanded"] = 2] = "PreserveOrExpanded";
/**
* If the element is already in the tree, preserve its current state. Else, collapse it.
*/
ObjectTreeElementCollapseState[ObjectTreeElementCollapseState["PreserveOrCollapsed"] = 3] = "PreserveOrCollapsed";
})(ObjectTreeElementCollapseState || (ObjectTreeElementCollapseState = {}));
export var TreeMouseEventTarget;
(function (TreeMouseEventTarget) {
TreeMouseEventTarget[TreeMouseEventTarget["Unknown"] = 0] = "Unknown";

View file

@ -543,6 +543,9 @@ export const Codicon = {
gitPullRequestNewChanges: register('git-pull-request-new-changes', 0xec0c),
searchFuzzy: register('search-fuzzy', 0xec0d),
commentDraft: register('comment-draft', 0xec0e),
send: register('send', 0xec0f),
sparkle: register('sparkle', 0xec10),
insert: register('insert', 0xec11),
// derived icons, that could become separate icons
dialogError: register('dialog-error', 'error'),
dialogWarning: register('dialog-warning', 'warning'),

View file

@ -96,9 +96,15 @@ export var Event;
}
Event.map = map;
/**
* Wraps an event in another event that performs some function on the event object before firing.
*
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
* returned event causes this utility to leak a listener on the original event.
*
* @param event The event source for the new event.
* @param each The function to perform on the event object.
* @param disposable A disposable store to add the new EventEmitter to.
*/
function forEach(event, each, disposable) {
return snapshot((listener, thisArgs = null, disposables) => event(i => { each(i); listener.call(thisArgs, i); }, null, disposables), disposable);
@ -222,9 +228,22 @@ export var Event;
}
Event.accumulate = accumulate;
/**
* Filters an event such that some condition is _not_ met more than once in a row, effectively ensuring duplicate
* event objects from different sources do not fire the same event object.
*
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
* returned event causes this utility to leak a listener on the original event.
*
* @param event The event source for the new event.
* @param equals The equality condition.
* @param disposable A disposable store to add the new EventEmitter to.
*
* @example
* ```
* // Fire only one time when a single window is opened or focused
* Event.latch(Event.any(onDidOpenWindow, onDidFocusWindow))
* ```
*/
function latch(event, equals = (a, b) => a === b, disposable) {
let firstCall = true;
@ -262,9 +281,24 @@ export var Event;
}
Event.split = split;
/**
* Buffers an event until it has a listener attached.
*
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
* returned event causes this utility to leak a listener on the original event.
*
* @param event The event source for the new event.
* @param flushAfterTimeout Determines whether to flush the buffer after a timeout immediately or after a
* `setTimeout` when the first event listener is added.
* @param _buffer Internal: A source event array used for tests.
*
* @example
* ```
* // Start accumulating events, when the first listener is attached, flush
* // the event after a timeout such that multiple listeners attached before
* // the timeout would receive the event
* this.onInstallExtension = Event.buffer(service.onInstallExtension, true);
* ```
*/
function buffer(event, flushAfterTimeout = false, _buffer = []) {
let buffer = _buffer.slice();
@ -311,27 +345,35 @@ export var Event;
this.event = event;
this.disposables = new DisposableStore();
}
/** @see {@link Event.map} */
map(fn) {
return new ChainableEvent(map(this.event, fn, this.disposables));
}
/** @see {@link Event.forEach} */
forEach(fn) {
return new ChainableEvent(forEach(this.event, fn, this.disposables));
}
filter(fn) {
return new ChainableEvent(filter(this.event, fn, this.disposables));
}
/** @see {@link Event.reduce} */
reduce(merge, initial) {
return new ChainableEvent(reduce(this.event, merge, initial, this.disposables));
}
/** @see {@link Event.reduce} */
latch() {
return new ChainableEvent(latch(this.event, undefined, this.disposables));
}
debounce(merge, delay = 100, leading = false, flushOnListenerRemove = false, leakWarningThreshold) {
return new ChainableEvent(debounce(this.event, merge, delay, leading, flushOnListenerRemove, leakWarningThreshold, this.disposables));
}
/**
* Attach a listener to the event.
*/
on(listener, thisArgs, disposables) {
return this.event(listener, thisArgs, disposables);
}
/** @see {@link Event.once} */
once(listener, thisArgs, disposables) {
return once(this.event)(listener, thisArgs, disposables);
}
@ -339,10 +381,31 @@ export var Event;
this.disposables.dispose();
}
}
/**
* Wraps the event in an {@link IChainableEvent}, allowing a more functional programming style.
*
* @example
* ```
* // Normal
* const onEnterPressNormal = Event.filter(
* Event.map(onKeyPress.event, e => new StandardKeyboardEvent(e)),
* e.keyCode === KeyCode.Enter
* ).event;
*
* // Using chain
* const onEnterPressChain = Event.chain(onKeyPress.event)
* .map(e => new StandardKeyboardEvent(e))
* .filter(e => e.keyCode === KeyCode.Enter)
* .event;
* ```
*/
function chain(event) {
return new ChainableEvent(event);
}
Event.chain = chain;
/**
* Creates an {@link Event} from a node event emitter.
*/
function fromNodeEventEmitter(emitter, eventName, map = id => id) {
const fn = (...args) => result.fire(map(...args));
const onFirstListenerAdd = () => emitter.on(eventName, fn);
@ -351,6 +414,9 @@ export var Event;
return result.event;
}
Event.fromNodeEventEmitter = fromNodeEventEmitter;
/**
* Creates an {@link Event} from a DOM event emitter.
*/
function fromDOMEventEmitter(emitter, eventName, map = id => id) {
const fn = (...args) => result.fire(map(...args));
const onFirstListenerAdd = () => emitter.addEventListener(eventName, fn);
@ -359,15 +425,31 @@ export var Event;
return result.event;
}
Event.fromDOMEventEmitter = fromDOMEventEmitter;
/**
* Creates a promise out of an event, using the {@link Event.once} helper.
*/
function toPromise(event) {
return new Promise(resolve => once(event)(resolve));
}
Event.toPromise = toPromise;
/**
* Adds a listener to an event and calls the listener immediately with undefined as the event object.
*
* @example
* ```
* // Initialize the UI and update it when dataChangeEvent fires
* runAndSubscribe(dataChangeEvent, () => this._updateUI());
* ```
*/
function runAndSubscribe(event, handler) {
handler(undefined);
return event(e => handler(e));
}
Event.runAndSubscribe = runAndSubscribe;
/**
* Adds a listener to an event and calls the listener immediately with undefined as the event object. A new
* {@link DisposableStore} is passed to the listener which is disposed when the returned disposable is disposed.
*/
function runAndSubscribeWithStore(event, handler) {
let store = null;
function run(e) {
@ -649,21 +731,21 @@ export class Emitter {
* subscribers
*/
fire(event) {
var _a, _b;
var _a, _b, _c;
if (this._listeners) {
// put all [listener,event]-pairs into delivery queue
// then emit all event. an inner/nested event might be
// the driver of this
if (!this._deliveryQueue) {
this._deliveryQueue = new PrivateEventDeliveryQueue();
this._deliveryQueue = new PrivateEventDeliveryQueue((_a = this._options) === null || _a === void 0 ? void 0 : _a.onListenerError);
}
for (const listener of this._listeners) {
this._deliveryQueue.push(this, listener, event);
}
// start/stop performance insight collection
(_a = this._perfMon) === null || _a === void 0 ? void 0 : _a.start(this._deliveryQueue.size);
(_b = this._perfMon) === null || _b === void 0 ? void 0 : _b.start(this._deliveryQueue.size);
this._deliveryQueue.deliver();
(_b = this._perfMon) === null || _b === void 0 ? void 0 : _b.stop();
(_c = this._perfMon) === null || _c === void 0 ? void 0 : _c.stop();
}
}
hasListeners() {
@ -674,7 +756,8 @@ export class Emitter {
}
}
export class EventDeliveryQueue {
constructor() {
constructor(_onListenerError = onUnexpectedError) {
this._onListenerError = _onListenerError;
this._queue = new LinkedList();
}
get size() {
@ -699,7 +782,7 @@ export class EventDeliveryQueue {
element.listener.invoke(element.event);
}
catch (e) {
onUnexpectedError(e);
this._onListenerError(e);
}
}
}

View file

@ -4,7 +4,9 @@
*--------------------------------------------------------------------------------------------*/
import { illegalArgument } from './errors.js';
import { escapeIcons } from './iconLabels.js';
import { isEqual } from './resources.js';
import { escapeRegExpCharacters } from './strings.js';
import { URI } from './uri.js';
export class MarkdownString {
constructor(value = '', isTrustedOrOptions = false) {
var _a, _b, _c;
@ -87,6 +89,21 @@ export function isMarkdownString(thing) {
}
return false;
}
export function markdownStringEqual(a, b) {
if (a === b) {
return true;
}
else if (!a || !b) {
return false;
}
else {
return a.value === b.value
&& a.isTrusted === b.isTrusted
&& a.supportThemeIcons === b.supportThemeIcons
&& a.supportHtml === b.supportHtml
&& (a.baseUri === b.baseUri || !!a.baseUri && !!b.baseUri && isEqual(URI.from(a.baseUri), URI.from(b.baseUri)));
}
}
export function escapeMarkdownSyntaxTokens(text) {
// escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash
return text.replace(/[\\`*_{}[\]()#+\-!~]/g, '\\$&');

View file

@ -206,7 +206,7 @@ for (let i = 0; i <= 127 /* KeyCode.MAX_VALUE */; i++) {
[5, 1, 0 /* ScanCode.None */, empty, 5 /* KeyCode.Ctrl */, 'Ctrl', 17, 'VK_CONTROL', empty, empty],
[4, 1, 0 /* ScanCode.None */, empty, 4 /* KeyCode.Shift */, 'Shift', 16, 'VK_SHIFT', empty, empty],
[6, 1, 0 /* ScanCode.None */, empty, 6 /* KeyCode.Alt */, 'Alt', 18, 'VK_MENU', empty, empty],
[57, 1, 0 /* ScanCode.None */, empty, 57 /* KeyCode.Meta */, 'Meta', 0, 'VK_COMMAND', empty, empty],
[57, 1, 0 /* ScanCode.None */, empty, 57 /* KeyCode.Meta */, 'Meta', 91, 'VK_COMMAND', empty, empty],
[5, 1, 157 /* ScanCode.ControlLeft */, 'ControlLeft', 5 /* KeyCode.Ctrl */, empty, 0, 'VK_LCONTROL', empty, empty],
[4, 1, 158 /* ScanCode.ShiftLeft */, 'ShiftLeft', 4 /* KeyCode.Shift */, empty, 0, 'VK_LSHIFT', empty, empty],
[6, 1, 159 /* ScanCode.AltLeft */, 'AltLeft', 6 /* KeyCode.Alt */, empty, 0, 'VK_LMENU', empty, empty],

View file

@ -4,18 +4,27 @@
*--------------------------------------------------------------------------------------------*/
import { illegalArgument } from './errors.js';
export function decodeKeybinding(keybinding, OS) {
if (keybinding === 0) {
return null;
if (typeof keybinding === 'number') {
if (keybinding === 0) {
return null;
}
const firstChord = (keybinding & 0x0000FFFF) >>> 0;
const secondChord = (keybinding & 0xFFFF0000) >>> 16;
if (secondChord !== 0) {
return new Keybinding([
createSimpleKeybinding(firstChord, OS),
createSimpleKeybinding(secondChord, OS)
]);
}
return new Keybinding([createSimpleKeybinding(firstChord, OS)]);
}
const firstChord = (keybinding & 0x0000FFFF) >>> 0;
const secondChord = (keybinding & 0xFFFF0000) >>> 16;
if (secondChord !== 0) {
return new Keybinding([
createSimpleKeybinding(firstChord, OS),
createSimpleKeybinding(secondChord, OS)
]);
else {
const chords = [];
for (let i = 0; i < keybinding.length; i++) {
chords.push(createSimpleKeybinding(keybinding[i], OS));
}
return new Keybinding(chords);
}
return new Keybinding([createSimpleKeybinding(firstChord, OS)]);
}
export function createSimpleKeybinding(keybinding, OS) {
const ctrlCmd = (keybinding & 2048 /* BinaryKeybindingsMask.CtrlCmd */ ? true : false);

View file

@ -19,8 +19,8 @@ let __marked_exports = {};
// ESM-uncomment-end
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.marked = {}));
})(this, (function (exports) { 'use strict';

View file

@ -17,6 +17,7 @@ let _isCI = false;
let _isMobile = false;
let _locale = undefined;
let _language = LANGUAGE_DEFAULT;
let _platformLocale = LANGUAGE_DEFAULT;
let _translationsConfigFile = undefined;
let _userAgent = undefined;
/**
@ -51,6 +52,7 @@ if (typeof navigator === 'object' && !isElectronRenderer) {
nls.localize({ key: 'ensureLoaderPluginIsLoaded', comment: ['{Locked}'] }, '_'));
_locale = configuredLocale || LANGUAGE_DEFAULT;
_language = _locale;
_platformLocale = navigator.language;
}
// Native environment
else if (typeof nodeProcess === 'object') {
@ -68,6 +70,7 @@ else if (typeof nodeProcess === 'object') {
const nlsConfig = JSON.parse(rawNlsConfig);
const resolved = nlsConfig.availableLanguages['*'];
_locale = nlsConfig.locale;
_platformLocale = nlsConfig.osLocale;
// VSCode's default language is 'en'
_language = resolved ? resolved : LANGUAGE_DEFAULT;
_translationsConfigFile = nlsConfig._translationsConfigFile;
@ -101,8 +104,8 @@ export const isIOS = _isIOS;
export const isMobile = _isMobile;
export const userAgent = _userAgent;
/**
* The language used for the user interface. or the locale specified by --locale
* The format of the string is all lower case (e.g. zh-tw for Traditional
* The language used for the user interface. The format of
* the string is all lower case (e.g. zh-tw for Traditional
* Chinese)
*/
export const language = _language;

File diff suppressed because one or more lines are too long

View file

@ -6,7 +6,7 @@ import { transformErrorForSerialization } from '../errors.js';
import { Emitter } from '../event.js';
import { Disposable } from '../lifecycle.js';
import { getAllMethodNames } from '../objects.js';
import { globals, isWeb } from '../platform.js';
import { isWeb } from '../platform.js';
import * as strings from '../strings.js';
const INITIALIZE = '$initialize';
let webWorkerWarningLogged = false;
@ -246,13 +246,14 @@ export class SimpleWorkerClient extends Disposable {
this._protocol.setWorkerId(this._worker.getId());
// Gather loader configuration
let loaderConfiguration = null;
if (typeof globals.require !== 'undefined' && typeof globals.require.getConfig === 'function') {
const globalRequire = globalThis.require;
if (typeof globalRequire !== 'undefined' && typeof globalRequire.getConfig === 'function') {
// Get the configuration from the Monaco AMD Loader
loaderConfiguration = globals.require.getConfig();
loaderConfiguration = globalRequire.getConfig();
}
else if (typeof globals.requirejs !== 'undefined') {
else if (typeof globalThis.requirejs !== 'undefined') {
// Get the configuration from requirejs
loaderConfiguration = globals.requirejs.s.contexts._.config;
loaderConfiguration = globalThis.requirejs.s.contexts._.config;
}
const hostMethods = getAllMethodNames(host);
// Send initialize message
@ -410,15 +411,15 @@ export class SimpleWorkerServer {
}
// Since this is in a web worker, enable catching errors
loaderConfig.catchError = true;
globals.require.config(loaderConfig);
globalThis.require.config(loaderConfig);
}
return new Promise((resolve, reject) => {
// Use the global require to be sure to get the global config
// ESM-comment-begin
// const req = (globals.require || require);
// const req = (globalThis.require || require);
// ESM-comment-end
// ESM-uncomment-begin
const req = globals.require;
const req = globalThis.require;
// ESM-uncomment-end
req([moduleId], (module) => {
this._requestHandler = module.create(hostProxy);

View file

@ -43,7 +43,7 @@ let EditorConfiguration = class EditorConfiguration extends Disposable {
this._rawOptions = deepCloneAndMigrateOptions(options);
this._validatedOptions = EditorOptionsUtil.validateOptions(this._rawOptions);
this.options = this._computeOptions();
if (this.options.get(10 /* EditorOption.automaticLayout */)) {
if (this.options.get(11 /* EditorOption.automaticLayout */)) {
this._containerObserver.startObserving();
}
this._register(EditorZoom.onDidChangeZoomLevel(() => this._recomputeOptions()));

View file

@ -23,7 +23,7 @@ export class MouseHandler extends ViewEventHandler {
this.mouseTargetFactory = new MouseTargetFactory(this._context, viewHelper);
this._mouseDownOperation = this._register(new MouseDownOperation(this._context, this.viewController, this.viewHelper, this.mouseTargetFactory, (e, testEventTarget) => this._createMouseTarget(e, testEventTarget), (e) => this._getMouseColumn(e)));
this.lastMouseLeaveTime = -1;
this._height = this._context.configuration.options.get(138 /* EditorOption.layoutInfo */).height;
this._height = this._context.configuration.options.get(139 /* EditorOption.layoutInfo */).height;
const mouseEvents = new EditorMouseEventFactory(this.viewHelper.viewDomNode);
this._register(mouseEvents.onContextMenu(this.viewHelper.viewDomNode, (e) => this._onContextMenu(e, true)));
this._register(mouseEvents.onMouseMove(this.viewHelper.viewDomNode, (e) => {
@ -73,7 +73,7 @@ export class MouseHandler extends ViewEventHandler {
let gestureAccumulatedDelta = 0;
const onMouseWheel = (browserEvent) => {
this.viewController.emitMouseWheel(browserEvent);
if (!this._context.configuration.options.get(72 /* EditorOption.mouseWheelZoom */)) {
if (!this._context.configuration.options.get(73 /* EditorOption.mouseWheelZoom */)) {
return;
}
const e = new StandardWheelEvent(browserEvent);
@ -125,9 +125,9 @@ export class MouseHandler extends ViewEventHandler {
}
// --- begin event handlers
onConfigurationChanged(e) {
if (e.hasChanged(138 /* EditorOption.layoutInfo */)) {
if (e.hasChanged(139 /* EditorOption.layoutInfo */)) {
// layout change
const height = this._context.configuration.options.get(138 /* EditorOption.layoutInfo */).height;
const height = this._context.configuration.options.get(139 /* EditorOption.layoutInfo */).height;
if (this._height !== height) {
this._height = height;
this._mouseDownOperation.onHeightChanged();
@ -213,7 +213,7 @@ export class MouseHandler extends ViewEventHandler {
const targetIsContent = (t.type === 6 /* MouseTargetType.CONTENT_TEXT */ || t.type === 7 /* MouseTargetType.CONTENT_EMPTY */);
const targetIsGutter = (t.type === 2 /* MouseTargetType.GUTTER_GLYPH_MARGIN */ || t.type === 3 /* MouseTargetType.GUTTER_LINE_NUMBERS */ || t.type === 4 /* MouseTargetType.GUTTER_LINE_DECORATIONS */);
const targetIsLineNumbers = (t.type === 3 /* MouseTargetType.GUTTER_LINE_NUMBERS */);
const selectOnLineNumbers = this._context.configuration.options.get(103 /* EditorOption.selectOnLineNumbers */);
const selectOnLineNumbers = this._context.configuration.options.get(104 /* EditorOption.selectOnLineNumbers */);
const targetIsViewZone = (t.type === 8 /* MouseTargetType.CONTENT_VIEW_ZONE */ || t.type === 5 /* MouseTargetType.GUTTER_VIEW_ZONE */);
const targetIsWidget = (t.type === 9 /* MouseTargetType.CONTENT_WIDGET */);
let shouldHandle = e.leftButton || e.middleButton;
@ -310,9 +310,9 @@ class MouseDownOperation extends Disposable {
// Overwrite the detail of the MouseEvent, as it will be sent out in an event and contributions might rely on it.
e.detail = this._mouseState.count;
const options = this._context.configuration.options;
if (!options.get(86 /* EditorOption.readOnly */)
&& options.get(32 /* EditorOption.dragAndDrop */)
&& !options.get(19 /* EditorOption.columnSelection */)
if (!options.get(87 /* EditorOption.readOnly */)
&& options.get(33 /* EditorOption.dragAndDrop */)
&& !options.get(20 /* EditorOption.columnSelection */)
&& !this._mouseState.altKey // we don't support multiple mouse
&& e.detail < 2 // only single click on a selection can work
&& !this._isActive // the mouse is not down yet
@ -514,8 +514,8 @@ class TopBottomDragScrollingOperation extends Disposable {
* get the number of lines per second to auto-scroll
*/
_getScrollSpeed() {
const lineHeight = this._context.configuration.options.get(63 /* EditorOption.lineHeight */);
const viewportInLines = this._context.configuration.options.get(138 /* EditorOption.layoutInfo */).height / lineHeight;
const lineHeight = this._context.configuration.options.get(64 /* EditorOption.lineHeight */);
const viewportInLines = this._context.configuration.options.get(139 /* EditorOption.layoutInfo */).height / lineHeight;
const outsideDistanceInLines = this._position.outsideDistance / lineHeight;
if (outsideDistanceInLines <= 1.5) {
return Math.max(30, viewportInLines * (1 + outsideDistanceInLines));
@ -526,7 +526,7 @@ class TopBottomDragScrollingOperation extends Disposable {
return Math.max(200, viewportInLines * (7 + outsideDistanceInLines));
}
_execute() {
const lineHeight = this._context.configuration.options.get(63 /* EditorOption.lineHeight */);
const lineHeight = this._context.configuration.options.get(64 /* EditorOption.lineHeight */);
const scrollSpeedInLines = this._getScrollSpeed();
const elapsed = this._tick();
const scrollInPixels = scrollSpeedInLines * (elapsed / 1000) * lineHeight;
@ -539,7 +539,7 @@ class TopBottomDragScrollingOperation extends Disposable {
let mouseTarget;
{
const editorPos = createEditorPagePosition(this._viewHelper.viewDomNode);
const horizontalScrollbarHeight = this._context.configuration.options.get(138 /* EditorOption.layoutInfo */).horizontalScrollbarHeight;
const horizontalScrollbarHeight = this._context.configuration.options.get(139 /* EditorOption.layoutInfo */).horizontalScrollbarHeight;
const pos = new PageCoordinates(this._mouseEvent.pos.x, editorPos.y + editorPos.height - horizontalScrollbarHeight - 0.1);
const relativePos = createCoordinatesRelativeToEditor(this._viewHelper.viewDomNode, editorPos, pos);
mouseTarget = this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(), editorPos, pos, relativePos, null);

View file

@ -166,11 +166,11 @@ export class HitTestContext {
constructor(context, viewHelper, lastRenderData) {
this.viewModel = context.viewModel;
const options = context.configuration.options;
this.layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
this.layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this.viewDomNode = viewHelper.viewDomNode;
this.lineHeight = options.get(63 /* EditorOption.lineHeight */);
this.stickyTabStops = options.get(110 /* EditorOption.stickyTabStops */);
this.typicalHalfwidthCharacterWidth = options.get(47 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
this.lineHeight = options.get(64 /* EditorOption.lineHeight */);
this.stickyTabStops = options.get(111 /* EditorOption.stickyTabStops */);
this.typicalHalfwidthCharacterWidth = options.get(48 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
this.lastRenderData = lastRenderData;
this._context = context;
this._viewHelper = viewHelper;
@ -602,9 +602,9 @@ export class MouseTargetFactory {
}
getMouseColumn(relativePos) {
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
const mouseContentHorizontalOffset = this._context.viewLayout.getCurrentScrollLeft() + relativePos.x - layoutInfo.contentLeft;
return MouseTargetFactory._getMouseColumn(mouseContentHorizontalOffset, options.get(47 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth);
return MouseTargetFactory._getMouseColumn(mouseContentHorizontalOffset, options.get(48 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth);
}
static _getMouseColumn(mouseContentHorizontalOffset, typicalHalfwidthCharacterWidth) {
if (mouseContentHorizontalOffset < 0) {
@ -821,8 +821,14 @@ function shadowCaretRangeFromPoint(shadowRoot, x, y) {
}
// Grab its rect
const rect = el.getBoundingClientRect();
// And its font
const font = window.getComputedStyle(el, null).getPropertyValue('font');
// And its font (the computed shorthand font property might be empty, see #3217)
const fontStyle = window.getComputedStyle(el, null).getPropertyValue('font-style');
const fontVariant = window.getComputedStyle(el, null).getPropertyValue('font-variant');
const fontWeight = window.getComputedStyle(el, null).getPropertyValue('font-weight');
const fontSize = window.getComputedStyle(el, null).getPropertyValue('font-size');
const lineHeight = window.getComputedStyle(el, null).getPropertyValue('line-height');
const fontFamily = window.getComputedStyle(el, null).getPropertyValue('font-family');
const font = `${fontStyle} ${fontVariant} ${fontWeight} ${fontSize}/${lineHeight} ${fontFamily}`;
// And also its txt content
const text = el.innerText;
// Position the pixel cursor at the left of the element

View file

@ -88,15 +88,15 @@ export class TextAreaHandler extends ViewPart {
this._scrollLeft = 0;
this._scrollTop = 0;
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._setAccessibilityOptions(options);
this._contentLeft = layoutInfo.contentLeft;
this._contentWidth = layoutInfo.contentWidth;
this._contentHeight = layoutInfo.height;
this._fontInfo = options.get(47 /* EditorOption.fontInfo */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
this._emptySelectionClipboard = options.get(34 /* EditorOption.emptySelectionClipboard */);
this._copyWithSyntaxHighlighting = options.get(22 /* EditorOption.copyWithSyntaxHighlighting */);
this._fontInfo = options.get(48 /* EditorOption.fontInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._emptySelectionClipboard = options.get(35 /* EditorOption.emptySelectionClipboard */);
this._copyWithSyntaxHighlighting = options.get(23 /* EditorOption.copyWithSyntaxHighlighting */);
this._visibleTextArea = null;
this._selections = [new Selection(1, 1, 1, 1)];
this._modelSelections = [new Selection(1, 1, 1, 1)];
@ -113,7 +113,7 @@ export class TextAreaHandler extends ViewPart {
this.textArea.setAttribute('autocomplete', 'off');
this.textArea.setAttribute('spellcheck', 'false');
this.textArea.setAttribute('aria-label', this._getAriaLabel(options));
this.textArea.setAttribute('tabindex', String(options.get(118 /* EditorOption.tabIndex */)));
this.textArea.setAttribute('tabindex', String(options.get(119 /* EditorOption.tabIndex */)));
this.textArea.setAttribute('role', 'textbox');
this.textArea.setAttribute('aria-roledescription', nls.localize('editor', "editor"));
this.textArea.setAttribute('aria-multiline', 'true');
@ -393,7 +393,7 @@ export class TextAreaHandler extends ViewPart {
}
_getWordBeforePosition(position) {
const lineContent = this._context.viewModel.getLineContent(position.lineNumber);
const wordSeparators = getMapForWordSeparators(this._context.configuration.options.get(124 /* EditorOption.wordSeparators */));
const wordSeparators = getMapForWordSeparators(this._context.configuration.options.get(125 /* EditorOption.wordSeparators */));
let column = position.column;
let distance = 0;
while (column > 1) {
@ -438,10 +438,10 @@ export class TextAreaHandler extends ViewPart {
// we will size the textarea to match the width used for wrapping points computation (see `domLineBreaksComputer.ts`).
// This is because screen readers will read the text in the textarea and we'd like that the
// wrapping points in the textarea match the wrapping points in the editor.
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
const wrappingColumn = layoutInfo.wrappingColumn;
if (wrappingColumn !== -1 && this._accessibilitySupport !== 1 /* AccessibilitySupport.Disabled */) {
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
this._textAreaWrapping = true;
this._textAreaWidth = Math.round(wrappingColumn * fontInfo.typicalHalfwidthCharacterWidth);
}
@ -453,21 +453,21 @@ export class TextAreaHandler extends ViewPart {
// --- begin event handlers
onConfigurationChanged(e) {
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._setAccessibilityOptions(options);
this._contentLeft = layoutInfo.contentLeft;
this._contentWidth = layoutInfo.contentWidth;
this._contentHeight = layoutInfo.height;
this._fontInfo = options.get(47 /* EditorOption.fontInfo */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
this._emptySelectionClipboard = options.get(34 /* EditorOption.emptySelectionClipboard */);
this._copyWithSyntaxHighlighting = options.get(22 /* EditorOption.copyWithSyntaxHighlighting */);
this._fontInfo = options.get(48 /* EditorOption.fontInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._emptySelectionClipboard = options.get(35 /* EditorOption.emptySelectionClipboard */);
this._copyWithSyntaxHighlighting = options.get(23 /* EditorOption.copyWithSyntaxHighlighting */);
this.textArea.setAttribute('wrap', this._textAreaWrapping && !this._visibleTextArea ? 'on' : 'off');
const { tabSize } = this._context.viewModel.model.getOptions();
this.textArea.domNode.style.tabSize = `${tabSize * this._fontInfo.spaceWidth}px`;
this.textArea.setAttribute('aria-label', this._getAriaLabel(options));
this.textArea.setAttribute('tabindex', String(options.get(118 /* EditorOption.tabIndex */)));
if (e.hasChanged(31 /* EditorOption.domReadOnly */) || e.hasChanged(86 /* EditorOption.readOnly */)) {
this.textArea.setAttribute('tabindex', String(options.get(119 /* EditorOption.tabIndex */)));
if (e.hasChanged(32 /* EditorOption.domReadOnly */) || e.hasChanged(87 /* EditorOption.readOnly */)) {
this._ensureReadOnlyAttribute();
}
if (e.hasChanged(2 /* EditorOption.accessibilitySupport */)) {
@ -538,7 +538,7 @@ export class TextAreaHandler extends ViewPart {
const options = this._context.configuration.options;
// When someone requests to disable IME, we set the "readonly" attribute on the <textarea>.
// This will prevent composition.
const useReadOnly = !IME.enabled || (options.get(31 /* EditorOption.domReadOnly */) && options.get(86 /* EditorOption.readOnly */));
const useReadOnly = !IME.enabled || (options.get(32 /* EditorOption.domReadOnly */) && options.get(87 /* EditorOption.readOnly */));
if (useReadOnly) {
this.textArea.setAttribute('readonly', 'true');
}
@ -705,11 +705,11 @@ export class TextAreaHandler extends ViewPart {
tac.setWidth(renderData.useCover ? renderData.width : 0);
tac.setHeight(renderData.useCover ? renderData.height : 0);
const options = this._context.configuration.options;
if (options.get(54 /* EditorOption.glyphMargin */)) {
if (options.get(55 /* EditorOption.glyphMargin */)) {
tac.setClassName('monaco-editor-background textAreaCover ' + Margin.OUTER_CLASS_NAME);
}
else {
if (options.get(64 /* EditorOption.lineNumbers */).renderType !== 0 /* RenderLineNumbersType.Off */) {
if (options.get(65 /* EditorOption.lineNumbers */).renderType !== 0 /* RenderLineNumbersType.Off */) {
tac.setClassName('monaco-editor-background textAreaCover ' + LineNumbersOverlay.CLASS_NAME);
}
else {

View file

@ -1658,7 +1658,7 @@ export var CoreEditingCommands;
document.execCommand('undo');
}
runEditorCommand(accessor, editor, args) {
if (!editor.hasModel() || editor.getOption(86 /* EditorOption.readOnly */) === true) {
if (!editor.hasModel() || editor.getOption(87 /* EditorOption.readOnly */) === true) {
return;
}
return editor.getModel().undo();
@ -1672,7 +1672,7 @@ export var CoreEditingCommands;
document.execCommand('redo');
}
runEditorCommand(accessor, editor, args) {
if (!editor.hasModel() || editor.getOption(86 /* EditorOption.readOnly */) === true) {
if (!editor.hasModel() || editor.getOption(87 /* EditorOption.readOnly */) === true) {
return;
}
return editor.getModel().redo();

View file

@ -35,7 +35,8 @@ import { ILogService } from '../../../platform/log/common/log.js';
import { StopWatch } from '../../../base/common/stopwatch.js';
import { canceled } from '../../../base/common/errors.js';
import { ILanguageFeaturesService } from '../../common/services/languageFeatures.js';
import { LineRangeMapping, LineRange, RangeMapping } from '../../common/diff/linesDiffComputer.js';
import { LineRangeMapping, RangeMapping } from '../../common/diff/linesDiffComputer.js';
import { LineRange } from '../../common/core/lineRange.js';
/**
* Stop syncing a model to the worker if it was not needed for 1 min.
*/
@ -100,13 +101,13 @@ let EditorWorkerService = class EditorWorkerService extends Disposable {
return diff;
});
}
computeMoreMinimalEdits(resource, edits) {
computeMoreMinimalEdits(resource, edits, pretty = false) {
if (isNonEmptyArray(edits)) {
if (!canSyncModel(this._modelService, resource)) {
return Promise.resolve(edits); // File too large
}
const sw = StopWatch.create(true);
const result = this._workerManager.withWorker().then(client => client.computeMoreMinimalEdits(resource, edits));
const result = this._workerManager.withWorker().then(client => client.computeMoreMinimalEdits(resource, edits, pretty));
result.finally(() => this._logService.trace('FORMAT#computeMoreMinimalEdits', resource.toString(true), sw.elapsed()));
return Promise.race([result, timeout(1000).then(() => edits)]);
}
@ -410,9 +411,9 @@ export class EditorWorkerClient extends Disposable {
return proxy.computeDiff(original.toString(), modified.toString(), options, algorithm);
});
}
computeMoreMinimalEdits(resource, edits) {
computeMoreMinimalEdits(resource, edits, pretty) {
return this._withSyncedResources([resource]).then(proxy => {
return proxy.computeMoreMinimalEdits(resource.toString(), edits);
return proxy.computeMoreMinimalEdits(resource.toString(), edits, pretty);
});
}
computeLinks(resource) {

View file

@ -143,6 +143,10 @@ let OpenerService = class OpenerService {
this._openers.push(new CommandOpener(commandService));
this._openers.push(new EditorOpener(editorService));
}
registerOpener(opener) {
const remove = this._openers.unshift(opener);
return { dispose: remove };
}
open(target, options) {
var _a;
return __awaiter(this, void 0, void 0, function* () {

View file

@ -118,7 +118,6 @@ export class View extends ViewEventHandler {
}
this._linesContent.appendChild(contentViewOverlays.getDomNode());
this._linesContent.appendChild(rulers.domNode);
this._linesContent.appendChild(blockOutline.domNode);
this._linesContent.appendChild(this._viewZones.domNode);
this._linesContent.appendChild(this._viewLines.getDomNode());
this._linesContent.appendChild(this._contentWidgets.domNode);
@ -130,6 +129,7 @@ export class View extends ViewEventHandler {
this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover);
this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode());
this._overflowGuardContainer.appendChild(minimap.getDomNode());
this._overflowGuardContainer.appendChild(blockOutline.domNode);
this.domNode.appendChild(this._overflowGuardContainer);
if (overflowWidgetsDomNode) {
overflowWidgetsDomNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode);
@ -194,7 +194,7 @@ export class View extends ViewEventHandler {
}
_applyLayout() {
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this.domNode.setWidth(layoutInfo.width);
this.domNode.setHeight(layoutInfo.height);
this._overflowGuardContainer.setWidth(layoutInfo.width);
@ -204,7 +204,7 @@ export class View extends ViewEventHandler {
}
_getEditorClassName() {
const focused = this._textAreaHandler.isFocused() ? ' focused' : '';
return this._context.configuration.options.get(135 /* EditorOption.editorClassName */) + ' ' + getThemeTypeSelector(this._context.theme.type) + focused;
return this._context.configuration.options.get(136 /* EditorOption.editorClassName */) + ' ' + getThemeTypeSelector(this._context.theme.type) + focused;
}
// --- begin event handlers
handleEvents(events) {

View file

@ -44,7 +44,7 @@ export class ViewController {
return viewPosition;
}
_hasMulticursorModifier(data) {
switch (this.configuration.options.get(74 /* EditorOption.multiCursorModifier */)) {
switch (this.configuration.options.get(75 /* EditorOption.multiCursorModifier */)) {
case 'altKey':
return data.altKey;
case 'ctrlKey':
@ -56,7 +56,7 @@ export class ViewController {
}
}
_hasNonMulticursorModifier(data) {
switch (this.configuration.options.get(74 /* EditorOption.multiCursorModifier */)) {
switch (this.configuration.options.get(75 /* EditorOption.multiCursorModifier */)) {
case 'altKey':
return data.ctrlKey || data.metaKey;
case 'ctrlKey':
@ -69,8 +69,8 @@ export class ViewController {
}
dispatchMouse(data) {
const options = this.configuration.options;
const selectionClipboardIsOn = (platform.isLinux && options.get(101 /* EditorOption.selectionClipboard */));
const columnSelection = options.get(19 /* EditorOption.columnSelection */);
const selectionClipboardIsOn = (platform.isLinux && options.get(102 /* EditorOption.selectionClipboard */));
const columnSelection = options.get(20 /* EditorOption.columnSelection */);
if (data.middleButton && !selectionClipboardIsOn) {
this._columnSelect(data.position, data.mouseColumn, data.inSelectionMode);
}

View file

@ -191,7 +191,7 @@ export class VisibleLinesCollection {
}
// ---- begin view event handlers
onConfigurationChanged(e) {
if (e.hasChanged(138 /* EditorOption.layoutInfo */)) {
if (e.hasChanged(139 /* EditorOption.layoutInfo */)) {
return true;
}
return false;

View file

@ -12,7 +12,7 @@ export class ViewOverlays extends ViewPart {
this._visibleLines = new VisibleLinesCollection(this);
this.domNode = this._visibleLines.domNode;
const options = this._context.configuration.options;
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
applyFontInfo(this.domNode, fontInfo);
this._dynamicOverlays = [];
this._isFocused = false;
@ -59,7 +59,7 @@ export class ViewOverlays extends ViewPart {
line.onConfigurationChanged(e);
}
const options = this._context.configuration.options;
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
applyFontInfo(this.domNode, fontInfo);
return true;
}
@ -109,7 +109,7 @@ export class ViewOverlays extends ViewPart {
export class ViewOverlayLine {
constructor(configuration, dynamicOverlays) {
this._configuration = configuration;
this._lineHeight = this._configuration.options.get(63 /* EditorOption.lineHeight */);
this._lineHeight = this._configuration.options.get(64 /* EditorOption.lineHeight */);
this._dynamicOverlays = dynamicOverlays;
this._domNode = null;
this._renderedContent = null;
@ -130,7 +130,7 @@ export class ViewOverlayLine {
// Nothing
}
onConfigurationChanged(e) {
this._lineHeight = this._configuration.options.get(63 /* EditorOption.lineHeight */);
this._lineHeight = this._configuration.options.get(64 /* EditorOption.lineHeight */);
}
renderLine(lineNumber, deltaTop, viewportData, sb) {
let result = '';
@ -163,14 +163,14 @@ export class ContentViewOverlays extends ViewOverlays {
constructor(context) {
super(context);
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._contentWidth = layoutInfo.contentWidth;
this.domNode.setHeight(0);
}
// --- begin event handlers
onConfigurationChanged(e) {
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._contentWidth = layoutInfo.contentWidth;
return super.onConfigurationChanged(e) || true;
}
@ -187,16 +187,16 @@ export class MarginViewOverlays extends ViewOverlays {
constructor(context) {
super(context);
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._contentLeft = layoutInfo.contentLeft;
this.domNode.setClassName('margin-view-overlays');
this.domNode.setWidth(1);
applyFontInfo(this.domNode, options.get(47 /* EditorOption.fontInfo */));
applyFontInfo(this.domNode, options.get(48 /* EditorOption.fontInfo */));
}
onConfigurationChanged(e) {
const options = this._context.configuration.options;
applyFontInfo(this.domNode, options.get(47 /* EditorOption.fontInfo */));
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
applyFontInfo(this.domNode, options.get(48 /* EditorOption.fontInfo */));
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._contentLeft = layoutInfo.contentLeft;
return super.onConfigurationChanged(e) || true;
}

View file

@ -6,6 +6,7 @@
.monaco-editor .blockDecorations-container {
position: absolute;
top: 0;
pointer-events: none;
}
.monaco-editor .blockDecorations-block {

View file

@ -10,6 +10,7 @@ export class BlockDecorations extends ViewPart {
super(context);
this.blocks = [];
this.contentWidth = -1;
this.contentLeft = 0;
this.domNode = createFastDomNode(document.createElement('div'));
this.domNode.setAttribute('role', 'presentation');
this.domNode.setAttribute('aria-hidden', 'true');
@ -19,12 +20,17 @@ export class BlockDecorations extends ViewPart {
update() {
let didChange = false;
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
const newContentWidth = layoutInfo.contentWidth - layoutInfo.verticalScrollbarWidth;
if (this.contentWidth !== newContentWidth) {
this.contentWidth = newContentWidth;
didChange = true;
}
const newContentLeft = layoutInfo.contentLeft;
if (this.contentLeft !== newContentLeft) {
this.contentLeft = newContentLeft;
didChange = true;
}
return didChange;
}
dispose() {
@ -48,6 +54,7 @@ export class BlockDecorations extends ViewPart {
// Nothing to read
}
render(ctx) {
var _a;
let count = 0;
const decorations = ctx.getDecorationsInViewport();
for (const decoration of decorations) {
@ -68,15 +75,16 @@ export class BlockDecorations extends ViewPart {
}
else {
top = ctx.getVerticalOffsetForLineNumber(decoration.range.startLineNumber, true);
bottom = decoration.range.isEmpty()
bottom = decoration.range.isEmpty() && !decoration.options.blockDoesNotCollapse
? ctx.getVerticalOffsetForLineNumber(decoration.range.startLineNumber, false)
: ctx.getVerticalOffsetAfterLineNumber(decoration.range.endLineNumber, true);
}
const [paddingTop, paddingRight, paddingBottom, paddingLeft] = (_a = decoration.options.blockPadding) !== null && _a !== void 0 ? _a : [0, 0, 0, 0];
block.setClassName('blockDecorations-block ' + decoration.options.blockClassName);
block.setLeft(ctx.scrollLeft);
block.setWidth(this.contentWidth);
block.setTop(top);
block.setHeight(bottom - top);
block.setLeft(this.contentLeft - paddingLeft);
block.setWidth(this.contentWidth + paddingLeft + paddingRight);
block.setTop(top - ctx.scrollTop - paddingTop);
block.setHeight(bottom - top + paddingTop + paddingBottom);
count++;
}
for (let i = count; i < this.blocks.length; i++) {

View file

@ -131,11 +131,11 @@ class Widget {
this.allowEditorOverflow = this._actual.allowEditorOverflow || false;
this.suppressMouseDown = this._actual.suppressMouseDown || false;
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
this._fixedOverflowWidgets = options.get(39 /* EditorOption.fixedOverflowWidgets */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._fixedOverflowWidgets = options.get(40 /* EditorOption.fixedOverflowWidgets */);
this._contentWidth = layoutInfo.contentWidth;
this._contentLeft = layoutInfo.contentLeft;
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._affinity = null;
this._preference = [];
this._cachedDomNodeOffsetWidth = -1;
@ -151,9 +151,9 @@ class Widget {
}
onConfigurationChanged(e) {
const options = this._context.configuration.options;
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
if (e.hasChanged(138 /* EditorOption.layoutInfo */)) {
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
if (e.hasChanged(139 /* EditorOption.layoutInfo */)) {
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._contentLeft = layoutInfo.contentLeft;
this._contentWidth = layoutInfo.contentWidth;
this._maxWidth = this._getMaxWidth();
@ -298,7 +298,7 @@ class Widget {
if (!secondary) {
return primary;
}
const fontInfo = this._context.configuration.options.get(47 /* EditorOption.fontInfo */);
const fontInfo = this._context.configuration.options.get(48 /* EditorOption.fontInfo */);
let left = secondary.left;
if (left < primary.left) {
left = Math.max(left, primary.left - width + fontInfo.typicalFullwidthCharacterWidth);

View file

@ -14,10 +14,10 @@ export class AbstractLineHighlightOverlay extends DynamicViewOverlay {
super();
this._context = context;
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
this._renderLineHighlight = options.get(90 /* EditorOption.renderLineHighlight */);
this._renderLineHighlightOnlyWhenFocus = options.get(91 /* EditorOption.renderLineHighlightOnlyWhenFocus */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._renderLineHighlight = options.get(91 /* EditorOption.renderLineHighlight */);
this._renderLineHighlightOnlyWhenFocus = options.get(92 /* EditorOption.renderLineHighlightOnlyWhenFocus */);
this._contentLeft = layoutInfo.contentLeft;
this._contentWidth = layoutInfo.contentWidth;
this._selectionIsEmpty = true;
@ -52,10 +52,10 @@ export class AbstractLineHighlightOverlay extends DynamicViewOverlay {
}
onConfigurationChanged(e) {
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
this._renderLineHighlight = options.get(90 /* EditorOption.renderLineHighlight */);
this._renderLineHighlightOnlyWhenFocus = options.get(91 /* EditorOption.renderLineHighlightOnlyWhenFocus */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._renderLineHighlight = options.get(91 /* EditorOption.renderLineHighlight */);
this._renderLineHighlightOnlyWhenFocus = options.get(92 /* EditorOption.renderLineHighlightOnlyWhenFocus */);
this._contentLeft = layoutInfo.contentLeft;
this._contentWidth = layoutInfo.contentWidth;
return true;

View file

@ -11,8 +11,8 @@ export class DecorationsOverlay extends DynamicViewOverlay {
super();
this._context = context;
const options = this._context.configuration.options;
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
this._typicalHalfwidthCharacterWidth = options.get(47 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._typicalHalfwidthCharacterWidth = options.get(48 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
this._renderResult = null;
this._context.addEventHandler(this);
}
@ -24,8 +24,8 @@ export class DecorationsOverlay extends DynamicViewOverlay {
// --- begin event handlers
onConfigurationChanged(e) {
const options = this._context.configuration.options;
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
this._typicalHalfwidthCharacterWidth = options.get(47 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._typicalHalfwidthCharacterWidth = options.get(48 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
return true;
}
onDecorationsChanged(e) {

View file

@ -11,10 +11,10 @@ export class EditorScrollbar extends ViewPart {
constructor(context, linesContent, viewDomNode, overflowGuardDomNode) {
super(context);
const options = this._context.configuration.options;
const scrollbar = options.get(97 /* EditorOption.scrollbar */);
const mouseWheelScrollSensitivity = options.get(71 /* EditorOption.mouseWheelScrollSensitivity */);
const fastScrollSensitivity = options.get(37 /* EditorOption.fastScrollSensitivity */);
const scrollPredominantAxis = options.get(100 /* EditorOption.scrollPredominantAxis */);
const scrollbar = options.get(98 /* EditorOption.scrollbar */);
const mouseWheelScrollSensitivity = options.get(72 /* EditorOption.mouseWheelScrollSensitivity */);
const fastScrollSensitivity = options.get(38 /* EditorOption.fastScrollSensitivity */);
const scrollPredominantAxis = options.get(101 /* EditorOption.scrollPredominantAxis */);
const scrollbarOptions = {
listenOnDomNode: viewDomNode.domNode,
className: 'editor-scrollable' + ' ' + getThemeTypeSelector(context.theme.type),
@ -73,9 +73,9 @@ export class EditorScrollbar extends ViewPart {
}
_setLayout() {
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this.scrollbarDomNode.setLeft(layoutInfo.contentLeft);
const minimap = options.get(69 /* EditorOption.minimap */);
const minimap = options.get(70 /* EditorOption.minimap */);
const side = minimap.side;
if (side === 'right') {
this.scrollbarDomNode.setWidth(layoutInfo.contentWidth + layoutInfo.minimap.minimapWidth);
@ -99,14 +99,14 @@ export class EditorScrollbar extends ViewPart {
}
// --- begin event handlers
onConfigurationChanged(e) {
if (e.hasChanged(97 /* EditorOption.scrollbar */)
|| e.hasChanged(71 /* EditorOption.mouseWheelScrollSensitivity */)
|| e.hasChanged(37 /* EditorOption.fastScrollSensitivity */)) {
if (e.hasChanged(98 /* EditorOption.scrollbar */)
|| e.hasChanged(72 /* EditorOption.mouseWheelScrollSensitivity */)
|| e.hasChanged(38 /* EditorOption.fastScrollSensitivity */)) {
const options = this._context.configuration.options;
const scrollbar = options.get(97 /* EditorOption.scrollbar */);
const mouseWheelScrollSensitivity = options.get(71 /* EditorOption.mouseWheelScrollSensitivity */);
const fastScrollSensitivity = options.get(37 /* EditorOption.fastScrollSensitivity */);
const scrollPredominantAxis = options.get(100 /* EditorOption.scrollPredominantAxis */);
const scrollbar = options.get(98 /* EditorOption.scrollbar */);
const mouseWheelScrollSensitivity = options.get(72 /* EditorOption.mouseWheelScrollSensitivity */);
const fastScrollSensitivity = options.get(38 /* EditorOption.fastScrollSensitivity */);
const scrollPredominantAxis = options.get(101 /* EditorOption.scrollPredominantAxis */);
const newOpts = {
vertical: scrollbar.vertical,
horizontal: scrollbar.horizontal,
@ -120,7 +120,7 @@ export class EditorScrollbar extends ViewPart {
};
this.scrollbar.updateOptions(newOpts);
}
if (e.hasChanged(138 /* EditorOption.layoutInfo */)) {
if (e.hasChanged(139 /* EditorOption.layoutInfo */)) {
this._setLayout();
}
return true;

View file

@ -58,9 +58,9 @@ export class GlyphMarginOverlay extends DedupOverlay {
super();
this._context = context;
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
this._glyphMargin = options.get(54 /* EditorOption.glyphMargin */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._glyphMargin = options.get(55 /* EditorOption.glyphMargin */);
this._glyphMarginLeft = layoutInfo.glyphMarginLeft;
this._glyphMarginWidth = layoutInfo.glyphMarginWidth;
this._renderResult = null;
@ -74,9 +74,9 @@ export class GlyphMarginOverlay extends DedupOverlay {
// --- begin event handlers
onConfigurationChanged(e) {
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
this._glyphMargin = options.get(54 /* EditorOption.glyphMargin */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._glyphMargin = options.get(55 /* EditorOption.glyphMargin */);
this._glyphMarginLeft = layoutInfo.glyphMarginLeft;
this._glyphMarginWidth = layoutInfo.glyphMarginWidth;
return true;

View file

@ -17,12 +17,12 @@ export class IndentGuidesOverlay extends DynamicViewOverlay {
this._context = context;
this._primaryPosition = null;
const options = this._context.configuration.options;
const wrappingInfo = options.get(139 /* EditorOption.wrappingInfo */);
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
const wrappingInfo = options.get(140 /* EditorOption.wrappingInfo */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._spaceWidth = fontInfo.spaceWidth;
this._maxIndentLeft = wrappingInfo.wrappingColumn === -1 ? -1 : (wrappingInfo.wrappingColumn * fontInfo.typicalHalfwidthCharacterWidth);
this._bracketPairGuideOptions = options.get(13 /* EditorOption.guides */);
this._bracketPairGuideOptions = options.get(14 /* EditorOption.guides */);
this._renderResult = null;
this._context.addEventHandler(this);
}
@ -34,12 +34,12 @@ export class IndentGuidesOverlay extends DynamicViewOverlay {
// --- begin event handlers
onConfigurationChanged(e) {
const options = this._context.configuration.options;
const wrappingInfo = options.get(139 /* EditorOption.wrappingInfo */);
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
const wrappingInfo = options.get(140 /* EditorOption.wrappingInfo */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._spaceWidth = fontInfo.spaceWidth;
this._maxIndentLeft = wrappingInfo.wrappingColumn === -1 ? -1 : (wrappingInfo.wrappingColumn * fontInfo.typicalHalfwidthCharacterWidth);
this._bracketPairGuideOptions = options.get(13 /* EditorOption.guides */);
this._bracketPairGuideOptions = options.get(14 /* EditorOption.guides */);
return true;
}
onCursorStateChanged(e) {

View file

@ -20,12 +20,12 @@ class LineNumbersOverlay extends DynamicViewOverlay {
}
_readConfig() {
const options = this._context.configuration.options;
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
const lineNumbers = options.get(64 /* EditorOption.lineNumbers */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
const lineNumbers = options.get(65 /* EditorOption.lineNumbers */);
this._renderLineNumbers = lineNumbers.renderType;
this._renderCustomLineNumbers = lineNumbers.renderFn;
this._renderFinalNewline = options.get(89 /* EditorOption.renderFinalNewline */);
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
this._renderFinalNewline = options.get(90 /* EditorOption.renderFinalNewline */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._lineNumbersLeft = layoutInfo.lineNumbersLeft;
this._lineNumbersWidth = layoutInfo.lineNumbersWidth;
}

View file

@ -37,25 +37,25 @@ export class ViewLineOptions {
constructor(config, themeType) {
this.themeType = themeType;
const options = config.options;
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
const experimentalWhitespaceRendering = options.get(35 /* EditorOption.experimentalWhitespaceRendering */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
const experimentalWhitespaceRendering = options.get(36 /* EditorOption.experimentalWhitespaceRendering */);
if (experimentalWhitespaceRendering === 'off') {
this.renderWhitespace = options.get(93 /* EditorOption.renderWhitespace */);
this.renderWhitespace = options.get(94 /* EditorOption.renderWhitespace */);
}
else {
// whitespace is rendered in a different layer
this.renderWhitespace = 'none';
}
this.renderControlCharacters = options.get(88 /* EditorOption.renderControlCharacters */);
this.renderControlCharacters = options.get(89 /* EditorOption.renderControlCharacters */);
this.spaceWidth = fontInfo.spaceWidth;
this.middotWidth = fontInfo.middotWidth;
this.wsmiddotWidth = fontInfo.wsmiddotWidth;
this.useMonospaceOptimizations = (fontInfo.isMonospace
&& !options.get(30 /* EditorOption.disableMonospaceOptimizations */));
&& !options.get(31 /* EditorOption.disableMonospaceOptimizations */));
this.canUseHalfwidthRightwardsArrow = fontInfo.canUseHalfwidthRightwardsArrow;
this.lineHeight = options.get(63 /* EditorOption.lineHeight */);
this.stopRenderingLineAfter = options.get(111 /* EditorOption.stopRenderingLineAfter */);
this.fontLigatures = options.get(48 /* EditorOption.fontLigatures */);
this.lineHeight = options.get(64 /* EditorOption.lineHeight */);
this.stopRenderingLineAfter = options.get(112 /* EditorOption.stopRenderingLineAfter */);
this.fontLigatures = options.get(49 /* EditorOption.fontLigatures */);
}
equals(other) {
return (this.themeType === other.themeType

View file

@ -67,15 +67,15 @@ class ViewLines extends ViewPart {
this.domNode = this._visibleLines.domNode;
const conf = this._context.configuration;
const options = this._context.configuration.options;
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
const wrappingInfo = options.get(139 /* EditorOption.wrappingInfo */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
const wrappingInfo = options.get(140 /* EditorOption.wrappingInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._typicalHalfwidthCharacterWidth = fontInfo.typicalHalfwidthCharacterWidth;
this._isViewportWrapping = wrappingInfo.isViewportWrapping;
this._revealHorizontalRightPadding = options.get(94 /* EditorOption.revealHorizontalRightPadding */);
this._cursorSurroundingLines = options.get(26 /* EditorOption.cursorSurroundingLines */);
this._cursorSurroundingLinesStyle = options.get(27 /* EditorOption.cursorSurroundingLinesStyle */);
this._canUseLayerHinting = !options.get(29 /* EditorOption.disableLayerHinting */);
this._revealHorizontalRightPadding = options.get(95 /* EditorOption.revealHorizontalRightPadding */);
this._cursorSurroundingLines = options.get(27 /* EditorOption.cursorSurroundingLines */);
this._cursorSurroundingLinesStyle = options.get(28 /* EditorOption.cursorSurroundingLinesStyle */);
this._canUseLayerHinting = !options.get(30 /* EditorOption.disableLayerHinting */);
this._viewLineOptions = new ViewLineOptions(conf, this._context.theme.type);
PartFingerprints.write(this.domNode, 7 /* PartFingerprint.ViewLines */);
this.domNode.setClassName(`view-lines ${MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`);
@ -91,8 +91,8 @@ class ViewLines extends ViewPart {
this._lastRenderedData = new LastRenderedData();
this._horizontalRevealRequest = null;
// sticky scroll widget
this._stickyScrollEnabled = options.get(109 /* EditorOption.stickyScroll */).enabled;
this._maxNumberStickyLines = options.get(109 /* EditorOption.stickyScroll */).maxLineCount;
this._stickyScrollEnabled = options.get(110 /* EditorOption.stickyScroll */).enabled;
this._maxNumberStickyLines = options.get(110 /* EditorOption.stickyScroll */).maxLineCount;
}
dispose() {
this._asyncUpdateLineWidths.dispose();
@ -110,25 +110,25 @@ class ViewLines extends ViewPart {
// ---- begin view event handlers
onConfigurationChanged(e) {
this._visibleLines.onConfigurationChanged(e);
if (e.hasChanged(139 /* EditorOption.wrappingInfo */)) {
if (e.hasChanged(140 /* EditorOption.wrappingInfo */)) {
this._maxLineWidth = 0;
}
const options = this._context.configuration.options;
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
const wrappingInfo = options.get(139 /* EditorOption.wrappingInfo */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
const wrappingInfo = options.get(140 /* EditorOption.wrappingInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._typicalHalfwidthCharacterWidth = fontInfo.typicalHalfwidthCharacterWidth;
this._isViewportWrapping = wrappingInfo.isViewportWrapping;
this._revealHorizontalRightPadding = options.get(94 /* EditorOption.revealHorizontalRightPadding */);
this._cursorSurroundingLines = options.get(26 /* EditorOption.cursorSurroundingLines */);
this._cursorSurroundingLinesStyle = options.get(27 /* EditorOption.cursorSurroundingLinesStyle */);
this._canUseLayerHinting = !options.get(29 /* EditorOption.disableLayerHinting */);
this._revealHorizontalRightPadding = options.get(95 /* EditorOption.revealHorizontalRightPadding */);
this._cursorSurroundingLines = options.get(27 /* EditorOption.cursorSurroundingLines */);
this._cursorSurroundingLinesStyle = options.get(28 /* EditorOption.cursorSurroundingLinesStyle */);
this._canUseLayerHinting = !options.get(30 /* EditorOption.disableLayerHinting */);
// sticky scroll
this._stickyScrollEnabled = options.get(109 /* EditorOption.stickyScroll */).enabled;
this._maxNumberStickyLines = options.get(109 /* EditorOption.stickyScroll */).maxLineCount;
this._stickyScrollEnabled = options.get(110 /* EditorOption.stickyScroll */).enabled;
this._maxNumberStickyLines = options.get(110 /* EditorOption.stickyScroll */).maxLineCount;
applyFontInfo(this.domNode, fontInfo);
this._onOptionsMaybeChanged();
if (e.hasChanged(138 /* EditorOption.layoutInfo */)) {
if (e.hasChanged(139 /* EditorOption.layoutInfo */)) {
this._maxLineWidth = 0;
}
return true;
@ -618,7 +618,7 @@ class ViewLines extends ViewPart {
}
_computeScrollLeftToReveal(horizontalRevealRequest) {
const viewport = this._context.viewLayout.getCurrentViewport();
const layoutInfo = this._context.configuration.options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = this._context.configuration.options.get(139 /* EditorOption.layoutInfo */);
const viewportStartX = viewport.left;
const viewportEndX = viewportStartX + viewport.width - layoutInfo.verticalScrollbarWidth;
let boxStartX = 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */;

View file

@ -9,7 +9,7 @@ export class LinesDecorationsOverlay extends DedupOverlay {
super();
this._context = context;
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._decorationsLeft = layoutInfo.decorationsLeft;
this._decorationsWidth = layoutInfo.decorationsWidth;
this._renderResult = null;
@ -23,7 +23,7 @@ export class LinesDecorationsOverlay extends DedupOverlay {
// --- begin event handlers
onConfigurationChanged(e) {
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._decorationsLeft = layoutInfo.decorationsLeft;
this._decorationsWidth = layoutInfo.decorationsWidth;
return true;

View file

@ -9,8 +9,8 @@ class Margin extends ViewPart {
constructor(context) {
super(context);
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
this._canUseLayerHinting = !options.get(29 /* EditorOption.disableLayerHinting */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._canUseLayerHinting = !options.get(30 /* EditorOption.disableLayerHinting */);
this._contentLeft = layoutInfo.contentLeft;
this._glyphMarginLeft = layoutInfo.glyphMarginLeft;
this._glyphMarginWidth = layoutInfo.glyphMarginWidth;
@ -32,8 +32,8 @@ class Margin extends ViewPart {
// --- begin event handlers
onConfigurationChanged(e) {
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
this._canUseLayerHinting = !options.get(29 /* EditorOption.disableLayerHinting */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._canUseLayerHinting = !options.get(30 /* EditorOption.disableLayerHinting */);
this._contentLeft = layoutInfo.contentLeft;
this._glyphMarginLeft = layoutInfo.glyphMarginLeft;
this._glyphMarginWidth = layoutInfo.glyphMarginWidth;

View file

@ -30,22 +30,22 @@ const GUTTER_DECORATION_WIDTH = 2;
class MinimapOptions {
constructor(configuration, theme, tokensColorTracker) {
const options = configuration.options;
const pixelRatio = options.get(136 /* EditorOption.pixelRatio */);
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const pixelRatio = options.get(137 /* EditorOption.pixelRatio */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
const minimapLayout = layoutInfo.minimap;
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
const minimapOpts = options.get(69 /* EditorOption.minimap */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
const minimapOpts = options.get(70 /* EditorOption.minimap */);
this.renderMinimap = minimapLayout.renderMinimap;
this.size = minimapOpts.size;
this.minimapHeightIsEditorHeight = minimapLayout.minimapHeightIsEditorHeight;
this.scrollBeyondLastLine = options.get(99 /* EditorOption.scrollBeyondLastLine */);
this.paddingTop = options.get(80 /* EditorOption.padding */).top;
this.paddingBottom = options.get(80 /* EditorOption.padding */).bottom;
this.scrollBeyondLastLine = options.get(100 /* EditorOption.scrollBeyondLastLine */);
this.paddingTop = options.get(81 /* EditorOption.padding */).top;
this.paddingBottom = options.get(81 /* EditorOption.padding */).bottom;
this.showSlider = minimapOpts.showSlider;
this.autohide = minimapOpts.autohide;
this.pixelRatio = pixelRatio;
this.typicalHalfwidthCharacterWidth = fontInfo.typicalHalfwidthCharacterWidth;
this.lineHeight = options.get(63 /* EditorOption.lineHeight */);
this.lineHeight = options.get(64 /* EditorOption.lineHeight */);
this.minimapLeft = minimapLayout.minimapLeft;
this.minimapWidth = minimapLayout.minimapWidth;
this.minimapHeight = layoutInfo.height;

View file

@ -9,7 +9,7 @@ export class ViewOverlayWidgets extends ViewPart {
constructor(context) {
super(context);
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._widgets = {};
this._verticalScrollbarWidth = layoutInfo.verticalScrollbarWidth;
this._minimapWidth = layoutInfo.minimap.minimapWidth;
@ -30,7 +30,7 @@ export class ViewOverlayWidgets extends ViewPart {
// ---- begin view event handlers
onConfigurationChanged(e) {
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._verticalScrollbarWidth = layoutInfo.verticalScrollbarWidth;
this._minimapWidth = layoutInfo.minimap.minimapWidth;
this._horizontalScrollbarHeight = layoutInfo.horizontalScrollbarHeight;

View file

@ -12,17 +12,17 @@ import { OverviewRulerDecorationsGroup } from '../../../common/viewModel.js';
class Settings {
constructor(config, theme) {
const options = config.options;
this.lineHeight = options.get(63 /* EditorOption.lineHeight */);
this.pixelRatio = options.get(136 /* EditorOption.pixelRatio */);
this.overviewRulerLanes = options.get(79 /* EditorOption.overviewRulerLanes */);
this.renderBorder = options.get(78 /* EditorOption.overviewRulerBorder */);
this.lineHeight = options.get(64 /* EditorOption.lineHeight */);
this.pixelRatio = options.get(137 /* EditorOption.pixelRatio */);
this.overviewRulerLanes = options.get(80 /* EditorOption.overviewRulerLanes */);
this.renderBorder = options.get(79 /* EditorOption.overviewRulerBorder */);
const borderColor = theme.getColor(editorOverviewRulerBorder);
this.borderColor = borderColor ? borderColor.toString() : null;
this.hideCursor = options.get(56 /* EditorOption.hideCursorInOverviewRuler */);
this.hideCursor = options.get(57 /* EditorOption.hideCursorInOverviewRuler */);
const cursorColor = theme.getColor(editorCursorForeground);
this.cursorColor = cursorColor ? cursorColor.transparent(0.7).toString() : null;
this.themeType = theme.type;
const minimapOpts = options.get(69 /* EditorOption.minimap */);
const minimapOpts = options.get(70 /* EditorOption.minimap */);
const minimapEnabled = minimapOpts.enabled;
const minimapSide = minimapOpts.side;
const themeColor = theme.getColor(editorOverviewRulerBackground);
@ -36,7 +36,7 @@ class Settings {
else {
this.backgroundColor = null;
}
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
const position = layoutInfo.overviewRuler;
this.top = position.top;
this.right = position.right;

View file

@ -19,8 +19,8 @@ export class OverviewRuler extends ViewEventHandler {
this._zoneManager.setDOMWidth(0);
this._zoneManager.setDOMHeight(0);
this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight());
this._zoneManager.setLineHeight(options.get(63 /* EditorOption.lineHeight */));
this._zoneManager.setPixelRatio(options.get(136 /* EditorOption.pixelRatio */));
this._zoneManager.setLineHeight(options.get(64 /* EditorOption.lineHeight */));
this._zoneManager.setPixelRatio(options.get(137 /* EditorOption.pixelRatio */));
this._context.addEventHandler(this);
}
dispose() {
@ -30,12 +30,12 @@ export class OverviewRuler extends ViewEventHandler {
// ---- begin view event handlers
onConfigurationChanged(e) {
const options = this._context.configuration.options;
if (e.hasChanged(63 /* EditorOption.lineHeight */)) {
this._zoneManager.setLineHeight(options.get(63 /* EditorOption.lineHeight */));
if (e.hasChanged(64 /* EditorOption.lineHeight */)) {
this._zoneManager.setLineHeight(options.get(64 /* EditorOption.lineHeight */));
this._render();
}
if (e.hasChanged(136 /* EditorOption.pixelRatio */)) {
this._zoneManager.setPixelRatio(options.get(136 /* EditorOption.pixelRatio */));
if (e.hasChanged(137 /* EditorOption.pixelRatio */)) {
this._zoneManager.setPixelRatio(options.get(137 /* EditorOption.pixelRatio */));
this._domNode.setWidth(this._zoneManager.getDOMWidth());
this._domNode.setHeight(this._zoneManager.getDOMHeight());
this._domNode.domNode.width = this._zoneManager.getCanvasWidth();

View file

@ -14,8 +14,8 @@ export class Rulers extends ViewPart {
this.domNode.setClassName('view-rulers');
this._renderedRulers = [];
const options = this._context.configuration.options;
this._rulers = options.get(96 /* EditorOption.rulers */);
this._typicalHalfwidthCharacterWidth = options.get(47 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
this._rulers = options.get(97 /* EditorOption.rulers */);
this._typicalHalfwidthCharacterWidth = options.get(48 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
}
dispose() {
super.dispose();
@ -23,8 +23,8 @@ export class Rulers extends ViewPart {
// --- begin event handlers
onConfigurationChanged(e) {
const options = this._context.configuration.options;
this._rulers = options.get(96 /* EditorOption.rulers */);
this._typicalHalfwidthCharacterWidth = options.get(47 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
this._rulers = options.get(97 /* EditorOption.rulers */);
this._typicalHalfwidthCharacterWidth = options.get(48 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
return true;
}
onScrollChanged(e) {

View file

@ -13,7 +13,7 @@ export class ScrollDecorationViewPart extends ViewPart {
this._updateWidth();
this._shouldShow = false;
const options = this._context.configuration.options;
const scrollbar = options.get(97 /* EditorOption.scrollbar */);
const scrollbar = options.get(98 /* EditorOption.scrollbar */);
this._useShadows = scrollbar.useShadows;
this._domNode = createFastDomNode(document.createElement('div'));
this._domNode.setAttribute('role', 'presentation');
@ -35,7 +35,7 @@ export class ScrollDecorationViewPart extends ViewPart {
}
_updateWidth() {
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
if (layoutInfo.minimap.renderMinimap === 0 || (layoutInfo.minimap.minimapWidth > 0 && layoutInfo.minimap.minimapLeft === 0)) {
this._width = layoutInfo.width;
}
@ -46,7 +46,7 @@ export class ScrollDecorationViewPart extends ViewPart {
// --- begin event handlers
onConfigurationChanged(e) {
const options = this._context.configuration.options;
const scrollbar = options.get(97 /* EditorOption.scrollbar */);
const scrollbar = options.get(98 /* EditorOption.scrollbar */);
this._useShadows = scrollbar.useShadows;
this._updateWidth();
this._updateShouldShow();

View file

@ -32,9 +32,9 @@ class SelectionsOverlay extends DynamicViewOverlay {
this._previousFrameVisibleRangesWithStyle = [];
this._context = context;
const options = this._context.configuration.options;
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
this._roundedSelection = options.get(95 /* EditorOption.roundedSelection */);
this._typicalHalfwidthCharacterWidth = options.get(47 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._roundedSelection = options.get(96 /* EditorOption.roundedSelection */);
this._typicalHalfwidthCharacterWidth = options.get(48 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
this._selections = [];
this._renderResult = null;
this._context.addEventHandler(this);
@ -47,9 +47,9 @@ class SelectionsOverlay extends DynamicViewOverlay {
// --- begin event handlers
onConfigurationChanged(e) {
const options = this._context.configuration.options;
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
this._roundedSelection = options.get(95 /* EditorOption.roundedSelection */);
this._typicalHalfwidthCharacterWidth = options.get(47 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._roundedSelection = options.get(96 /* EditorOption.roundedSelection */);
this._typicalHalfwidthCharacterWidth = options.get(48 /* EditorOption.fontInfo */).typicalHalfwidthCharacterWidth;
return true;
}
onCursorStateChanged(e) {

View file

@ -25,11 +25,11 @@ export class ViewCursor {
constructor(context) {
this._context = context;
const options = this._context.configuration.options;
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
this._cursorStyle = options.get(25 /* EditorOption.cursorStyle */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
this._cursorStyle = options.get(26 /* EditorOption.cursorStyle */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._typicalHalfwidthCharacterWidth = fontInfo.typicalHalfwidthCharacterWidth;
this._lineCursorWidth = Math.min(options.get(28 /* EditorOption.cursorWidth */), this._typicalHalfwidthCharacterWidth);
this._lineCursorWidth = Math.min(options.get(29 /* EditorOption.cursorWidth */), this._typicalHalfwidthCharacterWidth);
this._isVisible = true;
// Create the dom node
this._domNode = createFastDomNode(document.createElement('div'));
@ -63,11 +63,11 @@ export class ViewCursor {
}
onConfigurationChanged(e) {
const options = this._context.configuration.options;
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
this._cursorStyle = options.get(25 /* EditorOption.cursorStyle */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
this._cursorStyle = options.get(26 /* EditorOption.cursorStyle */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._typicalHalfwidthCharacterWidth = fontInfo.typicalHalfwidthCharacterWidth;
this._lineCursorWidth = Math.min(options.get(28 /* EditorOption.cursorWidth */), this._typicalHalfwidthCharacterWidth);
this._lineCursorWidth = Math.min(options.get(29 /* EditorOption.cursorWidth */), this._typicalHalfwidthCharacterWidth);
applyFontInfo(this._domNode, fontInfo);
return true;
}

View file

@ -15,10 +15,10 @@ class ViewCursors extends ViewPart {
constructor(context) {
super(context);
const options = this._context.configuration.options;
this._readOnly = options.get(86 /* EditorOption.readOnly */);
this._cursorBlinking = options.get(23 /* EditorOption.cursorBlinking */);
this._cursorStyle = options.get(25 /* EditorOption.cursorStyle */);
this._cursorSmoothCaretAnimation = options.get(24 /* EditorOption.cursorSmoothCaretAnimation */);
this._readOnly = options.get(87 /* EditorOption.readOnly */);
this._cursorBlinking = options.get(24 /* EditorOption.cursorBlinking */);
this._cursorStyle = options.get(26 /* EditorOption.cursorStyle */);
this._cursorSmoothCaretAnimation = options.get(25 /* EditorOption.cursorSmoothCaretAnimation */);
this._selectionIsEmpty = true;
this._isComposingInput = false;
this._isVisible = false;
@ -57,10 +57,10 @@ class ViewCursors extends ViewPart {
}
onConfigurationChanged(e) {
const options = this._context.configuration.options;
this._readOnly = options.get(86 /* EditorOption.readOnly */);
this._cursorBlinking = options.get(23 /* EditorOption.cursorBlinking */);
this._cursorStyle = options.get(25 /* EditorOption.cursorStyle */);
this._cursorSmoothCaretAnimation = options.get(24 /* EditorOption.cursorSmoothCaretAnimation */);
this._readOnly = options.get(87 /* EditorOption.readOnly */);
this._cursorBlinking = options.get(24 /* EditorOption.cursorBlinking */);
this._cursorStyle = options.get(26 /* EditorOption.cursorStyle */);
this._cursorSmoothCaretAnimation = options.get(25 /* EditorOption.cursorSmoothCaretAnimation */);
this._updateBlinking();
this._updateDomClassName();
this._primaryCursor.onConfigurationChanged(e);

View file

@ -11,8 +11,8 @@ export class ViewZones extends ViewPart {
constructor(context) {
super(context);
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._contentWidth = layoutInfo.contentWidth;
this._contentLeft = layoutInfo.contentLeft;
this.domNode = createFastDomNode(document.createElement('div'));
@ -58,11 +58,11 @@ export class ViewZones extends ViewPart {
}
onConfigurationChanged(e) {
const options = this._context.configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(63 /* EditorOption.lineHeight */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._lineHeight = options.get(64 /* EditorOption.lineHeight */);
this._contentWidth = layoutInfo.contentWidth;
this._contentLeft = layoutInfo.contentLeft;
if (e.hasChanged(63 /* EditorOption.lineHeight */)) {
if (e.hasChanged(64 /* EditorOption.lineHeight */)) {
this._recomputeWhitespacesProps();
}
return true;

View file

@ -26,7 +26,7 @@ export class WhitespaceOverlay extends DynamicViewOverlay {
onConfigurationChanged(e) {
const newOptions = new WhitespaceOptions(this._context.configuration);
if (this._options.equals(newOptions)) {
return e.hasChanged(138 /* EditorOption.layoutInfo */);
return e.hasChanged(139 /* EditorOption.layoutInfo */);
}
this._options = newOptions;
return true;
@ -233,27 +233,27 @@ export class WhitespaceOverlay extends DynamicViewOverlay {
class WhitespaceOptions {
constructor(config) {
const options = config.options;
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
const experimentalWhitespaceRendering = options.get(35 /* EditorOption.experimentalWhitespaceRendering */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
const experimentalWhitespaceRendering = options.get(36 /* EditorOption.experimentalWhitespaceRendering */);
if (experimentalWhitespaceRendering === 'off') {
// whitespace is rendered in the view line
this.renderWhitespace = 'none';
this.renderWithSVG = false;
}
else if (experimentalWhitespaceRendering === 'svg') {
this.renderWhitespace = options.get(93 /* EditorOption.renderWhitespace */);
this.renderWhitespace = options.get(94 /* EditorOption.renderWhitespace */);
this.renderWithSVG = true;
}
else {
this.renderWhitespace = options.get(93 /* EditorOption.renderWhitespace */);
this.renderWhitespace = options.get(94 /* EditorOption.renderWhitespace */);
this.renderWithSVG = false;
}
this.spaceWidth = fontInfo.spaceWidth;
this.middotWidth = fontInfo.middotWidth;
this.wsmiddotWidth = fontInfo.wsmiddotWidth;
this.canUseHalfwidthRightwardsArrow = fontInfo.canUseHalfwidthRightwardsArrow;
this.lineHeight = options.get(63 /* EditorOption.lineHeight */);
this.stopRenderingLineAfter = options.get(111 /* EditorOption.stopRenderingLineAfter */);
this.lineHeight = options.get(64 /* EditorOption.lineHeight */);
this.stopRenderingLineAfter = options.get(112 /* EditorOption.stopRenderingLineAfter */);
}
equals(other) {
return (this.renderWhitespace === other.renderWhitespace

View file

@ -180,8 +180,8 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
this._register(this._configuration.onDidChange((e) => {
this._onDidChangeConfiguration.fire(e);
const options = this._configuration.options;
if (e.hasChanged(138 /* EditorOption.layoutInfo */)) {
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
if (e.hasChanged(139 /* EditorOption.layoutInfo */)) {
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
this._onDidLayoutChange.fire(layoutInfo);
}
}));
@ -221,8 +221,8 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
this._actions.set(internalAction.id, internalAction);
}
const isDropIntoEnabled = () => {
return !this._configuration.options.get(86 /* EditorOption.readOnly */)
&& this._configuration.options.get(33 /* EditorOption.dropIntoEditor */).enabled;
return !this._configuration.options.get(87 /* EditorOption.readOnly */)
&& this._configuration.options.get(34 /* EditorOption.dropIntoEditor */).enabled;
};
this._register(new dom.DragAndDropObserver(this._domElement, {
onDragEnter: () => undefined,
@ -303,7 +303,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
if (!this._modelData) {
return null;
}
return WordOperations.getWordAtPosition(this._modelData.model, this._configuration.options.get(124 /* EditorOption.wordSeparators */), position);
return WordOperations.getWordAtPosition(this._modelData.model, this._configuration.options.get(125 /* EditorOption.wordSeparators */), position);
}
getValue(options = null) {
if (!this._modelData) {
@ -741,7 +741,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
}
const action = this.getAction(handlerId);
if (action) {
Promise.resolve(action.run()).then(undefined, onUnexpectedError);
Promise.resolve(action.run(payload)).then(undefined, onUnexpectedError);
return;
}
if (!this._modelData) {
@ -830,7 +830,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
if (!this._modelData) {
return false;
}
if (this._configuration.options.get(86 /* EditorOption.readOnly */)) {
if (this._configuration.options.get(87 /* EditorOption.readOnly */)) {
// read only editor => sorry!
return false;
}
@ -841,7 +841,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
if (!this._modelData) {
return false;
}
if (this._configuration.options.get(86 /* EditorOption.readOnly */)) {
if (this._configuration.options.get(87 /* EditorOption.readOnly */)) {
// read only editor => sorry!
return false;
}
@ -852,7 +852,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
if (!this._modelData) {
return false;
}
if (this._configuration.options.get(86 /* EditorOption.readOnly */)) {
if (this._configuration.options.get(87 /* EditorOption.readOnly */)) {
// read only editor => sorry!
return false;
}
@ -938,7 +938,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
}
getLayoutInfo() {
const options = this._configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
return layoutInfo;
}
createOverviewRuler(cssClassName) {
@ -1071,13 +1071,13 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
}
const position = this._modelData.model.validatePosition(rawPosition);
const options = this._configuration.options;
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
const top = CodeEditorWidget._getVerticalOffsetForPosition(this._modelData, position.lineNumber, position.column) - this.getScrollTop();
const left = this._modelData.view.getOffsetForColumn(position.lineNumber, position.column) + layoutInfo.glyphMarginWidth + layoutInfo.lineNumbersWidth + layoutInfo.decorationsWidth - this.getScrollLeft();
return {
top: top,
left: left,
height: options.get(63 /* EditorOption.lineHeight */)
height: options.get(64 /* EditorOption.lineHeight */)
};
}
getOffsetForColumn(lineNumber, column) {
@ -1099,7 +1099,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
this._modelData.view.setAriaOptions(options);
}
applyFontInfo(target) {
applyFontInfo(target, this._configuration.options.get(47 /* EditorOption.fontInfo */));
applyFontInfo(target, this._configuration.options.get(48 /* EditorOption.fontInfo */));
}
setBanner(domNode, domNodeHeight) {
if (this._bannerDomNode && this._domElement.contains(this._bannerDomNode)) {
@ -1146,7 +1146,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
break;
case 6 /* OutgoingViewModelEventKind.CursorStateChanged */: {
if (e.reachedMaxCursorCount) {
const multiCursorLimit = this.getOption(76 /* EditorOption.multiCursorLimit */);
const multiCursorLimit = this.getOption(77 /* EditorOption.multiCursorLimit */);
const message = nls.localize('cursors.maximum', "The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.", multiCursorLimit);
this._notificationService.prompt(Severity.Warning, message, [
{
@ -1424,10 +1424,10 @@ class EditorContextKeysManager extends Disposable {
}
_updateFromConfig() {
const options = this._editor.getOptions();
this._editorTabMovesFocus.set(options.get(137 /* EditorOption.tabFocusMode */));
this._editorReadonly.set(options.get(86 /* EditorOption.readOnly */));
this._inDiffEditor.set(options.get(58 /* EditorOption.inDiffEditor */));
this._editorColumnSelection.set(options.get(19 /* EditorOption.columnSelection */));
this._editorTabMovesFocus.set(TabFocus.getTabFocusMode("editorFocus" /* TabFocusContext.Editor */));
this._editorReadonly.set(options.get(87 /* EditorOption.readOnly */));
this._inDiffEditor.set(options.get(59 /* EditorOption.inDiffEditor */));
this._editorColumnSelection.set(options.get(20 /* EditorOption.columnSelection */));
}
_updateFromSelection() {
const selections = this._editor.getSelections();

View file

@ -328,10 +328,10 @@ let DiffEditorWidget = class DiffEditorWidget extends Disposable {
if (!editor.getModel()) {
return;
}
if (e.hasChanged(47 /* EditorOption.fontInfo */)) {
if (e.hasChanged(48 /* EditorOption.fontInfo */)) {
this._updateDecorationsRunner.schedule();
}
if (e.hasChanged(139 /* EditorOption.wrappingInfo */)) {
if (e.hasChanged(140 /* EditorOption.wrappingInfo */)) {
this._updateDecorationsRunner.cancel();
this._updateDecorations();
}
@ -384,10 +384,10 @@ let DiffEditorWidget = class DiffEditorWidget extends Disposable {
if (!editor.getModel()) {
return;
}
if (e.hasChanged(47 /* EditorOption.fontInfo */)) {
if (e.hasChanged(48 /* EditorOption.fontInfo */)) {
this._updateDecorationsRunner.schedule();
}
if (e.hasChanged(139 /* EditorOption.wrappingInfo */)) {
if (e.hasChanged(140 /* EditorOption.wrappingInfo */)) {
this._updateDecorationsRunner.cancel();
this._updateDecorations();
}
@ -898,7 +898,7 @@ let DiffEditorWidget = class DiffEditorWidget extends Disposable {
const lineChanges = (this._diffComputationResult ? this._diffComputationResult.changes : []);
const foreignOriginal = this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces());
const foreignModified = this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces());
const renderMarginRevertIcon = this._options.renderMarginRevertIcon && !this._modifiedEditor.getOption(86 /* EditorOption.readOnly */);
const renderMarginRevertIcon = this._options.renderMarginRevertIcon && !this._modifiedEditor.getOption(87 /* EditorOption.readOnly */);
const diffDecorations = this._strategy.getEditorsDiffDecorations(lineChanges, this._options.ignoreTrimWhitespace, this._options.renderIndicators, renderMarginRevertIcon, foreignOriginal, foreignModified);
try {
this._currentlyChangingViewZones = true;
@ -1226,10 +1226,10 @@ class ViewZonesComputer {
return (endLineNumber - startLineNumber + 1);
}
getViewZones() {
const originalLineHeight = this._originalEditor.getOption(63 /* EditorOption.lineHeight */);
const modifiedLineHeight = this._modifiedEditor.getOption(63 /* EditorOption.lineHeight */);
const originalHasWrapping = (this._originalEditor.getOption(139 /* EditorOption.wrappingInfo */).wrappingColumn !== -1);
const modifiedHasWrapping = (this._modifiedEditor.getOption(139 /* EditorOption.wrappingInfo */).wrappingColumn !== -1);
const originalLineHeight = this._originalEditor.getOption(64 /* EditorOption.lineHeight */);
const modifiedLineHeight = this._modifiedEditor.getOption(64 /* EditorOption.lineHeight */);
const originalHasWrapping = (this._originalEditor.getOption(140 /* EditorOption.wrappingInfo */).wrappingColumn !== -1);
const modifiedHasWrapping = (this._modifiedEditor.getOption(140 /* EditorOption.wrappingInfo */).wrappingColumn !== -1);
const hasWrapping = (originalHasWrapping || modifiedHasWrapping);
const originalModel = this._originalEditor.getModel();
const originalCoordinatesConverter = this._originalEditor._getViewModel().coordinatesConverter;
@ -1911,19 +1911,19 @@ class InlineViewZonesComputer extends ViewZonesComputer {
_finalize(result) {
const modifiedEditorOptions = this._modifiedEditor.getOptions();
const tabSize = this._modifiedEditor.getModel().getOptions().tabSize;
const fontInfo = modifiedEditorOptions.get(47 /* EditorOption.fontInfo */);
const disableMonospaceOptimizations = modifiedEditorOptions.get(30 /* EditorOption.disableMonospaceOptimizations */);
const fontInfo = modifiedEditorOptions.get(48 /* EditorOption.fontInfo */);
const disableMonospaceOptimizations = modifiedEditorOptions.get(31 /* EditorOption.disableMonospaceOptimizations */);
const typicalHalfwidthCharacterWidth = fontInfo.typicalHalfwidthCharacterWidth;
const scrollBeyondLastColumn = modifiedEditorOptions.get(98 /* EditorOption.scrollBeyondLastColumn */);
const scrollBeyondLastColumn = modifiedEditorOptions.get(99 /* EditorOption.scrollBeyondLastColumn */);
const mightContainNonBasicASCII = this._originalModel.mightContainNonBasicASCII();
const mightContainRTL = this._originalModel.mightContainRTL();
const lineHeight = modifiedEditorOptions.get(63 /* EditorOption.lineHeight */);
const layoutInfo = modifiedEditorOptions.get(138 /* EditorOption.layoutInfo */);
const lineHeight = modifiedEditorOptions.get(64 /* EditorOption.lineHeight */);
const layoutInfo = modifiedEditorOptions.get(139 /* EditorOption.layoutInfo */);
const lineDecorationsWidth = layoutInfo.decorationsWidth;
const stopRenderingLineAfter = modifiedEditorOptions.get(111 /* EditorOption.stopRenderingLineAfter */);
const renderWhitespace = modifiedEditorOptions.get(93 /* EditorOption.renderWhitespace */);
const renderControlCharacters = modifiedEditorOptions.get(88 /* EditorOption.renderControlCharacters */);
const fontLigatures = modifiedEditorOptions.get(48 /* EditorOption.fontLigatures */);
const stopRenderingLineAfter = modifiedEditorOptions.get(112 /* EditorOption.stopRenderingLineAfter */);
const renderWhitespace = modifiedEditorOptions.get(94 /* EditorOption.renderWhitespace */);
const renderControlCharacters = modifiedEditorOptions.get(89 /* EditorOption.renderControlCharacters */);
const fontLigatures = modifiedEditorOptions.get(49 /* EditorOption.fontLigatures */);
const lineBreaks = this._lineBreaksComputer.finalize();
let lineBreakIndex = 0;
for (let i = 0; i < this._pendingLineChange.length; i++) {

View file

@ -457,7 +457,7 @@ let DiffReview = class DiffReview extends Disposable {
container.className = 'diff-review-table';
container.setAttribute('role', 'list');
container.setAttribute('aria-label', 'Difference review. Use "Stage | Unstage | Revert Selected Ranges" commands');
applyFontInfo(container, modifiedOptions.get(47 /* EditorOption.fontInfo */));
applyFontInfo(container, modifiedOptions.get(48 /* EditorOption.fontInfo */));
let minOriginalLine = 0;
let maxOriginalLine = 0;
let minModifiedLine = 0;
@ -517,7 +517,7 @@ let DiffReview = class DiffReview extends Disposable {
// @@ -504,7 +517,7 @@
header.setAttribute('role', 'listitem');
container.appendChild(header);
const lineHeight = modifiedOptions.get(63 /* EditorOption.lineHeight */);
const lineHeight = modifiedOptions.get(64 /* EditorOption.lineHeight */);
let modLine = minModifiedLine;
for (let i = 0, len = diffs.length; i < len; i++) {
const diffEntry = diffs[i];
@ -553,9 +553,9 @@ let DiffReview = class DiffReview extends Disposable {
const modifiedLineStart = diffEntry.modifiedLineStart;
const modifiedLineEnd = diffEntry.modifiedLineEnd;
const cnt = Math.max(modifiedLineEnd - modifiedLineStart, originalLineEnd - originalLineStart);
const originalLayoutInfo = originalOptions.get(138 /* EditorOption.layoutInfo */);
const originalLayoutInfo = originalOptions.get(139 /* EditorOption.layoutInfo */);
const originalLineNumbersWidth = originalLayoutInfo.glyphMarginWidth + originalLayoutInfo.lineNumbersWidth;
const modifiedLayoutInfo = modifiedOptions.get(138 /* EditorOption.layoutInfo */);
const modifiedLayoutInfo = modifiedOptions.get(139 /* EditorOption.layoutInfo */);
const modifiedLineNumbersWidth = 10 + modifiedLayoutInfo.glyphMarginWidth + modifiedLayoutInfo.lineNumbersWidth;
for (let i = 0; i <= cnt; i++) {
const originalLine = (originalLineStart === 0 ? 0 : originalLineStart + i);
@ -650,11 +650,11 @@ let DiffReview = class DiffReview extends Disposable {
}
static _renderLine(model, options, tabSize, lineNumber, languageIdCodec) {
const lineContent = model.getLineContent(lineNumber);
const fontInfo = options.get(47 /* EditorOption.fontInfo */);
const fontInfo = options.get(48 /* EditorOption.fontInfo */);
const lineTokens = LineTokens.createEmpty(lineContent, languageIdCodec);
const isBasicASCII = ViewLineRenderingData.isBasicASCII(lineContent, model.mightContainNonBasicASCII());
const containsRTL = ViewLineRenderingData.containsRTL(lineContent, isBasicASCII, model.mightContainRTL());
const r = renderViewLine(new RenderLineInput((fontInfo.isMonospace && !options.get(30 /* EditorOption.disableMonospaceOptimizations */)), fontInfo.canUseHalfwidthRightwardsArrow, lineContent, false, isBasicASCII, containsRTL, 0, lineTokens, [], tabSize, 0, fontInfo.spaceWidth, fontInfo.middotWidth, fontInfo.wsmiddotWidth, options.get(111 /* EditorOption.stopRenderingLineAfter */), options.get(93 /* EditorOption.renderWhitespace */), options.get(88 /* EditorOption.renderControlCharacters */), options.get(48 /* EditorOption.fontLigatures */) !== EditorFontLigatures.OFF, null));
const r = renderViewLine(new RenderLineInput((fontInfo.isMonospace && !options.get(31 /* EditorOption.disableMonospaceOptimizations */)), fontInfo.canUseHalfwidthRightwardsArrow, lineContent, false, isBasicASCII, containsRTL, 0, lineTokens, [], tabSize, 0, fontInfo.spaceWidth, fontInfo.middotWidth, fontInfo.wsmiddotWidth, options.get(112 /* EditorOption.stopRenderingLineAfter */), options.get(94 /* EditorOption.renderWhitespace */), options.get(89 /* EditorOption.renderControlCharacters */), options.get(49 /* EditorOption.fontLigatures */) !== EditorFontLigatures.OFF, null));
return r.html;
}
};

View file

@ -23,8 +23,8 @@ import { IAccessibilityService } from '../../../platform/accessibility/common/ac
import { ILanguageConfigurationService } from '../../common/languages/languageConfigurationRegistry.js';
import { ILanguageFeaturesService } from '../../common/services/languageFeatures.js';
let EmbeddedCodeEditorWidget = class EmbeddedCodeEditorWidget extends CodeEditorWidget {
constructor(domElement, options, parentEditor, instantiationService, codeEditorService, commandService, contextKeyService, themeService, notificationService, accessibilityService, languageConfigurationService, languageFeaturesService) {
super(domElement, Object.assign(Object.assign({}, parentEditor.getRawOptions()), { overflowWidgetsDomNode: parentEditor.getOverflowWidgetsDomNode() }), {}, instantiationService, codeEditorService, commandService, contextKeyService, themeService, notificationService, accessibilityService, languageConfigurationService, languageFeaturesService);
constructor(domElement, options, codeEditorWidgetOptions, parentEditor, instantiationService, codeEditorService, commandService, contextKeyService, themeService, notificationService, accessibilityService, languageConfigurationService, languageFeaturesService) {
super(domElement, Object.assign(Object.assign({}, parentEditor.getRawOptions()), { overflowWidgetsDomNode: parentEditor.getOverflowWidgetsDomNode() }), codeEditorWidgetOptions, instantiationService, codeEditorService, commandService, contextKeyService, themeService, notificationService, accessibilityService, languageConfigurationService, languageFeaturesService);
this._parentEditor = parentEditor;
this._overwriteOptions = options;
// Overwrite parent's options
@ -44,14 +44,14 @@ let EmbeddedCodeEditorWidget = class EmbeddedCodeEditorWidget extends CodeEditor
}
};
EmbeddedCodeEditorWidget = __decorate([
__param(3, IInstantiationService),
__param(4, ICodeEditorService),
__param(5, ICommandService),
__param(6, IContextKeyService),
__param(7, IThemeService),
__param(8, INotificationService),
__param(9, IAccessibilityService),
__param(10, ILanguageConfigurationService),
__param(11, ILanguageFeaturesService)
__param(4, IInstantiationService),
__param(5, ICodeEditorService),
__param(6, ICommandService),
__param(7, IContextKeyService),
__param(8, IThemeService),
__param(9, INotificationService),
__param(10, IAccessibilityService),
__param(11, ILanguageConfigurationService),
__param(12, ILanguageFeaturesService)
], EmbeddedCodeEditorWidget);
export { EmbeddedCodeEditorWidget };

View file

@ -47,7 +47,7 @@ export class InlineDiffMargin extends Disposable {
this._diffActions = document.createElement('div');
this._diffActions.className = ThemeIcon.asClassName(Codicon.lightBulb) + ' lightbulb-glyph';
this._diffActions.style.position = 'absolute';
const lineHeight = editor.getOption(63 /* EditorOption.lineHeight */);
const lineHeight = editor.getOption(64 /* EditorOption.lineHeight */);
const lineFeed = editor.getModel().getEOL();
this._diffActions.style.right = '0px';
this._diffActions.style.visibility = 'hidden';
@ -86,7 +86,7 @@ export class InlineDiffMargin extends Disposable {
}));
actions.push(copyLineAction);
}
const readOnly = editor.getOption(86 /* EditorOption.readOnly */);
const readOnly = editor.getOption(87 /* EditorOption.readOnly */);
if (!readOnly) {
actions.push(new Action('diff.inline.revertChange', nls.localize('diff.inline.revertChange.label', "Revert this change"), undefined, true, () => __awaiter(this, void 0, void 0, function* () {
const range = new Range(diff.originalStartLineNumber, 1, diff.originalEndLineNumber, diff.originalModel.getLineMaxColumn(diff.originalEndLineNumber));

View file

@ -93,7 +93,13 @@ const editorConfiguration = Object.assign(Object.assign({}, editorConfigurationB
'editor.experimental.asyncTokenization': {
type: 'boolean',
default: false,
description: nls.localize('editor.experimental.asyncTokenization', "Controls whether the tokenization should happen asynchronously on a web worker.")
description: nls.localize('editor.experimental.asyncTokenization', "Controls whether the tokenization should happen asynchronously on a web worker."),
tags: ['experimental'],
},
'editor.experimental.asyncTokenizationLogging': {
type: 'boolean',
default: false,
description: nls.localize('editor.experimental.asyncTokenizationLogging', "Controls whether async tokenization should be logged. For debugging only."),
},
'editor.language.brackets': {
type: ['array', 'null'],

View file

@ -324,7 +324,7 @@ class EditorComments extends BaseEditorOption {
insertSpace: true,
ignoreEmptyLines: true,
};
super(20 /* EditorOption.comments */, 'comments', defaults, {
super(21 /* EditorOption.comments */, 'comments', defaults, {
'editor.comments.insertSpace': {
type: 'boolean',
default: defaults.insertSpace,
@ -403,26 +403,26 @@ function _cursorStyleFromString(cursorStyle) {
//#region editorClassName
class EditorClassName extends ComputedEditorOption {
constructor() {
super(135 /* EditorOption.editorClassName */);
super(136 /* EditorOption.editorClassName */);
}
compute(env, options, _) {
const classNames = ['monaco-editor'];
if (options.get(36 /* EditorOption.extraEditorClassName */)) {
classNames.push(options.get(36 /* EditorOption.extraEditorClassName */));
if (options.get(37 /* EditorOption.extraEditorClassName */)) {
classNames.push(options.get(37 /* EditorOption.extraEditorClassName */));
}
if (env.extraEditorClassName) {
classNames.push(env.extraEditorClassName);
}
if (options.get(70 /* EditorOption.mouseStyle */) === 'default') {
if (options.get(71 /* EditorOption.mouseStyle */) === 'default') {
classNames.push('mouse-default');
}
else if (options.get(70 /* EditorOption.mouseStyle */) === 'copy') {
else if (options.get(71 /* EditorOption.mouseStyle */) === 'copy') {
classNames.push('mouse-copy');
}
if (options.get(105 /* EditorOption.showUnused */)) {
if (options.get(106 /* EditorOption.showUnused */)) {
classNames.push('showUnused');
}
if (options.get(133 /* EditorOption.showDeprecated */)) {
if (options.get(134 /* EditorOption.showDeprecated */)) {
classNames.push('showDeprecated');
}
return classNames.join(' ');
@ -432,7 +432,7 @@ class EditorClassName extends ComputedEditorOption {
//#region emptySelectionClipboard
class EditorEmptySelectionClipboard extends EditorBooleanOption {
constructor() {
super(34 /* EditorOption.emptySelectionClipboard */, 'emptySelectionClipboard', true, { description: nls.localize('emptySelectionClipboard', "Controls whether copying without a selection copies the current line.") });
super(35 /* EditorOption.emptySelectionClipboard */, 'emptySelectionClipboard', true, { description: nls.localize('emptySelectionClipboard', "Controls whether copying without a selection copies the current line.") });
}
compute(env, options, value) {
return value && env.emptySelectionClipboard;
@ -448,7 +448,7 @@ class EditorFind extends BaseEditorOption {
addExtraSpaceOnTop: true,
loop: true
};
super(38 /* EditorOption.find */, 'find', defaults, {
super(39 /* EditorOption.find */, 'find', defaults, {
'editor.find.cursorMoveOnType': {
type: 'boolean',
default: defaults.cursorMoveOnType,
@ -520,7 +520,7 @@ class EditorFind extends BaseEditorOption {
*/
class EditorFontLigatures extends BaseEditorOption {
constructor() {
super(48 /* EditorOption.fontLigatures */, 'fontLigatures', EditorFontLigatures.OFF, {
super(49 /* EditorOption.fontLigatures */, 'fontLigatures', EditorFontLigatures.OFF, {
anyOf: [
{
type: 'boolean',
@ -564,7 +564,7 @@ export { EditorFontLigatures };
*/
class EditorFontVariations extends BaseEditorOption {
constructor() {
super(51 /* EditorOption.fontVariations */, 'fontVariations', EditorFontVariations.OFF, {
super(52 /* EditorOption.fontVariations */, 'fontVariations', EditorFontVariations.OFF, {
anyOf: [
{
type: 'boolean',
@ -612,7 +612,7 @@ export { EditorFontVariations };
//#region fontInfo
class EditorFontInfo extends ComputedEditorOption {
constructor() {
super(47 /* EditorOption.fontInfo */);
super(48 /* EditorOption.fontInfo */);
}
compute(env, options, _) {
return env.fontInfo;
@ -622,7 +622,7 @@ class EditorFontInfo extends ComputedEditorOption {
//#region fontSize
class EditorFontSize extends SimpleEditorOption {
constructor() {
super(49 /* EditorOption.fontSize */, 'fontSize', EDITOR_FONT_DEFAULTS.fontSize, {
super(50 /* EditorOption.fontSize */, 'fontSize', EDITOR_FONT_DEFAULTS.fontSize, {
type: 'number',
minimum: 6,
maximum: 100,
@ -647,7 +647,7 @@ class EditorFontSize extends SimpleEditorOption {
//#region fontWeight
class EditorFontWeight extends BaseEditorOption {
constructor() {
super(50 /* EditorOption.fontWeight */, 'fontWeight', EDITOR_FONT_DEFAULTS.fontWeight, {
super(51 /* EditorOption.fontWeight */, 'fontWeight', EDITOR_FONT_DEFAULTS.fontWeight, {
anyOf: [
{
type: 'number',
@ -703,7 +703,7 @@ class EditorGoToLocation extends BaseEditorOption {
]
};
const alternativeCommandOptions = ['', 'editor.action.referenceSearch.trigger', 'editor.action.goToReferences', 'editor.action.peekImplementation', 'editor.action.goToImplementation', 'editor.action.peekTypeDefinition', 'editor.action.goToTypeDefinition', 'editor.action.peekDeclaration', 'editor.action.revealDeclaration', 'editor.action.peekDefinition', 'editor.action.revealDefinitionAside', 'editor.action.revealDefinition'];
super(55 /* EditorOption.gotoLocation */, 'gotoLocation', defaults, {
super(56 /* EditorOption.gotoLocation */, 'gotoLocation', defaults, {
'editor.gotoLocation.multiple': {
deprecationMessage: nls.localize('editor.gotoLocation.multiple.deprecated', "This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead."),
},
@ -773,7 +773,7 @@ class EditorHover extends BaseEditorOption {
sticky: true,
above: true,
};
super(57 /* EditorOption.hover */, 'hover', defaults, {
super(58 /* EditorOption.hover */, 'hover', defaults, {
'editor.hover.enabled': {
type: 'boolean',
default: defaults.enabled,
@ -816,7 +816,7 @@ class EditorHover extends BaseEditorOption {
*/
export class EditorLayoutInfoComputer extends ComputedEditorOption {
constructor() {
super(138 /* EditorOption.layoutInfo */);
super(139 /* EditorOption.layoutInfo */);
}
compute(env, options, _) {
return EditorLayoutInfoComputer.computeLayout(options, {
@ -1014,25 +1014,25 @@ export class EditorLayoutInfoComputer extends ComputedEditorOption {
const maxDigitWidth = env.maxDigitWidth;
const pixelRatio = env.pixelRatio;
const viewLineCount = env.viewLineCount;
const wordWrapOverride2 = options.get(130 /* EditorOption.wordWrapOverride2 */);
const wordWrapOverride1 = (wordWrapOverride2 === 'inherit' ? options.get(129 /* EditorOption.wordWrapOverride1 */) : wordWrapOverride2);
const wordWrap = (wordWrapOverride1 === 'inherit' ? options.get(125 /* EditorOption.wordWrap */) : wordWrapOverride1);
const wordWrapColumn = options.get(128 /* EditorOption.wordWrapColumn */);
const wordWrapOverride2 = options.get(131 /* EditorOption.wordWrapOverride2 */);
const wordWrapOverride1 = (wordWrapOverride2 === 'inherit' ? options.get(130 /* EditorOption.wordWrapOverride1 */) : wordWrapOverride2);
const wordWrap = (wordWrapOverride1 === 'inherit' ? options.get(126 /* EditorOption.wordWrap */) : wordWrapOverride1);
const wordWrapColumn = options.get(129 /* EditorOption.wordWrapColumn */);
const isDominatedByLongLines = env.isDominatedByLongLines;
const showGlyphMargin = options.get(54 /* EditorOption.glyphMargin */);
const showLineNumbers = (options.get(64 /* EditorOption.lineNumbers */).renderType !== 0 /* RenderLineNumbersType.Off */);
const lineNumbersMinChars = options.get(65 /* EditorOption.lineNumbersMinChars */);
const scrollBeyondLastLine = options.get(99 /* EditorOption.scrollBeyondLastLine */);
const padding = options.get(80 /* EditorOption.padding */);
const minimap = options.get(69 /* EditorOption.minimap */);
const scrollbar = options.get(97 /* EditorOption.scrollbar */);
const showGlyphMargin = options.get(55 /* EditorOption.glyphMargin */);
const showLineNumbers = (options.get(65 /* EditorOption.lineNumbers */).renderType !== 0 /* RenderLineNumbersType.Off */);
const lineNumbersMinChars = options.get(66 /* EditorOption.lineNumbersMinChars */);
const scrollBeyondLastLine = options.get(100 /* EditorOption.scrollBeyondLastLine */);
const padding = options.get(81 /* EditorOption.padding */);
const minimap = options.get(70 /* EditorOption.minimap */);
const scrollbar = options.get(98 /* EditorOption.scrollbar */);
const verticalScrollbarWidth = scrollbar.verticalScrollbarSize;
const verticalScrollbarHasArrows = scrollbar.verticalHasArrows;
const scrollbarArrowSize = scrollbar.arrowSize;
const horizontalScrollbarHeight = scrollbar.horizontalScrollbarSize;
const folding = options.get(40 /* EditorOption.folding */);
const showFoldingDecoration = options.get(104 /* EditorOption.showFoldingControls */) !== 'never';
let lineDecorationsWidth = options.get(62 /* EditorOption.lineDecorationsWidth */);
const folding = options.get(41 /* EditorOption.folding */);
const showFoldingDecoration = options.get(105 /* EditorOption.showFoldingControls */) !== 'never';
let lineDecorationsWidth = options.get(63 /* EditorOption.lineDecorationsWidth */);
if (folding && showFoldingDecoration) {
lineDecorationsWidth += 16;
}
@ -1128,7 +1128,7 @@ export class EditorLayoutInfoComputer extends ComputedEditorOption {
//#region WrappingStrategy
class WrappingStrategy extends BaseEditorOption {
constructor() {
super(132 /* EditorOption.wrappingStrategy */, 'wrappingStrategy', 'simple', {
super(133 /* EditorOption.wrappingStrategy */, 'wrappingStrategy', 'simple', {
'editor.wrappingStrategy': {
enumDescriptions: [
nls.localize('wrappingStrategy.simple', "Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),
@ -1157,7 +1157,7 @@ class WrappingStrategy extends BaseEditorOption {
class EditorLightbulb extends BaseEditorOption {
constructor() {
const defaults = { enabled: true };
super(61 /* EditorOption.lightbulb */, 'lightbulb', defaults, {
super(62 /* EditorOption.lightbulb */, 'lightbulb', defaults, {
'editor.lightbulb.enabled': {
type: 'boolean',
default: defaults.enabled,
@ -1177,19 +1177,25 @@ class EditorLightbulb extends BaseEditorOption {
}
class EditorStickyScroll extends BaseEditorOption {
constructor() {
const defaults = { enabled: false, maxLineCount: 5 };
super(109 /* EditorOption.stickyScroll */, 'stickyScroll', defaults, {
const defaults = { enabled: false, maxLineCount: 5, defaultModel: 'outlineModel' };
super(110 /* EditorOption.stickyScroll */, 'stickyScroll', defaults, {
'editor.stickyScroll.enabled': {
type: 'boolean',
default: defaults.enabled,
description: nls.localize('editor.stickyScroll', "Shows the nested current scopes during the scroll at the top of the editor.")
description: nls.localize('editor.stickyScroll.enabled', "Shows the nested current scopes during the scroll at the top of the editor.")
},
'editor.stickyScroll.maxLineCount': {
type: 'number',
default: defaults.maxLineCount,
minimum: 1,
maximum: 10,
description: nls.localize('editor.stickyScroll.', "Defines the maximum number of sticky lines to show.")
description: nls.localize('editor.stickyScroll.maxLineCount', "Defines the maximum number of sticky lines to show.")
},
'editor.stickyScroll.defaultModel': {
type: 'string',
enum: ['outlineModel', 'foldingProviderModel', 'indentationModel'],
default: defaults.defaultModel,
description: nls.localize('editor.stickyScroll.defaultModel', "Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")
},
});
}
@ -1201,13 +1207,14 @@ class EditorStickyScroll extends BaseEditorOption {
return {
enabled: boolean(input.enabled, this.defaultValue.enabled),
maxLineCount: EditorIntOption.clampedInt(input.maxLineCount, this.defaultValue.maxLineCount, 1, 10),
defaultModel: stringSet(input.defaultModel, this.defaultValue.defaultModel, ['outlineModel', 'foldingProviderModel', 'indentationModel']),
};
}
}
class EditorInlayHints extends BaseEditorOption {
constructor() {
const defaults = { enabled: 'on', fontSize: 0, fontFamily: '', padding: false };
super(134 /* EditorOption.inlayHints */, 'inlayHints', defaults, {
super(135 /* EditorOption.inlayHints */, 'inlayHints', defaults, {
'editor.inlayHints.enabled': {
type: 'string',
default: defaults.enabled,
@ -1257,7 +1264,7 @@ class EditorInlayHints extends BaseEditorOption {
//#region lineDecorationsWidth
class EditorLineDecorationsWidth extends BaseEditorOption {
constructor() {
super(62 /* EditorOption.lineDecorationsWidth */, 'lineDecorationsWidth', 10);
super(63 /* EditorOption.lineDecorationsWidth */, 'lineDecorationsWidth', 10);
}
validate(input) {
if (typeof input === 'string' && /^\d+(\.\d+)?ch$/.test(input)) {
@ -1282,7 +1289,7 @@ class EditorLineDecorationsWidth extends BaseEditorOption {
//#region lineHeight
class EditorLineHeight extends EditorFloatOption {
constructor() {
super(63 /* EditorOption.lineHeight */, 'lineHeight', EDITOR_FONT_DEFAULTS.lineHeight, x => EditorFloatOption.clamp(x, 0, 150), { markdownDescription: nls.localize('lineHeight', "Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.") });
super(64 /* EditorOption.lineHeight */, 'lineHeight', EDITOR_FONT_DEFAULTS.lineHeight, x => EditorFloatOption.clamp(x, 0, 150), { markdownDescription: nls.localize('lineHeight', "Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.") });
}
compute(env, options, value) {
// The lineHeight is computed from the fontSize if it is 0.
@ -1303,7 +1310,7 @@ class EditorMinimap extends BaseEditorOption {
maxColumn: 120,
scale: 1,
};
super(69 /* EditorOption.minimap */, 'minimap', defaults, {
super(70 /* EditorOption.minimap */, 'minimap', defaults, {
'editor.minimap.enabled': {
type: 'boolean',
default: defaults.enabled,
@ -1384,7 +1391,7 @@ function _multiCursorModifierFromString(multiCursorModifier) {
}
class EditorPadding extends BaseEditorOption {
constructor() {
super(80 /* EditorOption.padding */, 'padding', { top: 0, bottom: 0 }, {
super(81 /* EditorOption.padding */, 'padding', { top: 0, bottom: 0 }, {
'editor.padding.top': {
type: 'number',
default: 0,
@ -1418,7 +1425,7 @@ class EditorParameterHints extends BaseEditorOption {
enabled: true,
cycle: true
};
super(81 /* EditorOption.parameterHints */, 'parameterHints', defaults, {
super(82 /* EditorOption.parameterHints */, 'parameterHints', defaults, {
'editor.parameterHints.enabled': {
type: 'boolean',
default: defaults.enabled,
@ -1446,7 +1453,7 @@ class EditorParameterHints extends BaseEditorOption {
//#region pixelRatio
class EditorPixelRatio extends ComputedEditorOption {
constructor() {
super(136 /* EditorOption.pixelRatio */);
super(137 /* EditorOption.pixelRatio */);
}
compute(env, options, _) {
return env.pixelRatio;
@ -1467,7 +1474,7 @@ class EditorQuickSuggestions extends BaseEditorOption {
enumDescriptions: [nls.localize('on', "Quick suggestions show inside the suggest widget"), nls.localize('inline', "Quick suggestions show as ghost text"), nls.localize('off', "Quick suggestions are disabled")]
}
];
super(84 /* EditorOption.quickSuggestions */, 'quickSuggestions', defaults, {
super(85 /* EditorOption.quickSuggestions */, 'quickSuggestions', defaults, {
type: 'object',
additionalProperties: false,
properties: {
@ -1534,7 +1541,7 @@ class EditorQuickSuggestions extends BaseEditorOption {
}
class EditorRenderLineNumbersOption extends BaseEditorOption {
constructor() {
super(64 /* EditorOption.lineNumbers */, 'lineNumbers', { renderType: 1 /* RenderLineNumbersType.On */, renderFn: null }, {
super(65 /* EditorOption.lineNumbers */, 'lineNumbers', { renderType: 1 /* RenderLineNumbersType.On */, renderFn: null }, {
type: 'string',
enum: ['off', 'on', 'relative', 'interval'],
enumDescriptions: [
@ -1580,9 +1587,9 @@ class EditorRenderLineNumbersOption extends BaseEditorOption {
* @internal
*/
export function filterValidationDecorations(options) {
const renderValidationDecorations = options.get(92 /* EditorOption.renderValidationDecorations */);
const renderValidationDecorations = options.get(93 /* EditorOption.renderValidationDecorations */);
if (renderValidationDecorations === 'editable') {
return options.get(86 /* EditorOption.readOnly */);
return options.get(87 /* EditorOption.readOnly */);
}
return renderValidationDecorations === 'on' ? false : true;
}
@ -1590,7 +1597,7 @@ class EditorRulers extends BaseEditorOption {
constructor() {
const defaults = [];
const columnSchema = { type: 'number', description: nls.localize('rulers.size', "Number of monospace characters at which this editor ruler will render.") };
super(96 /* EditorOption.rulers */, 'rulers', defaults, {
super(97 /* EditorOption.rulers */, 'rulers', defaults, {
type: 'array',
items: {
anyOf: [
@ -1665,7 +1672,7 @@ class EditorScrollbar extends BaseEditorOption {
alwaysConsumeMouseWheel: true,
scrollByPage: false
};
super(97 /* EditorOption.scrollbar */, 'scrollbar', defaults, {
super(98 /* EditorOption.scrollbar */, 'scrollbar', defaults, {
'editor.scrollbar.vertical': {
type: 'string',
enum: ['auto', 'visible', 'hidden'],
@ -1756,7 +1763,7 @@ class UnicodeHighlight extends BaseEditorOption {
allowedCharacters: {},
allowedLocales: { _os: true, _vscode: true },
};
super(119 /* EditorOption.unicodeHighlighting */, 'unicodeHighlight', defaults, {
super(120 /* EditorOption.unicodeHighlighting */, 'unicodeHighlight', defaults, {
[unicodeHighlightConfigKeys.nonBasicASCII]: {
restricted: true,
type: ['boolean', 'string'],
@ -1869,8 +1876,9 @@ class InlineEditorSuggest extends BaseEditorOption {
enabled: true,
mode: 'subwordSmart',
showToolbar: 'onHover',
suppressSuggestions: false,
};
super(59 /* EditorOption.inlineSuggest */, 'inlineSuggest', defaults, {
super(60 /* EditorOption.inlineSuggest */, 'inlineSuggest', defaults, {
'editor.inlineSuggest.enabled': {
type: 'boolean',
default: defaults.enabled,
@ -1886,6 +1894,11 @@ class InlineEditorSuggest extends BaseEditorOption {
],
description: nls.localize('inlineSuggest.showToolbar', "Controls when to show the inline suggestion toolbar."),
},
'editor.inlineSuggest.suppressSuggestions': {
type: 'boolean',
default: defaults.suppressSuggestions,
description: nls.localize('inlineSuggest.suppressSuggestions', "Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")
},
});
}
validate(_input) {
@ -1897,6 +1910,7 @@ class InlineEditorSuggest extends BaseEditorOption {
enabled: boolean(input.enabled, this.defaultValue.enabled),
mode: stringSet(input.mode, this.defaultValue.mode, ['prefix', 'subword', 'subwordSmart']),
showToolbar: stringSet(input.showToolbar, this.defaultValue.showToolbar, ['always', 'onHover']),
suppressSuggestions: boolean(input.suppressSuggestions, this.defaultValue.suppressSuggestions),
};
}
}
@ -1909,7 +1923,7 @@ class BracketPairColorization extends BaseEditorOption {
enabled: EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.enabled,
independentColorPoolPerBracketType: EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.independentColorPoolPerBracketType,
};
super(12 /* EditorOption.bracketPairColorization */, 'bracketPairColorization', defaults, {
super(13 /* EditorOption.bracketPairColorization */, 'bracketPairColorization', defaults, {
'editor.bracketPairColorization.enabled': {
type: 'boolean',
default: defaults.enabled,
@ -1945,7 +1959,7 @@ class GuideOptions extends BaseEditorOption {
indentation: true,
highlightActiveIndentation: true
};
super(13 /* EditorOption.guides */, 'guides', defaults, {
super(14 /* EditorOption.guides */, 'guides', defaults, {
'editor.guides.bracketPairs': {
type: ['boolean', 'string'],
enum: [true, 'active', false],
@ -2056,7 +2070,7 @@ class EditorSuggest extends BaseEditorOption {
showUsers: true,
showIssues: true,
};
super(112 /* EditorOption.suggest */, 'suggest', defaults, {
super(113 /* EditorOption.suggest */, 'suggest', defaults, {
'editor.suggest.insertMode': {
type: 'string',
enum: ['insert', 'replace'],
@ -2330,7 +2344,7 @@ class EditorSuggest extends BaseEditorOption {
}
class SmartSelect extends BaseEditorOption {
constructor() {
super(107 /* EditorOption.smartSelect */, 'smartSelect', {
super(108 /* EditorOption.smartSelect */, 'smartSelect', {
selectLeadingAndTrailingWhitespace: true
}, {
'editor.smartSelect.selectLeadingAndTrailingWhitespace': {
@ -2351,7 +2365,7 @@ class SmartSelect extends BaseEditorOption {
}
class WrappingIndentOption extends BaseEditorOption {
constructor() {
super(131 /* EditorOption.wrappingIndent */, 'wrappingIndent', 1 /* WrappingIndent.Same */, {
super(132 /* EditorOption.wrappingIndent */, 'wrappingIndent', 1 /* WrappingIndent.Same */, {
'editor.wrappingIndent': {
type: 'string',
enum: ['none', 'same', 'indent', 'deepIndent'],
@ -2387,10 +2401,10 @@ class WrappingIndentOption extends BaseEditorOption {
}
class EditorWrappingInfoComputer extends ComputedEditorOption {
constructor() {
super(139 /* EditorOption.wrappingInfo */);
super(140 /* EditorOption.wrappingInfo */);
}
compute(env, options, _) {
const layoutInfo = options.get(138 /* EditorOption.layoutInfo */);
const layoutInfo = options.get(139 /* EditorOption.layoutInfo */);
return {
isDominatedByLongLines: env.isDominatedByLongLines,
isWordWrapMinified: layoutInfo.isWordWrapMinified,
@ -2402,7 +2416,7 @@ class EditorWrappingInfoComputer extends ComputedEditorOption {
class EditorDropIntoEditor extends BaseEditorOption {
constructor() {
const defaults = { enabled: true };
super(33 /* EditorOption.dropIntoEditor */, 'dropIntoEditor', defaults, {
super(34 /* EditorOption.dropIntoEditor */, 'dropIntoEditor', defaults, {
'editor.dropIntoEditor.enabled': {
type: 'boolean',
default: defaults.enabled,
@ -2458,6 +2472,10 @@ export const EditorOptions = {
tags: ['accessibility']
})),
ariaLabel: register(new EditorStringOption(4 /* EditorOption.ariaLabel */, 'ariaLabel', nls.localize('editorViewAccessibleLabel', "Editor content"))),
screenReaderAnnounceInlineSuggestion: register(new EditorBooleanOption(6 /* EditorOption.screenReaderAnnounceInlineSuggestion */, 'screenReaderAnnounceInlineSuggestion', false, {
description: nls.localize('screenReaderAnnounceInlineSuggestion', "Control whether inline suggestions are announced by a screen reader. Note that this does not work on macOS with VoiceOver."),
tags: ['accessibility']
})),
autoClosingBrackets: register(new EditorStringEnumOption(5 /* EditorOption.autoClosingBrackets */, 'autoClosingBrackets', 'languageDefined', ['always', 'languageDefined', 'beforeWhitespace', 'never'], {
enumDescriptions: [
'',
@ -2467,7 +2485,7 @@ export const EditorOptions = {
],
description: nls.localize('autoClosingBrackets', "Controls whether the editor should automatically close brackets after the user adds an opening bracket.")
})),
autoClosingDelete: register(new EditorStringEnumOption(6 /* EditorOption.autoClosingDelete */, 'autoClosingDelete', 'auto', ['always', 'auto', 'never'], {
autoClosingDelete: register(new EditorStringEnumOption(7 /* EditorOption.autoClosingDelete */, 'autoClosingDelete', 'auto', ['always', 'auto', 'never'], {
enumDescriptions: [
'',
nls.localize('editor.autoClosingDelete.auto', "Remove adjacent closing quotes or brackets only if they were automatically inserted."),
@ -2475,7 +2493,7 @@ export const EditorOptions = {
],
description: nls.localize('autoClosingDelete', "Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")
})),
autoClosingOvertype: register(new EditorStringEnumOption(7 /* EditorOption.autoClosingOvertype */, 'autoClosingOvertype', 'auto', ['always', 'auto', 'never'], {
autoClosingOvertype: register(new EditorStringEnumOption(8 /* EditorOption.autoClosingOvertype */, 'autoClosingOvertype', 'auto', ['always', 'auto', 'never'], {
enumDescriptions: [
'',
nls.localize('editor.autoClosingOvertype.auto', "Type over closing quotes or brackets only if they were automatically inserted."),
@ -2483,7 +2501,7 @@ export const EditorOptions = {
],
description: nls.localize('autoClosingOvertype', "Controls whether the editor should type over closing quotes or brackets.")
})),
autoClosingQuotes: register(new EditorStringEnumOption(8 /* EditorOption.autoClosingQuotes */, 'autoClosingQuotes', 'languageDefined', ['always', 'languageDefined', 'beforeWhitespace', 'never'], {
autoClosingQuotes: register(new EditorStringEnumOption(9 /* EditorOption.autoClosingQuotes */, 'autoClosingQuotes', 'languageDefined', ['always', 'languageDefined', 'beforeWhitespace', 'never'], {
enumDescriptions: [
'',
nls.localize('editor.autoClosingQuotes.languageDefined', "Use language configurations to determine when to autoclose quotes."),
@ -2492,7 +2510,7 @@ export const EditorOptions = {
],
description: nls.localize('autoClosingQuotes', "Controls whether the editor should automatically close quotes after the user adds an opening quote.")
})),
autoIndent: register(new EditorEnumOption(9 /* EditorOption.autoIndent */, 'autoIndent', 4 /* EditorAutoIndentStrategy.Full */, 'full', ['none', 'keep', 'brackets', 'advanced', 'full'], _autoIndentFromString, {
autoIndent: register(new EditorEnumOption(10 /* EditorOption.autoIndent */, 'autoIndent', 4 /* EditorAutoIndentStrategy.Full */, 'full', ['none', 'keep', 'brackets', 'advanced', 'full'], _autoIndentFromString, {
enumDescriptions: [
nls.localize('editor.autoIndent.none', "The editor will not insert indentation automatically."),
nls.localize('editor.autoIndent.keep', "The editor will keep the current line's indentation."),
@ -2502,8 +2520,8 @@ export const EditorOptions = {
],
description: nls.localize('autoIndent', "Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")
})),
automaticLayout: register(new EditorBooleanOption(10 /* EditorOption.automaticLayout */, 'automaticLayout', false)),
autoSurround: register(new EditorStringEnumOption(11 /* EditorOption.autoSurround */, 'autoSurround', 'languageDefined', ['languageDefined', 'quotes', 'brackets', 'never'], {
automaticLayout: register(new EditorBooleanOption(11 /* EditorOption.automaticLayout */, 'automaticLayout', false)),
autoSurround: register(new EditorStringEnumOption(12 /* EditorOption.autoSurround */, 'autoSurround', 'languageDefined', ['languageDefined', 'quotes', 'brackets', 'never'], {
enumDescriptions: [
nls.localize('editor.autoSurround.languageDefined', "Use language configurations to determine when to automatically surround selections."),
nls.localize('editor.autoSurround.quotes', "Surround with quotes but not brackets."),
@ -2514,26 +2532,26 @@ export const EditorOptions = {
})),
bracketPairColorization: register(new BracketPairColorization()),
bracketPairGuides: register(new GuideOptions()),
stickyTabStops: register(new EditorBooleanOption(110 /* EditorOption.stickyTabStops */, 'stickyTabStops', false, { description: nls.localize('stickyTabStops', "Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.") })),
codeLens: register(new EditorBooleanOption(14 /* EditorOption.codeLens */, 'codeLens', true, { description: nls.localize('codeLens', "Controls whether the editor shows CodeLens.") })),
codeLensFontFamily: register(new EditorStringOption(15 /* EditorOption.codeLensFontFamily */, 'codeLensFontFamily', '', { description: nls.localize('codeLensFontFamily', "Controls the font family for CodeLens.") })),
codeLensFontSize: register(new EditorIntOption(16 /* EditorOption.codeLensFontSize */, 'codeLensFontSize', 0, 0, 100, {
stickyTabStops: register(new EditorBooleanOption(111 /* EditorOption.stickyTabStops */, 'stickyTabStops', false, { description: nls.localize('stickyTabStops', "Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.") })),
codeLens: register(new EditorBooleanOption(15 /* EditorOption.codeLens */, 'codeLens', true, { description: nls.localize('codeLens', "Controls whether the editor shows CodeLens.") })),
codeLensFontFamily: register(new EditorStringOption(16 /* EditorOption.codeLensFontFamily */, 'codeLensFontFamily', '', { description: nls.localize('codeLensFontFamily', "Controls the font family for CodeLens.") })),
codeLensFontSize: register(new EditorIntOption(17 /* EditorOption.codeLensFontSize */, 'codeLensFontSize', 0, 0, 100, {
type: 'number',
default: 0,
minimum: 0,
maximum: 100,
markdownDescription: nls.localize('codeLensFontSize', "Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")
})),
colorDecorators: register(new EditorBooleanOption(17 /* EditorOption.colorDecorators */, 'colorDecorators', true, { description: nls.localize('colorDecorators', "Controls whether the editor should render the inline color decorators and color picker.") })),
colorDecoratorsLimit: register(new EditorIntOption(18 /* EditorOption.colorDecoratorsLimit */, 'colorDecoratorsLimit', 500, 1, 1000000, {
colorDecorators: register(new EditorBooleanOption(18 /* EditorOption.colorDecorators */, 'colorDecorators', true, { description: nls.localize('colorDecorators', "Controls whether the editor should render the inline color decorators and color picker.") })),
colorDecoratorsLimit: register(new EditorIntOption(19 /* EditorOption.colorDecoratorsLimit */, 'colorDecoratorsLimit', 500, 1, 1000000, {
markdownDescription: nls.localize('colorDecoratorsLimit', "Controls the max number of color decorators that can be rendered in an editor at once.")
})),
columnSelection: register(new EditorBooleanOption(19 /* EditorOption.columnSelection */, 'columnSelection', false, { description: nls.localize('columnSelection', "Enable that the selection with the mouse and keys is doing column selection.") })),
columnSelection: register(new EditorBooleanOption(20 /* EditorOption.columnSelection */, 'columnSelection', false, { description: nls.localize('columnSelection', "Enable that the selection with the mouse and keys is doing column selection.") })),
comments: register(new EditorComments()),
contextmenu: register(new EditorBooleanOption(21 /* EditorOption.contextmenu */, 'contextmenu', true)),
copyWithSyntaxHighlighting: register(new EditorBooleanOption(22 /* EditorOption.copyWithSyntaxHighlighting */, 'copyWithSyntaxHighlighting', true, { description: nls.localize('copyWithSyntaxHighlighting', "Controls whether syntax highlighting should be copied into the clipboard.") })),
cursorBlinking: register(new EditorEnumOption(23 /* EditorOption.cursorBlinking */, 'cursorBlinking', 1 /* TextEditorCursorBlinkingStyle.Blink */, 'blink', ['blink', 'smooth', 'phase', 'expand', 'solid'], _cursorBlinkingStyleFromString, { description: nls.localize('cursorBlinking', "Control the cursor animation style.") })),
cursorSmoothCaretAnimation: register(new EditorStringEnumOption(24 /* EditorOption.cursorSmoothCaretAnimation */, 'cursorSmoothCaretAnimation', 'off', ['off', 'explicit', 'on'], {
contextmenu: register(new EditorBooleanOption(22 /* EditorOption.contextmenu */, 'contextmenu', true)),
copyWithSyntaxHighlighting: register(new EditorBooleanOption(23 /* EditorOption.copyWithSyntaxHighlighting */, 'copyWithSyntaxHighlighting', true, { description: nls.localize('copyWithSyntaxHighlighting', "Controls whether syntax highlighting should be copied into the clipboard.") })),
cursorBlinking: register(new EditorEnumOption(24 /* EditorOption.cursorBlinking */, 'cursorBlinking', 1 /* TextEditorCursorBlinkingStyle.Blink */, 'blink', ['blink', 'smooth', 'phase', 'expand', 'solid'], _cursorBlinkingStyleFromString, { description: nls.localize('cursorBlinking', "Control the cursor animation style.") })),
cursorSmoothCaretAnimation: register(new EditorStringEnumOption(25 /* EditorOption.cursorSmoothCaretAnimation */, 'cursorSmoothCaretAnimation', 'off', ['off', 'explicit', 'on'], {
enumDescriptions: [
nls.localize('cursorSmoothCaretAnimation.off', "Smooth caret animation is disabled."),
nls.localize('cursorSmoothCaretAnimation.explicit', "Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),
@ -2541,24 +2559,24 @@ export const EditorOptions = {
],
description: nls.localize('cursorSmoothCaretAnimation', "Controls whether the smooth caret animation should be enabled.")
})),
cursorStyle: register(new EditorEnumOption(25 /* EditorOption.cursorStyle */, 'cursorStyle', TextEditorCursorStyle.Line, 'line', ['line', 'block', 'underline', 'line-thin', 'block-outline', 'underline-thin'], _cursorStyleFromString, { description: nls.localize('cursorStyle', "Controls the cursor style.") })),
cursorSurroundingLines: register(new EditorIntOption(26 /* EditorOption.cursorSurroundingLines */, 'cursorSurroundingLines', 0, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { description: nls.localize('cursorSurroundingLines', "Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.") })),
cursorSurroundingLinesStyle: register(new EditorStringEnumOption(27 /* EditorOption.cursorSurroundingLinesStyle */, 'cursorSurroundingLinesStyle', 'default', ['default', 'all'], {
cursorStyle: register(new EditorEnumOption(26 /* EditorOption.cursorStyle */, 'cursorStyle', TextEditorCursorStyle.Line, 'line', ['line', 'block', 'underline', 'line-thin', 'block-outline', 'underline-thin'], _cursorStyleFromString, { description: nls.localize('cursorStyle', "Controls the cursor style.") })),
cursorSurroundingLines: register(new EditorIntOption(27 /* EditorOption.cursorSurroundingLines */, 'cursorSurroundingLines', 0, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { description: nls.localize('cursorSurroundingLines', "Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.") })),
cursorSurroundingLinesStyle: register(new EditorStringEnumOption(28 /* EditorOption.cursorSurroundingLinesStyle */, 'cursorSurroundingLinesStyle', 'default', ['default', 'all'], {
enumDescriptions: [
nls.localize('cursorSurroundingLinesStyle.default', "`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),
nls.localize('cursorSurroundingLinesStyle.all', "`cursorSurroundingLines` is enforced always.")
],
description: nls.localize('cursorSurroundingLinesStyle', "Controls when `cursorSurroundingLines` should be enforced.")
})),
cursorWidth: register(new EditorIntOption(28 /* EditorOption.cursorWidth */, 'cursorWidth', 0, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { markdownDescription: nls.localize('cursorWidth', "Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.") })),
disableLayerHinting: register(new EditorBooleanOption(29 /* EditorOption.disableLayerHinting */, 'disableLayerHinting', false)),
disableMonospaceOptimizations: register(new EditorBooleanOption(30 /* EditorOption.disableMonospaceOptimizations */, 'disableMonospaceOptimizations', false)),
domReadOnly: register(new EditorBooleanOption(31 /* EditorOption.domReadOnly */, 'domReadOnly', false)),
dragAndDrop: register(new EditorBooleanOption(32 /* EditorOption.dragAndDrop */, 'dragAndDrop', true, { description: nls.localize('dragAndDrop', "Controls whether the editor should allow moving selections via drag and drop.") })),
cursorWidth: register(new EditorIntOption(29 /* EditorOption.cursorWidth */, 'cursorWidth', 0, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { markdownDescription: nls.localize('cursorWidth', "Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.") })),
disableLayerHinting: register(new EditorBooleanOption(30 /* EditorOption.disableLayerHinting */, 'disableLayerHinting', false)),
disableMonospaceOptimizations: register(new EditorBooleanOption(31 /* EditorOption.disableMonospaceOptimizations */, 'disableMonospaceOptimizations', false)),
domReadOnly: register(new EditorBooleanOption(32 /* EditorOption.domReadOnly */, 'domReadOnly', false)),
dragAndDrop: register(new EditorBooleanOption(33 /* EditorOption.dragAndDrop */, 'dragAndDrop', true, { description: nls.localize('dragAndDrop', "Controls whether the editor should allow moving selections via drag and drop.") })),
emptySelectionClipboard: register(new EditorEmptySelectionClipboard()),
dropIntoEditor: register(new EditorDropIntoEditor()),
stickyScroll: register(new EditorStickyScroll()),
experimentalWhitespaceRendering: register(new EditorStringEnumOption(35 /* EditorOption.experimentalWhitespaceRendering */, 'experimentalWhitespaceRendering', 'svg', ['svg', 'font', 'off'], {
experimentalWhitespaceRendering: register(new EditorStringEnumOption(36 /* EditorOption.experimentalWhitespaceRendering */, 'experimentalWhitespaceRendering', 'svg', ['svg', 'font', 'off'], {
enumDescriptions: [
nls.localize('experimentalWhitespaceRendering.svg', "Use a new rendering method with svgs."),
nls.localize('experimentalWhitespaceRendering.font', "Use a new rendering method with font characters."),
@ -2566,51 +2584,51 @@ export const EditorOptions = {
],
description: nls.localize('experimentalWhitespaceRendering', "Controls whether whitespace is rendered with a new, experimental method.")
})),
extraEditorClassName: register(new EditorStringOption(36 /* EditorOption.extraEditorClassName */, 'extraEditorClassName', '')),
fastScrollSensitivity: register(new EditorFloatOption(37 /* EditorOption.fastScrollSensitivity */, 'fastScrollSensitivity', 5, x => (x <= 0 ? 5 : x), { markdownDescription: nls.localize('fastScrollSensitivity', "Scrolling speed multiplier when pressing `Alt`.") })),
extraEditorClassName: register(new EditorStringOption(37 /* EditorOption.extraEditorClassName */, 'extraEditorClassName', '')),
fastScrollSensitivity: register(new EditorFloatOption(38 /* EditorOption.fastScrollSensitivity */, 'fastScrollSensitivity', 5, x => (x <= 0 ? 5 : x), { markdownDescription: nls.localize('fastScrollSensitivity', "Scrolling speed multiplier when pressing `Alt`.") })),
find: register(new EditorFind()),
fixedOverflowWidgets: register(new EditorBooleanOption(39 /* EditorOption.fixedOverflowWidgets */, 'fixedOverflowWidgets', false)),
folding: register(new EditorBooleanOption(40 /* EditorOption.folding */, 'folding', true, { description: nls.localize('folding', "Controls whether the editor has code folding enabled.") })),
foldingStrategy: register(new EditorStringEnumOption(41 /* EditorOption.foldingStrategy */, 'foldingStrategy', 'auto', ['auto', 'indentation'], {
fixedOverflowWidgets: register(new EditorBooleanOption(40 /* EditorOption.fixedOverflowWidgets */, 'fixedOverflowWidgets', false)),
folding: register(new EditorBooleanOption(41 /* EditorOption.folding */, 'folding', true, { description: nls.localize('folding', "Controls whether the editor has code folding enabled.") })),
foldingStrategy: register(new EditorStringEnumOption(42 /* EditorOption.foldingStrategy */, 'foldingStrategy', 'auto', ['auto', 'indentation'], {
enumDescriptions: [
nls.localize('foldingStrategy.auto', "Use a language-specific folding strategy if available, else the indentation-based one."),
nls.localize('foldingStrategy.indentation', "Use the indentation-based folding strategy."),
],
description: nls.localize('foldingStrategy', "Controls the strategy for computing folding ranges.")
})),
foldingHighlight: register(new EditorBooleanOption(42 /* EditorOption.foldingHighlight */, 'foldingHighlight', true, { description: nls.localize('foldingHighlight', "Controls whether the editor should highlight folded ranges.") })),
foldingImportsByDefault: register(new EditorBooleanOption(43 /* EditorOption.foldingImportsByDefault */, 'foldingImportsByDefault', false, { description: nls.localize('foldingImportsByDefault', "Controls whether the editor automatically collapses import ranges.") })),
foldingMaximumRegions: register(new EditorIntOption(44 /* EditorOption.foldingMaximumRegions */, 'foldingMaximumRegions', 5000, 10, 65000, // limit must be less than foldingRanges MAX_FOLDING_REGIONS
foldingHighlight: register(new EditorBooleanOption(43 /* EditorOption.foldingHighlight */, 'foldingHighlight', true, { description: nls.localize('foldingHighlight', "Controls whether the editor should highlight folded ranges.") })),
foldingImportsByDefault: register(new EditorBooleanOption(44 /* EditorOption.foldingImportsByDefault */, 'foldingImportsByDefault', false, { description: nls.localize('foldingImportsByDefault', "Controls whether the editor automatically collapses import ranges.") })),
foldingMaximumRegions: register(new EditorIntOption(45 /* EditorOption.foldingMaximumRegions */, 'foldingMaximumRegions', 5000, 10, 65000, // limit must be less than foldingRanges MAX_FOLDING_REGIONS
{ description: nls.localize('foldingMaximumRegions', "The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.") })),
unfoldOnClickAfterEndOfLine: register(new EditorBooleanOption(45 /* EditorOption.unfoldOnClickAfterEndOfLine */, 'unfoldOnClickAfterEndOfLine', false, { description: nls.localize('unfoldOnClickAfterEndOfLine', "Controls whether clicking on the empty content after a folded line will unfold the line.") })),
fontFamily: register(new EditorStringOption(46 /* EditorOption.fontFamily */, 'fontFamily', EDITOR_FONT_DEFAULTS.fontFamily, { description: nls.localize('fontFamily', "Controls the font family.") })),
unfoldOnClickAfterEndOfLine: register(new EditorBooleanOption(46 /* EditorOption.unfoldOnClickAfterEndOfLine */, 'unfoldOnClickAfterEndOfLine', false, { description: nls.localize('unfoldOnClickAfterEndOfLine', "Controls whether clicking on the empty content after a folded line will unfold the line.") })),
fontFamily: register(new EditorStringOption(47 /* EditorOption.fontFamily */, 'fontFamily', EDITOR_FONT_DEFAULTS.fontFamily, { description: nls.localize('fontFamily', "Controls the font family.") })),
fontInfo: register(new EditorFontInfo()),
fontLigatures2: register(new EditorFontLigatures()),
fontSize: register(new EditorFontSize()),
fontWeight: register(new EditorFontWeight()),
fontVariations: register(new EditorFontVariations()),
formatOnPaste: register(new EditorBooleanOption(52 /* EditorOption.formatOnPaste */, 'formatOnPaste', false, { description: nls.localize('formatOnPaste', "Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.") })),
formatOnType: register(new EditorBooleanOption(53 /* EditorOption.formatOnType */, 'formatOnType', false, { description: nls.localize('formatOnType', "Controls whether the editor should automatically format the line after typing.") })),
glyphMargin: register(new EditorBooleanOption(54 /* EditorOption.glyphMargin */, 'glyphMargin', true, { description: nls.localize('glyphMargin', "Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.") })),
formatOnPaste: register(new EditorBooleanOption(53 /* EditorOption.formatOnPaste */, 'formatOnPaste', false, { description: nls.localize('formatOnPaste', "Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.") })),
formatOnType: register(new EditorBooleanOption(54 /* EditorOption.formatOnType */, 'formatOnType', false, { description: nls.localize('formatOnType', "Controls whether the editor should automatically format the line after typing.") })),
glyphMargin: register(new EditorBooleanOption(55 /* EditorOption.glyphMargin */, 'glyphMargin', true, { description: nls.localize('glyphMargin', "Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.") })),
gotoLocation: register(new EditorGoToLocation()),
hideCursorInOverviewRuler: register(new EditorBooleanOption(56 /* EditorOption.hideCursorInOverviewRuler */, 'hideCursorInOverviewRuler', false, { description: nls.localize('hideCursorInOverviewRuler', "Controls whether the cursor should be hidden in the overview ruler.") })),
hideCursorInOverviewRuler: register(new EditorBooleanOption(57 /* EditorOption.hideCursorInOverviewRuler */, 'hideCursorInOverviewRuler', false, { description: nls.localize('hideCursorInOverviewRuler', "Controls whether the cursor should be hidden in the overview ruler.") })),
hover: register(new EditorHover()),
inDiffEditor: register(new EditorBooleanOption(58 /* EditorOption.inDiffEditor */, 'inDiffEditor', false)),
letterSpacing: register(new EditorFloatOption(60 /* EditorOption.letterSpacing */, 'letterSpacing', EDITOR_FONT_DEFAULTS.letterSpacing, x => EditorFloatOption.clamp(x, -5, 20), { description: nls.localize('letterSpacing', "Controls the letter spacing in pixels.") })),
inDiffEditor: register(new EditorBooleanOption(59 /* EditorOption.inDiffEditor */, 'inDiffEditor', false)),
letterSpacing: register(new EditorFloatOption(61 /* EditorOption.letterSpacing */, 'letterSpacing', EDITOR_FONT_DEFAULTS.letterSpacing, x => EditorFloatOption.clamp(x, -5, 20), { description: nls.localize('letterSpacing', "Controls the letter spacing in pixels.") })),
lightbulb: register(new EditorLightbulb()),
lineDecorationsWidth: register(new EditorLineDecorationsWidth()),
lineHeight: register(new EditorLineHeight()),
lineNumbers: register(new EditorRenderLineNumbersOption()),
lineNumbersMinChars: register(new EditorIntOption(65 /* EditorOption.lineNumbersMinChars */, 'lineNumbersMinChars', 5, 1, 300)),
linkedEditing: register(new EditorBooleanOption(66 /* EditorOption.linkedEditing */, 'linkedEditing', false, { description: nls.localize('linkedEditing', "Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.") })),
links: register(new EditorBooleanOption(67 /* EditorOption.links */, 'links', true, { description: nls.localize('links', "Controls whether the editor should detect links and make them clickable.") })),
matchBrackets: register(new EditorStringEnumOption(68 /* EditorOption.matchBrackets */, 'matchBrackets', 'always', ['always', 'near', 'never'], { description: nls.localize('matchBrackets', "Highlight matching brackets.") })),
lineNumbersMinChars: register(new EditorIntOption(66 /* EditorOption.lineNumbersMinChars */, 'lineNumbersMinChars', 5, 1, 300)),
linkedEditing: register(new EditorBooleanOption(67 /* EditorOption.linkedEditing */, 'linkedEditing', false, { description: nls.localize('linkedEditing', "Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.") })),
links: register(new EditorBooleanOption(68 /* EditorOption.links */, 'links', true, { description: nls.localize('links', "Controls whether the editor should detect links and make them clickable.") })),
matchBrackets: register(new EditorStringEnumOption(69 /* EditorOption.matchBrackets */, 'matchBrackets', 'always', ['always', 'near', 'never'], { description: nls.localize('matchBrackets', "Highlight matching brackets.") })),
minimap: register(new EditorMinimap()),
mouseStyle: register(new EditorStringEnumOption(70 /* EditorOption.mouseStyle */, 'mouseStyle', 'text', ['text', 'default', 'copy'])),
mouseWheelScrollSensitivity: register(new EditorFloatOption(71 /* EditorOption.mouseWheelScrollSensitivity */, 'mouseWheelScrollSensitivity', 1, x => (x === 0 ? 1 : x), { markdownDescription: nls.localize('mouseWheelScrollSensitivity', "A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.") })),
mouseWheelZoom: register(new EditorBooleanOption(72 /* EditorOption.mouseWheelZoom */, 'mouseWheelZoom', false, { markdownDescription: nls.localize('mouseWheelZoom', "Zoom the font of the editor when using mouse wheel and holding `Ctrl`.") })),
multiCursorMergeOverlapping: register(new EditorBooleanOption(73 /* EditorOption.multiCursorMergeOverlapping */, 'multiCursorMergeOverlapping', true, { description: nls.localize('multiCursorMergeOverlapping', "Merge multiple cursors when they are overlapping.") })),
multiCursorModifier: register(new EditorEnumOption(74 /* EditorOption.multiCursorModifier */, 'multiCursorModifier', 'altKey', 'alt', ['ctrlCmd', 'alt'], _multiCursorModifierFromString, {
mouseStyle: register(new EditorStringEnumOption(71 /* EditorOption.mouseStyle */, 'mouseStyle', 'text', ['text', 'default', 'copy'])),
mouseWheelScrollSensitivity: register(new EditorFloatOption(72 /* EditorOption.mouseWheelScrollSensitivity */, 'mouseWheelScrollSensitivity', 1, x => (x === 0 ? 1 : x), { markdownDescription: nls.localize('mouseWheelScrollSensitivity', "A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.") })),
mouseWheelZoom: register(new EditorBooleanOption(73 /* EditorOption.mouseWheelZoom */, 'mouseWheelZoom', false, { markdownDescription: nls.localize('mouseWheelZoom', "Zoom the font of the editor when using mouse wheel and holding `Ctrl`.") })),
multiCursorMergeOverlapping: register(new EditorBooleanOption(74 /* EditorOption.multiCursorMergeOverlapping */, 'multiCursorMergeOverlapping', true, { description: nls.localize('multiCursorMergeOverlapping', "Merge multiple cursors when they are overlapping.") })),
multiCursorModifier: register(new EditorEnumOption(75 /* EditorOption.multiCursorModifier */, 'multiCursorModifier', 'altKey', 'alt', ['ctrlCmd', 'alt'], _multiCursorModifierFromString, {
markdownEnumDescriptions: [
nls.localize('multiCursorModifier.ctrlCmd', "Maps to `Control` on Windows and Linux and to `Command` on macOS."),
nls.localize('multiCursorModifier.alt', "Maps to `Alt` on Windows and Linux and to `Option` on macOS.")
@ -2623,36 +2641,36 @@ export const EditorOptions = {
]
}, "The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")
})),
multiCursorPaste: register(new EditorStringEnumOption(75 /* EditorOption.multiCursorPaste */, 'multiCursorPaste', 'spread', ['spread', 'full'], {
multiCursorPaste: register(new EditorStringEnumOption(76 /* EditorOption.multiCursorPaste */, 'multiCursorPaste', 'spread', ['spread', 'full'], {
markdownEnumDescriptions: [
nls.localize('multiCursorPaste.spread', "Each cursor pastes a single line of the text."),
nls.localize('multiCursorPaste.full', "Each cursor pastes the full text.")
],
markdownDescription: nls.localize('multiCursorPaste', "Controls pasting when the line count of the pasted text matches the cursor count.")
})),
multiCursorLimit: register(new EditorIntOption(76 /* EditorOption.multiCursorLimit */, 'multiCursorLimit', 10000, 1, 100000, {
multiCursorLimit: register(new EditorIntOption(77 /* EditorOption.multiCursorLimit */, 'multiCursorLimit', 10000, 1, 100000, {
markdownDescription: nls.localize('multiCursorLimit', "Controls the max number of cursors that can be in an active editor at once.")
})),
occurrencesHighlight: register(new EditorBooleanOption(77 /* EditorOption.occurrencesHighlight */, 'occurrencesHighlight', true, { description: nls.localize('occurrencesHighlight', "Controls whether the editor should highlight semantic symbol occurrences.") })),
overviewRulerBorder: register(new EditorBooleanOption(78 /* EditorOption.overviewRulerBorder */, 'overviewRulerBorder', true, { description: nls.localize('overviewRulerBorder', "Controls whether a border should be drawn around the overview ruler.") })),
overviewRulerLanes: register(new EditorIntOption(79 /* EditorOption.overviewRulerLanes */, 'overviewRulerLanes', 3, 0, 3)),
occurrencesHighlight: register(new EditorBooleanOption(78 /* EditorOption.occurrencesHighlight */, 'occurrencesHighlight', true, { description: nls.localize('occurrencesHighlight', "Controls whether the editor should highlight semantic symbol occurrences.") })),
overviewRulerBorder: register(new EditorBooleanOption(79 /* EditorOption.overviewRulerBorder */, 'overviewRulerBorder', true, { description: nls.localize('overviewRulerBorder', "Controls whether a border should be drawn around the overview ruler.") })),
overviewRulerLanes: register(new EditorIntOption(80 /* EditorOption.overviewRulerLanes */, 'overviewRulerLanes', 3, 0, 3)),
padding: register(new EditorPadding()),
parameterHints: register(new EditorParameterHints()),
peekWidgetDefaultFocus: register(new EditorStringEnumOption(82 /* EditorOption.peekWidgetDefaultFocus */, 'peekWidgetDefaultFocus', 'tree', ['tree', 'editor'], {
peekWidgetDefaultFocus: register(new EditorStringEnumOption(83 /* EditorOption.peekWidgetDefaultFocus */, 'peekWidgetDefaultFocus', 'tree', ['tree', 'editor'], {
enumDescriptions: [
nls.localize('peekWidgetDefaultFocus.tree', "Focus the tree when opening peek"),
nls.localize('peekWidgetDefaultFocus.editor', "Focus the editor when opening peek")
],
description: nls.localize('peekWidgetDefaultFocus', "Controls whether to focus the inline editor or the tree in the peek widget.")
})),
definitionLinkOpensInPeek: register(new EditorBooleanOption(83 /* EditorOption.definitionLinkOpensInPeek */, 'definitionLinkOpensInPeek', false, { description: nls.localize('definitionLinkOpensInPeek', "Controls whether the Go to Definition mouse gesture always opens the peek widget.") })),
definitionLinkOpensInPeek: register(new EditorBooleanOption(84 /* EditorOption.definitionLinkOpensInPeek */, 'definitionLinkOpensInPeek', false, { description: nls.localize('definitionLinkOpensInPeek', "Controls whether the Go to Definition mouse gesture always opens the peek widget.") })),
quickSuggestions: register(new EditorQuickSuggestions()),
quickSuggestionsDelay: register(new EditorIntOption(85 /* EditorOption.quickSuggestionsDelay */, 'quickSuggestionsDelay', 10, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { description: nls.localize('quickSuggestionsDelay', "Controls the delay in milliseconds after which quick suggestions will show up.") })),
readOnly: register(new EditorBooleanOption(86 /* EditorOption.readOnly */, 'readOnly', false)),
renameOnType: register(new EditorBooleanOption(87 /* EditorOption.renameOnType */, 'renameOnType', false, { description: nls.localize('renameOnType', "Controls whether the editor auto renames on type."), markdownDeprecationMessage: nls.localize('renameOnTypeDeprecate', "Deprecated, use `editor.linkedEditing` instead.") })),
renderControlCharacters: register(new EditorBooleanOption(88 /* EditorOption.renderControlCharacters */, 'renderControlCharacters', true, { description: nls.localize('renderControlCharacters', "Controls whether the editor should render control characters."), restricted: true })),
renderFinalNewline: register(new EditorStringEnumOption(89 /* EditorOption.renderFinalNewline */, 'renderFinalNewline', (platform.isLinux ? 'dimmed' : 'on'), ['off', 'on', 'dimmed'], { description: nls.localize('renderFinalNewline', "Render last line number when the file ends with a newline.") })),
renderLineHighlight: register(new EditorStringEnumOption(90 /* EditorOption.renderLineHighlight */, 'renderLineHighlight', 'line', ['none', 'gutter', 'line', 'all'], {
quickSuggestionsDelay: register(new EditorIntOption(86 /* EditorOption.quickSuggestionsDelay */, 'quickSuggestionsDelay', 10, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { description: nls.localize('quickSuggestionsDelay', "Controls the delay in milliseconds after which quick suggestions will show up.") })),
readOnly: register(new EditorBooleanOption(87 /* EditorOption.readOnly */, 'readOnly', false)),
renameOnType: register(new EditorBooleanOption(88 /* EditorOption.renameOnType */, 'renameOnType', false, { description: nls.localize('renameOnType', "Controls whether the editor auto renames on type."), markdownDeprecationMessage: nls.localize('renameOnTypeDeprecate', "Deprecated, use `editor.linkedEditing` instead.") })),
renderControlCharacters: register(new EditorBooleanOption(89 /* EditorOption.renderControlCharacters */, 'renderControlCharacters', true, { description: nls.localize('renderControlCharacters', "Controls whether the editor should render control characters."), restricted: true })),
renderFinalNewline: register(new EditorStringEnumOption(90 /* EditorOption.renderFinalNewline */, 'renderFinalNewline', (platform.isLinux ? 'dimmed' : 'on'), ['off', 'on', 'dimmed'], { description: nls.localize('renderFinalNewline', "Render last line number when the file ends with a newline.") })),
renderLineHighlight: register(new EditorStringEnumOption(91 /* EditorOption.renderLineHighlight */, 'renderLineHighlight', 'line', ['none', 'gutter', 'line', 'all'], {
enumDescriptions: [
'',
'',
@ -2661,9 +2679,9 @@ export const EditorOptions = {
],
description: nls.localize('renderLineHighlight', "Controls how the editor should render the current line highlight.")
})),
renderLineHighlightOnlyWhenFocus: register(new EditorBooleanOption(91 /* EditorOption.renderLineHighlightOnlyWhenFocus */, 'renderLineHighlightOnlyWhenFocus', false, { description: nls.localize('renderLineHighlightOnlyWhenFocus', "Controls if the editor should render the current line highlight only when the editor is focused.") })),
renderValidationDecorations: register(new EditorStringEnumOption(92 /* EditorOption.renderValidationDecorations */, 'renderValidationDecorations', 'editable', ['editable', 'on', 'off'])),
renderWhitespace: register(new EditorStringEnumOption(93 /* EditorOption.renderWhitespace */, 'renderWhitespace', 'selection', ['none', 'boundary', 'selection', 'trailing', 'all'], {
renderLineHighlightOnlyWhenFocus: register(new EditorBooleanOption(92 /* EditorOption.renderLineHighlightOnlyWhenFocus */, 'renderLineHighlightOnlyWhenFocus', false, { description: nls.localize('renderLineHighlightOnlyWhenFocus', "Controls if the editor should render the current line highlight only when the editor is focused.") })),
renderValidationDecorations: register(new EditorStringEnumOption(93 /* EditorOption.renderValidationDecorations */, 'renderValidationDecorations', 'editable', ['editable', 'on', 'off'])),
renderWhitespace: register(new EditorStringEnumOption(94 /* EditorOption.renderWhitespace */, 'renderWhitespace', 'selection', ['none', 'boundary', 'selection', 'trailing', 'all'], {
enumDescriptions: [
'',
nls.localize('renderWhitespace.boundary', "Render whitespace characters except for single spaces between words."),
@ -2673,20 +2691,20 @@ export const EditorOptions = {
],
description: nls.localize('renderWhitespace', "Controls how the editor should render whitespace characters.")
})),
revealHorizontalRightPadding: register(new EditorIntOption(94 /* EditorOption.revealHorizontalRightPadding */, 'revealHorizontalRightPadding', 15, 0, 1000)),
roundedSelection: register(new EditorBooleanOption(95 /* EditorOption.roundedSelection */, 'roundedSelection', true, { description: nls.localize('roundedSelection', "Controls whether selections should have rounded corners.") })),
revealHorizontalRightPadding: register(new EditorIntOption(95 /* EditorOption.revealHorizontalRightPadding */, 'revealHorizontalRightPadding', 15, 0, 1000)),
roundedSelection: register(new EditorBooleanOption(96 /* EditorOption.roundedSelection */, 'roundedSelection', true, { description: nls.localize('roundedSelection', "Controls whether selections should have rounded corners.") })),
rulers: register(new EditorRulers()),
scrollbar: register(new EditorScrollbar()),
scrollBeyondLastColumn: register(new EditorIntOption(98 /* EditorOption.scrollBeyondLastColumn */, 'scrollBeyondLastColumn', 4, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { description: nls.localize('scrollBeyondLastColumn', "Controls the number of extra characters beyond which the editor will scroll horizontally.") })),
scrollBeyondLastLine: register(new EditorBooleanOption(99 /* EditorOption.scrollBeyondLastLine */, 'scrollBeyondLastLine', true, { description: nls.localize('scrollBeyondLastLine', "Controls whether the editor will scroll beyond the last line.") })),
scrollPredominantAxis: register(new EditorBooleanOption(100 /* EditorOption.scrollPredominantAxis */, 'scrollPredominantAxis', true, { description: nls.localize('scrollPredominantAxis', "Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.") })),
selectionClipboard: register(new EditorBooleanOption(101 /* EditorOption.selectionClipboard */, 'selectionClipboard', true, {
scrollBeyondLastColumn: register(new EditorIntOption(99 /* EditorOption.scrollBeyondLastColumn */, 'scrollBeyondLastColumn', 4, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { description: nls.localize('scrollBeyondLastColumn', "Controls the number of extra characters beyond which the editor will scroll horizontally.") })),
scrollBeyondLastLine: register(new EditorBooleanOption(100 /* EditorOption.scrollBeyondLastLine */, 'scrollBeyondLastLine', true, { description: nls.localize('scrollBeyondLastLine', "Controls whether the editor will scroll beyond the last line.") })),
scrollPredominantAxis: register(new EditorBooleanOption(101 /* EditorOption.scrollPredominantAxis */, 'scrollPredominantAxis', true, { description: nls.localize('scrollPredominantAxis', "Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.") })),
selectionClipboard: register(new EditorBooleanOption(102 /* EditorOption.selectionClipboard */, 'selectionClipboard', true, {
description: nls.localize('selectionClipboard', "Controls whether the Linux primary clipboard should be supported."),
included: platform.isLinux
})),
selectionHighlight: register(new EditorBooleanOption(102 /* EditorOption.selectionHighlight */, 'selectionHighlight', true, { description: nls.localize('selectionHighlight', "Controls whether the editor should highlight matches similar to the selection.") })),
selectOnLineNumbers: register(new EditorBooleanOption(103 /* EditorOption.selectOnLineNumbers */, 'selectOnLineNumbers', true)),
showFoldingControls: register(new EditorStringEnumOption(104 /* EditorOption.showFoldingControls */, 'showFoldingControls', 'mouseover', ['always', 'never', 'mouseover'], {
selectionHighlight: register(new EditorBooleanOption(103 /* EditorOption.selectionHighlight */, 'selectionHighlight', true, { description: nls.localize('selectionHighlight', "Controls whether the editor should highlight matches similar to the selection.") })),
selectOnLineNumbers: register(new EditorBooleanOption(104 /* EditorOption.selectOnLineNumbers */, 'selectOnLineNumbers', true)),
showFoldingControls: register(new EditorStringEnumOption(105 /* EditorOption.showFoldingControls */, 'showFoldingControls', 'mouseover', ['always', 'never', 'mouseover'], {
enumDescriptions: [
nls.localize('showFoldingControls.always', "Always show the folding controls."),
nls.localize('showFoldingControls.never', "Never show the folding controls and reduce the gutter size."),
@ -2694,10 +2712,10 @@ export const EditorOptions = {
],
description: nls.localize('showFoldingControls', "Controls when the folding controls on the gutter are shown.")
})),
showUnused: register(new EditorBooleanOption(105 /* EditorOption.showUnused */, 'showUnused', true, { description: nls.localize('showUnused', "Controls fading out of unused code.") })),
showDeprecated: register(new EditorBooleanOption(133 /* EditorOption.showDeprecated */, 'showDeprecated', true, { description: nls.localize('showDeprecated', "Controls strikethrough deprecated variables.") })),
showUnused: register(new EditorBooleanOption(106 /* EditorOption.showUnused */, 'showUnused', true, { description: nls.localize('showUnused', "Controls fading out of unused code.") })),
showDeprecated: register(new EditorBooleanOption(134 /* EditorOption.showDeprecated */, 'showDeprecated', true, { description: nls.localize('showDeprecated', "Controls strikethrough deprecated variables.") })),
inlayHints: register(new EditorInlayHints()),
snippetSuggestions: register(new EditorStringEnumOption(106 /* EditorOption.snippetSuggestions */, 'snippetSuggestions', 'inline', ['top', 'bottom', 'inline', 'none'], {
snippetSuggestions: register(new EditorStringEnumOption(107 /* EditorOption.snippetSuggestions */, 'snippetSuggestions', 'inline', ['top', 'bottom', 'inline', 'none'], {
enumDescriptions: [
nls.localize('snippetSuggestions.top', "Show snippet suggestions on top of other suggestions."),
nls.localize('snippetSuggestions.bottom', "Show snippet suggestions below other suggestions."),
@ -2707,14 +2725,14 @@ export const EditorOptions = {
description: nls.localize('snippetSuggestions', "Controls whether snippets are shown with other suggestions and how they are sorted.")
})),
smartSelect: register(new SmartSelect()),
smoothScrolling: register(new EditorBooleanOption(108 /* EditorOption.smoothScrolling */, 'smoothScrolling', false, { description: nls.localize('smoothScrolling', "Controls whether the editor will scroll using an animation.") })),
stopRenderingLineAfter: register(new EditorIntOption(111 /* EditorOption.stopRenderingLineAfter */, 'stopRenderingLineAfter', 10000, -1, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */)),
smoothScrolling: register(new EditorBooleanOption(109 /* EditorOption.smoothScrolling */, 'smoothScrolling', false, { description: nls.localize('smoothScrolling', "Controls whether the editor will scroll using an animation.") })),
stopRenderingLineAfter: register(new EditorIntOption(112 /* EditorOption.stopRenderingLineAfter */, 'stopRenderingLineAfter', 10000, -1, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */)),
suggest: register(new EditorSuggest()),
inlineSuggest: register(new InlineEditorSuggest()),
suggestFontSize: register(new EditorIntOption(113 /* EditorOption.suggestFontSize */, 'suggestFontSize', 0, 0, 1000, { markdownDescription: nls.localize('suggestFontSize', "Font size for the suggest widget. When set to {0}, the value of {1} is used.", '`0`', '`#editor.fontSize#`') })),
suggestLineHeight: register(new EditorIntOption(114 /* EditorOption.suggestLineHeight */, 'suggestLineHeight', 0, 0, 1000, { markdownDescription: nls.localize('suggestLineHeight', "Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.", '`0`', '`#editor.lineHeight#`') })),
suggestOnTriggerCharacters: register(new EditorBooleanOption(115 /* EditorOption.suggestOnTriggerCharacters */, 'suggestOnTriggerCharacters', true, { description: nls.localize('suggestOnTriggerCharacters', "Controls whether suggestions should automatically show up when typing trigger characters.") })),
suggestSelection: register(new EditorStringEnumOption(116 /* EditorOption.suggestSelection */, 'suggestSelection', 'first', ['first', 'recentlyUsed', 'recentlyUsedByPrefix'], {
suggestFontSize: register(new EditorIntOption(114 /* EditorOption.suggestFontSize */, 'suggestFontSize', 0, 0, 1000, { markdownDescription: nls.localize('suggestFontSize', "Font size for the suggest widget. When set to {0}, the value of {1} is used.", '`0`', '`#editor.fontSize#`') })),
suggestLineHeight: register(new EditorIntOption(115 /* EditorOption.suggestLineHeight */, 'suggestLineHeight', 0, 0, 1000, { markdownDescription: nls.localize('suggestLineHeight', "Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.", '`0`', '`#editor.lineHeight#`') })),
suggestOnTriggerCharacters: register(new EditorBooleanOption(116 /* EditorOption.suggestOnTriggerCharacters */, 'suggestOnTriggerCharacters', true, { description: nls.localize('suggestOnTriggerCharacters', "Controls whether suggestions should automatically show up when typing trigger characters.") })),
suggestSelection: register(new EditorStringEnumOption(117 /* EditorOption.suggestSelection */, 'suggestSelection', 'first', ['first', 'recentlyUsed', 'recentlyUsedByPrefix'], {
markdownEnumDescriptions: [
nls.localize('suggestSelection.first', "Always select the first suggestion."),
nls.localize('suggestSelection.recentlyUsed', "Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),
@ -2722,7 +2740,7 @@ export const EditorOptions = {
],
description: nls.localize('suggestSelection', "Controls how suggestions are pre-selected when showing the suggest list.")
})),
tabCompletion: register(new EditorStringEnumOption(117 /* EditorOption.tabCompletion */, 'tabCompletion', 'off', ['on', 'off', 'onlySnippets'], {
tabCompletion: register(new EditorStringEnumOption(118 /* EditorOption.tabCompletion */, 'tabCompletion', 'off', ['on', 'off', 'onlySnippets'], {
enumDescriptions: [
nls.localize('tabCompletion.on', "Tab complete will insert the best matching suggestion when pressing tab."),
nls.localize('tabCompletion.off', "Disable tab completions."),
@ -2730,9 +2748,9 @@ export const EditorOptions = {
],
description: nls.localize('tabCompletion', "Enables tab completions.")
})),
tabIndex: register(new EditorIntOption(118 /* EditorOption.tabIndex */, 'tabIndex', 0, -1, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */)),
tabIndex: register(new EditorIntOption(119 /* EditorOption.tabIndex */, 'tabIndex', 0, -1, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */)),
unicodeHighlight: register(new UnicodeHighlight()),
unusualLineTerminators: register(new EditorStringEnumOption(120 /* EditorOption.unusualLineTerminators */, 'unusualLineTerminators', 'prompt', ['auto', 'off', 'prompt'], {
unusualLineTerminators: register(new EditorStringEnumOption(121 /* EditorOption.unusualLineTerminators */, 'unusualLineTerminators', 'prompt', ['auto', 'off', 'prompt'], {
enumDescriptions: [
nls.localize('unusualLineTerminators.auto', "Unusual line terminators are automatically removed."),
nls.localize('unusualLineTerminators.off', "Unusual line terminators are ignored."),
@ -2740,17 +2758,17 @@ export const EditorOptions = {
],
description: nls.localize('unusualLineTerminators', "Remove unusual line terminators that might cause problems.")
})),
useShadowDOM: register(new EditorBooleanOption(121 /* EditorOption.useShadowDOM */, 'useShadowDOM', true)),
useTabStops: register(new EditorBooleanOption(122 /* EditorOption.useTabStops */, 'useTabStops', true, { description: nls.localize('useTabStops', "Inserting and deleting whitespace follows tab stops.") })),
wordBreak: register(new EditorStringEnumOption(123 /* EditorOption.wordBreak */, 'wordBreak', 'normal', ['normal', 'keepAll'], {
useShadowDOM: register(new EditorBooleanOption(122 /* EditorOption.useShadowDOM */, 'useShadowDOM', true)),
useTabStops: register(new EditorBooleanOption(123 /* EditorOption.useTabStops */, 'useTabStops', true, { description: nls.localize('useTabStops', "Inserting and deleting whitespace follows tab stops.") })),
wordBreak: register(new EditorStringEnumOption(124 /* EditorOption.wordBreak */, 'wordBreak', 'normal', ['normal', 'keepAll'], {
markdownEnumDescriptions: [
nls.localize('wordBreak.normal', "Use the default line break rule."),
nls.localize('wordBreak.keepAll', "Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal."),
],
description: nls.localize('wordBreak', "Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")
})),
wordSeparators: register(new EditorStringOption(124 /* EditorOption.wordSeparators */, 'wordSeparators', USUAL_WORD_SEPARATORS, { description: nls.localize('wordSeparators', "Characters that will be used as word separators when doing word related navigations or operations.") })),
wordWrap: register(new EditorStringEnumOption(125 /* EditorOption.wordWrap */, 'wordWrap', 'off', ['off', 'on', 'wordWrapColumn', 'bounded'], {
wordSeparators: register(new EditorStringOption(125 /* EditorOption.wordSeparators */, 'wordSeparators', USUAL_WORD_SEPARATORS, { description: nls.localize('wordSeparators', "Characters that will be used as word separators when doing word related navigations or operations.") })),
wordWrap: register(new EditorStringEnumOption(126 /* EditorOption.wordWrap */, 'wordWrap', 'off', ['off', 'on', 'wordWrapColumn', 'bounded'], {
markdownEnumDescriptions: [
nls.localize('wordWrap.off', "Lines will never wrap."),
nls.localize('wordWrap.on', "Lines will wrap at the viewport width."),
@ -2776,13 +2794,13 @@ export const EditorOptions = {
]
}, "Controls how lines should wrap.")
})),
wordWrapBreakAfterCharacters: register(new EditorStringOption(126 /* EditorOption.wordWrapBreakAfterCharacters */, 'wordWrapBreakAfterCharacters',
wordWrapBreakAfterCharacters: register(new EditorStringOption(127 /* EditorOption.wordWrapBreakAfterCharacters */, 'wordWrapBreakAfterCharacters',
// allow-any-unicode-next-line
' \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」')),
wordWrapBreakBeforeCharacters: register(new EditorStringOption(127 /* EditorOption.wordWrapBreakBeforeCharacters */, 'wordWrapBreakBeforeCharacters',
wordWrapBreakBeforeCharacters: register(new EditorStringOption(128 /* EditorOption.wordWrapBreakBeforeCharacters */, 'wordWrapBreakBeforeCharacters',
// allow-any-unicode-next-line
'([{‘“〈《「『【〔([{「£¥$£¥+')),
wordWrapColumn: register(new EditorIntOption(128 /* EditorOption.wordWrapColumn */, 'wordWrapColumn', 80, 1, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, {
wordWrapColumn: register(new EditorIntOption(129 /* EditorOption.wordWrapColumn */, 'wordWrapColumn', 80, 1, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, {
markdownDescription: nls.localize({
key: 'wordWrapColumn',
comment: [
@ -2791,12 +2809,12 @@ export const EditorOptions = {
]
}, "Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")
})),
wordWrapOverride1: register(new EditorStringEnumOption(129 /* EditorOption.wordWrapOverride1 */, 'wordWrapOverride1', 'inherit', ['off', 'on', 'inherit'])),
wordWrapOverride2: register(new EditorStringEnumOption(130 /* EditorOption.wordWrapOverride2 */, 'wordWrapOverride2', 'inherit', ['off', 'on', 'inherit'])),
wordWrapOverride1: register(new EditorStringEnumOption(130 /* EditorOption.wordWrapOverride1 */, 'wordWrapOverride1', 'inherit', ['off', 'on', 'inherit'])),
wordWrapOverride2: register(new EditorStringEnumOption(131 /* EditorOption.wordWrapOverride2 */, 'wordWrapOverride2', 'inherit', ['off', 'on', 'inherit'])),
// Leave these at the end (because they have dependencies!)
editorClassName: register(new EditorClassName()),
pixelRatio: register(new EditorPixelRatio()),
tabFocusMode: register(new EditorBooleanOption(137 /* EditorOption.tabFocusMode */, 'tabFocusMode', false, { markdownDescription: nls.localize('tabFocusMode', "Controls whether the editor receives tabs or defers them to the workbench for navigation.") })),
tabFocusMode: register(new EditorBooleanOption(138 /* EditorOption.tabFocusMode */, 'tabFocusMode', false, { markdownDescription: nls.localize('tabFocusMode', "Controls whether the editor receives tabs or defers them to the workbench for navigation.") })),
layoutInfo: register(new EditorLayoutInfoComputer()),
wrappingInfo: register(new EditorWrappingInfoComputer()),
wrappingIndent: register(new WrappingIndentOption()),

View file

@ -19,13 +19,13 @@ export class BareFontInfo {
* @internal
*/
static createFromValidatedSettings(options, pixelRatio, ignoreEditorZoom) {
const fontFamily = options.get(46 /* EditorOption.fontFamily */);
const fontWeight = options.get(50 /* EditorOption.fontWeight */);
const fontSize = options.get(49 /* EditorOption.fontSize */);
const fontFeatureSettings = options.get(48 /* EditorOption.fontLigatures */);
const fontVariationSettings = options.get(51 /* EditorOption.fontVariations */);
const lineHeight = options.get(63 /* EditorOption.lineHeight */);
const letterSpacing = options.get(60 /* EditorOption.letterSpacing */);
const fontFamily = options.get(47 /* EditorOption.fontFamily */);
const fontWeight = options.get(51 /* EditorOption.fontWeight */);
const fontSize = options.get(50 /* EditorOption.fontSize */);
const fontFeatureSettings = options.get(49 /* EditorOption.fontLigatures */);
const fontVariationSettings = options.get(52 /* EditorOption.fontVariations */);
const lineHeight = options.get(64 /* EditorOption.lineHeight */);
const letterSpacing = options.get(61 /* EditorOption.letterSpacing */);
return BareFontInfo._create(fontFamily, fontWeight, fontSize, fontFeatureSettings, fontVariationSettings, lineHeight, letterSpacing, pixelRatio, ignoreEditorZoom);
}
/**

View file

@ -0,0 +1,65 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { BugIndicatingError } from '../../../base/common/errors.js';
/**
* A range of lines (1-based).
*/
export class LineRange {
constructor(startLineNumber, endLineNumberExclusive) {
if (startLineNumber > endLineNumberExclusive) {
throw new BugIndicatingError(`startLineNumber ${startLineNumber} cannot be after endLineNumberExclusive ${endLineNumberExclusive}`);
}
this.startLineNumber = startLineNumber;
this.endLineNumberExclusive = endLineNumberExclusive;
}
/**
* Indicates if this line range contains the given line number.
*/
contains(lineNumber) {
return this.startLineNumber <= lineNumber && lineNumber < this.endLineNumberExclusive;
}
/**
* Indicates if this line range is empty.
*/
get isEmpty() {
return this.startLineNumber === this.endLineNumberExclusive;
}
/**
* Moves this line range by the given offset of line numbers.
*/
delta(offset) {
return new LineRange(this.startLineNumber + offset, this.endLineNumberExclusive + offset);
}
/**
* The number of lines this line range spans.
*/
get length() {
return this.endLineNumberExclusive - this.startLineNumber;
}
/**
* Creates a line range that combines this and the given line range.
*/
join(other) {
return new LineRange(Math.min(this.startLineNumber, other.startLineNumber), Math.max(this.endLineNumberExclusive, other.endLineNumberExclusive));
}
toString() {
return `[${this.startLineNumber},${this.endLineNumberExclusive})`;
}
/**
* The resulting range is empty if the ranges do not intersect, but touch.
* If the ranges don't even touch, the result is undefined.
*/
intersect(other) {
const startLineNumber = Math.max(this.startLineNumber, other.startLineNumber);
const endLineNumberExclusive = Math.min(this.endLineNumberExclusive, other.endLineNumberExclusive);
if (startLineNumber <= endLineNumberExclusive) {
return new LineRange(startLineNumber, endLineNumberExclusive);
}
return undefined;
}
overlapOrTouch(other) {
return this.startLineNumber <= other.endLineNumberExclusive && other.startLineNumber <= this.endLineNumberExclusive;
}
}

View file

@ -0,0 +1,80 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { BugIndicatingError } from '../../../base/common/errors.js';
/**
* A range of offsets (0-based).
*/
export class OffsetRange {
static addRange(range, sortedRanges) {
let i = 0;
while (i < sortedRanges.length && sortedRanges[i].endExclusive < range.start) {
i++;
}
let j = i;
while (j < sortedRanges.length && sortedRanges[j].start <= range.endExclusive) {
j++;
}
if (i === j) {
sortedRanges.splice(i, 0, range);
}
else {
const start = Math.min(range.start, sortedRanges[i].start);
const end = Math.max(range.endExclusive, sortedRanges[j - 1].endExclusive);
sortedRanges.splice(i, j - i, new OffsetRange(start, end));
}
}
static tryCreate(start, endExclusive) {
if (start > endExclusive) {
return undefined;
}
return new OffsetRange(start, endExclusive);
}
constructor(start, endExclusive) {
this.start = start;
this.endExclusive = endExclusive;
if (start > endExclusive) {
throw new BugIndicatingError(`Invalid range: ${this.toString()}`);
}
}
get isEmpty() {
return this.start === this.endExclusive;
}
delta(offset) {
return new OffsetRange(this.start + offset, this.endExclusive + offset);
}
get length() {
return this.endExclusive - this.start;
}
toString() {
return `[${this.start}, ${this.endExclusive})`;
}
equals(other) {
return this.start === other.start && this.endExclusive === other.endExclusive;
}
containsRange(other) {
return this.start <= other.start && other.endExclusive <= this.endExclusive;
}
/**
* for all numbers n: range1.contains(n) or range2.contains(n) => range1.join(range2).contains(n)
* The joined range is the smallest range that contains both ranges.
*/
join(other) {
return new OffsetRange(Math.min(this.start, other.start), Math.max(this.endExclusive, other.endExclusive));
}
/**
* for all numbers n: range1.contains(n) and range2.contains(n) <=> range1.intersect(range2).contains(n)
*
* The resulting range is empty if the ranges do not intersect, but touch.
* If the ranges don't even touch, the result is undefined.
*/
intersect(other) {
const start = Math.max(this.start, other.start);
const end = Math.min(this.endExclusive, other.endExclusive);
if (start <= end) {
return new OffsetRange(start, end);
}
return undefined;
}
}

Some files were not shown because too many files have changed in this diff Show more