diff --git a/CHANGELOG.md b/CHANGELOG.md index 221a86e0b..6d32c9f34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ - Debug from .csproj and .sln [#5876](https://github.com/dotnet/vscode-csharp/issues/5876) # Latest +* Update Roslyn to 4.12.0-1.24366.6 (PR: [#7326](https://github.com/dotnet/vscode-csharp/pull/7326)) +* Renamed settings (PR: [#7356](https://github.com/dotnet/vscode-csharp/pull/7356)) + * `dotnet.implementType.insertionBehavior` to `dotnet.typeMembers.memberInsertionLocation` + * `dotnet.implementType.propertyGenerationBehavior` to `dotnet.typeMembers.propertyGenerationBehavior` # 2.39.x * Add language status bar item displaying project context for open files (PR: [#7321](https://github.com/dotnet/vscode-csharp/pull/7321), PR: [#7333](https://github.com/dotnet/vscode-csharp/pull/7333)) @@ -42,7 +46,6 @@ * Fixed issue with Exception type related to https://github.com/microsoft/vscode-dotnettools/issues/1247 * Fixed Hot Reload not working on some Android device models: https://github.com/microsoft/vscode-dotnettools/issues/1241 - # 2.38.16 * Start localizing additional strings (PR: [#7305](https://github.com/dotnet/vscode-csharp/pull/7305)) * Fix issue launching Razor server on macOS (PR: [#7300](https://github.com/dotnet/vscode-csharp/pull/7300)) diff --git a/package.json b/package.json index d48c27fcf..c5764da9a 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ } }, "defaults": { - "roslyn": "4.12.0-1.24359.11", + "roslyn": "4.12.0-1.24366.6", "omniSharp": "1.39.11", "razor": "9.0.0-preview.24365.1", "razorOmnisharp": "7.0.0-preview.23363.1", @@ -732,7 +732,7 @@ "title": "Text Editor", "order": 1, "properties": { - "dotnet.implementType.insertionBehavior": { + "dotnet.typeMembers.memberInsertionLocation": { "type": "string", "enum": [ "withOtherMembersOfTheSameKind", @@ -740,13 +740,13 @@ ], "default": "withOtherMembersOfTheSameKind", "enumDescriptions": [ - "%configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind%", - "%configuration.dotnet.implementType.insertionBehavior.atTheEnd%" + "%configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind%", + "%configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd%" ], - "description": "%configuration.dotnet.implementType.insertionBehavior%", + "description": "%configuration.dotnet.typeMembers.memberInsertionLocation%", "order": 10 }, - "dotnet.implementType.propertyGenerationBehavior": { + "dotnet.typeMembers.propertyGenerationBehavior": { "type": "string", "enum": [ "preferThrowingProperties", @@ -754,10 +754,10 @@ ], "default": "preferThrowingProperties", "enumDescriptions": [ - "%configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties%", - "%configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties%" + "%configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties%", + "%configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties%" ], - "description": "%configuration.dotnet.implementType.propertyGenerationBehavior%", + "description": "%configuration.dotnet.typeMembers.propertyGenerationBehavior%", "order": 10 }, "dotnet.codeLens.enableReferencesCodeLens": { diff --git a/package.nls.cs.json b/package.nls.cs.json index 8b4faee30..f4e124b97 100644 --- a/package.nls.cs.json +++ b/package.nls.cs.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "Povolí nástroje XAML při použití sady C# Dev Kit", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "Zvýrazněte související komponenty JSON pod kurzorem.", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "Zvýraznit související komponenty regulárního výrazu pod kurzorem.", - "configuration.dotnet.implementType.insertionBehavior": "Umístění vložení vlastností, událostí a metod při implementaci rozhraní nebo abstraktní třídy.", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "Umístit je na konec.", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "Umístěte je s ostatními členy stejného druhu.", - "configuration.dotnet.implementType.propertyGenerationBehavior": "Chování generování vlastností při implementaci rozhraní nebo abstraktní třídy.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "Upřednostňovat automatické vlastnosti.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "Upřednostňovat vyvolávání vlastností.", + "configuration.dotnet.typeMembers.memberInsertionLocation": "Umístění vložení vlastností, událostí a metod při implementaci rozhraní nebo abstraktní třídy.", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "Umístit je na konec.", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "Umístěte je s ostatními členy stejného druhu.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "Chování generování vlastností při implementaci rozhraní nebo abstraktní třídy.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "Upřednostňovat automatické vlastnosti.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "Upřednostňovat vyvolávání vlastností.", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "Zobrazit nápovědy pro literály", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "Zobrazit nápovědy pro výrazy new", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "Zobrazit nápovědy pro všechno ostatní", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "Při nastavení této možnosti se text, který cílová aplikace zapisuje do stdout a stderr (např. Console.WriteLine), uloží do zadaného souboru. Tato možnost se bude ignorovat, pokud je konzola nastavená na jinou hodnotu než internalConsole. Příklad: ${workspaceFolder}/out.txt", "generateOptionsSchema.type.markdownDescription": "Typ kódu, který se má ladit. Může to být buď coreclr pro ladění .NET Core, nebo cclr pro Desktop .NET Framework. clr funguje pouze v systému Windows, protože Desktop Framework je určen pouze pro Windows.", "viewsWelcome.debug.contents": "[Generování prostředků jazyka C# pro sestavení a ladění](command:dotnet.generateAssets)\r\n\r\nDalší informace o souboru launch.json najdete v tématu [Konfigurace souboru launch.json pro ladění v jazyce C#](https://aka.ms/VSCode-CS-LaunchJson)." -} \ No newline at end of file +} diff --git a/package.nls.de.json b/package.nls.de.json index 379f49db6..99e6d37bf 100644 --- a/package.nls.de.json +++ b/package.nls.de.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "Aktiviert XAML-Tools bei Verwendung des C#-Dev Kit", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "Zugehörige JSON-Komponenten unter dem Cursor markieren.", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "Zugehörige Komponenten regulärer Ausdrücke unter dem Cursor markieren.", - "configuration.dotnet.implementType.insertionBehavior": "Die Einfügeposition von Eigenschaften, Ereignissen und Methoden beim Implementieren der Schnittstelle oder abstrakten Klasse.", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "Platzieren Sie sie am Ende.", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "Platzieren Sie sie mit anderen Mitgliedern derselben Art.", - "configuration.dotnet.implementType.propertyGenerationBehavior": "Generierungsverhalten von Eigenschaften beim Implementieren einer Schnittstelle oder einer abstrakten Klasse.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "Automatische Eigenschaften bevorzugen.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "Ausgelöste Eigenschaften bevorzugen.", + "configuration.dotnet.typeMembers.memberInsertionLocation": "Die Einfügeposition von Eigenschaften, Ereignissen und Methoden beim Implementieren der Schnittstelle oder abstrakten Klasse.", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "Platzieren Sie sie am Ende.", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "Platzieren Sie sie mit anderen Mitgliedern derselben Art.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "Generierungsverhalten von Eigenschaften beim Implementieren einer Schnittstelle oder einer abstrakten Klasse.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "Automatische Eigenschaften bevorzugen.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "Ausgelöste Eigenschaften bevorzugen.", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "Hinweise für Literale anzeigen", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "Hinweise für new-Ausdrücke anzeigen", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "Hinweise für alles andere anzeigen", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "Bei Festlegung wird Text, den die Zielanwendung in \"stdout\" und \"stderr\" (z. B. Console.WriteLine) schreibt, in der angegebenen Datei gespeichert. Diese Option wird ignoriert, wenn die Konsole auf einen anderen Wert als internalConsole festgelegt ist. Beispiel: \"${workspaceFolder}/out.txt\"", "generateOptionsSchema.type.markdownDescription": "Geben Sie den Typ des zu debuggenden Codes ein. Dies kann `coreclr` für das .NET Core-Debugging oder `clr` für Desktop .NET Framework sein. `clr` funktioniert nur für Windows, da das Desktopframework nur Windows ist.", "viewsWelcome.debug.contents": "[C#-Objekte für Build und Debuggen generieren](command:dotnet.generateAssets)\r\n\r\nWeitere Informationen zu launch.json finden Sie unter [Konfigurieren von launch.json für das C#-Debuggen](https://aka.ms/VSCode-CS-LaunchJson)." -} \ No newline at end of file +} diff --git a/package.nls.es.json b/package.nls.es.json index 2be25371d..d7d7f61a7 100644 --- a/package.nls.es.json +++ b/package.nls.es.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "Habilita las herramientas XAML al usar el Kit de desarrollo de C#", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "Resaltar los componentes JSON relacionados bajo el cursor.", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "Resaltar los componentes de expresiones regulares relacionados bajo el cursor.", - "configuration.dotnet.implementType.insertionBehavior": "Ubicación de inserción de propiedades, eventos y métodos cuando se implementa una interfaz o una clase abstracta.", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "Colóquelos al final.", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "Colóquelos con otros miembros del mismo tipo.", - "configuration.dotnet.implementType.propertyGenerationBehavior": "Comportamiento de generación de propiedades al implementar una interfaz o una clase abstracta.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "Preferir propiedades automáticas.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "Preferir propiedades de lanzamiento.", + "configuration.dotnet.typeMembers.memberInsertionLocation": "Ubicación de inserción de propiedades, eventos y métodos cuando se implementa una interfaz o una clase abstracta.", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "Colóquelos al final.", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "Colóquelos con otros miembros del mismo tipo.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "Comportamiento de generación de propiedades al implementar una interfaz o una clase abstracta.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "Preferir propiedades automáticas.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "Preferir propiedades de lanzamiento.", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "Mostrar sugerencias para los literales", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "Mostrar sugerencias para las expresiones \"new\"", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "Mostrar sugerencias para todo lo demás", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "Cuando se establece, el texto que la aplicación de destino escribe en stdout y stderr (por ejemplo, Console.WriteLine) se guardará en el archivo especificado. Esta opción se omite si la consola se establece en un valor distinto de internalConsole. Por ejemplo, \"${workspaceFolder}/out.txt\"", "generateOptionsSchema.type.markdownDescription": "Escriba el tipo de código que se va a depurar. Puede ser \"coreclr\" para la depuración de .NET Core o \"clr\" para desktop .NET Framework. \"clr\" solo funciona en Windows, ya que el marco de trabajo de escritorio es solo de Windows.", "viewsWelcome.debug.contents": "[Generar recursos de C# para compilación y depuración](command:dotnet.generateAssets)\r\n\r\nPara obtener más información sobre launch.json, consulte [Configuración de launch.json para la depuración de C#](https://aka.ms/VSCode-CS-LaunchJson)." -} \ No newline at end of file +} diff --git a/package.nls.fr.json b/package.nls.fr.json index 4845ccd2a..81a4eba98 100644 --- a/package.nls.fr.json +++ b/package.nls.fr.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "Active les outils XAML lors de l’utilisation du Kit de développement C#", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "Mettez en surbrillance les composants JSON associés sous le curseur.", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "Mettre en surbrillance les composants d’expression régulière associés sous le curseur.", - "configuration.dotnet.implementType.insertionBehavior": "Emplacement d’insertion des propriétés, des événements et des méthodes lors de l’implémentation d’une interface ou d’une classe abstraite.", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "Placez-les à la fin.", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "Placez-les avec d’autres membres du même type.", - "configuration.dotnet.implementType.propertyGenerationBehavior": "Comportement de génération des propriétés lors de l’implémentation d’une interface ou d’une classe abstraite.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "Préférer les propriétés automatiques.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "Préférer les propriétés de levée.", + "configuration.dotnet.typeMembers.memberInsertionLocation": "Emplacement d’insertion des propriétés, des événements et des méthodes lors de l’implémentation d’une interface ou d’une classe abstraite.", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "Placez-les à la fin.", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "Placez-les avec d’autres membres du même type.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "Comportement de génération des propriétés lors de l’implémentation d’une interface ou d’une classe abstraite.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "Préférer les propriétés automatiques.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "Préférer les propriétés de levée.", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "Afficher les indicateurs pour les littéraux", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "Afficher les indicateurs pour les expressions 'new'", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "Afficher les indicateurs pour tout le reste", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "Lorsqu’il est défini, le texte écrit par l’application cible dans stdout et stderr (par exemple, Console.WriteLine) est enregistré dans le fichier spécifié. Cette option est ignorée si la console a une valeur autre que internalConsole. Exemple : « ${workspaceFolder}/out.txt »", "generateOptionsSchema.type.markdownDescription": "Type de code à déboguer. Peut être soit « coreclr » pour le débogage .NET Core, soit « clr » pour Desktop .NET Framework. `clr` ne fonctionne que sous Windows car le framework Desktop est uniquement Windows.", "viewsWelcome.debug.contents": "[Générer des ressources C# pour la génération et le débogage](command:dotnet.generateAssets)\r\n\r\nPour en savoir plus sur launch.json, consultez [Configuration de launch.json pour le débogage C#](https://aka.ms/VSCode-CS-LaunchJson)." -} \ No newline at end of file +} diff --git a/package.nls.it.json b/package.nls.it.json index cc8df71d6..92161264a 100644 --- a/package.nls.it.json +++ b/package.nls.it.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "Abilita gli strumenti XAML quando si usa il kit di sviluppo C#", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "Evidenziare i componenti JSON correlati sotto il cursore.", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "Evidenzia i componenti dell'espressione regolare correlati sotto il cursore.", - "configuration.dotnet.implementType.insertionBehavior": "La posizione di inserimento di proprietà, eventi e metodi quando si implementa un'interfaccia o una classe astratta.", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "Posizionarli alla fine.", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "Posizionarli con altri membri dello stesso tipo.", - "configuration.dotnet.implementType.propertyGenerationBehavior": "Comportamento di generazione delle proprietà quando si implementa un'interfaccia o una classe astratta.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "Preferisci proprietà automatiche.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "Preferisci proprietà generate.", + "configuration.dotnet.typeMembers.memberInsertionLocation": "La posizione di inserimento di proprietà, eventi e metodi quando si implementa un'interfaccia o una classe astratta.", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "Posizionarli alla fine.", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "Posizionarli con altri membri dello stesso tipo.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "Comportamento di generazione delle proprietà quando si implementa un'interfaccia o una classe astratta.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "Preferisci proprietà automatiche.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "Preferisci proprietà generate.", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "Mostra suggerimenti per i valori letterali", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "Mostra suggerimenti per le espressioni 'new'", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "Mostra suggerimenti per tutto il resto", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "Quando questa opzione è impostata, il testo che l'applicazione di destinazione scrive in stdout e stderr, ad esempio Console.WriteLine, verrà salvato nel file specificato. Questa opzione viene ignorata se la console è impostata su un valore diverso da internalConsole. Ad esempio '${workspaceFolder}/out.txt'.", "generateOptionsSchema.type.markdownDescription": "Digitare il tipo di codice di cui eseguire il debug. Può essere `coreclr` per il debug di .NET Core o `clr` per .NET Framework desktop. `clr` funziona solo su Windows poiché il framework desktop è solo per Windows.", "viewsWelcome.debug.contents": "[Genera risorse C# per compilazione e debug](command:dotnet.generateAssets)\r\n\r\nPer altre informazioni su launch.json, vedere [Configurazione di launch.json per il debug di C#](https://aka.ms/VSCode-CS-LaunchJson)." -} \ No newline at end of file +} diff --git a/package.nls.ja.json b/package.nls.ja.json index df5278ee7..bb7e738f4 100644 --- a/package.nls.ja.json +++ b/package.nls.ja.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "C# 開発キットを使用するときに XAML ツールを有効にします", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "カーソルの下にある関連する JSON コンポーネントをハイライトします。", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "カーソルの下にある関連する正規表現コンポーネントをハイライトします。", - "configuration.dotnet.implementType.insertionBehavior": "インターフェイスまたは抽象クラスを実装する場合の、プロパティ、イベント、メソッドの挿入場所です。", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "最後に配置します。", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "同じ種類の他のメンバーと共に配置します。", - "configuration.dotnet.implementType.propertyGenerationBehavior": "インターフェイスまたは抽象クラスを実装するときのプロパティの生成動作。", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "自動プロパティを優先します。", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "スロー プロパティを優先します。", + "configuration.dotnet.typeMembers.memberInsertionLocation": "インターフェイスまたは抽象クラスを実装する場合の、プロパティ、イベント、メソッドの挿入場所です。", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "最後に配置します。", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "同じ種類の他のメンバーと共に配置します。", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "インターフェイスまたは抽象クラスを実装するときのプロパティの生成動作。", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "自動プロパティを優先します。", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "スロー プロパティを優先します。", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "リテラルのヒントを表示する", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "'new' 式のヒントを表示する", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "その他すべてのヒントを表示する", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "設定すると、ターゲット アプリケーションが StdOut および stderr (例: Console.WriteLine) に書き込むテキストが指定したファイルに保存されます。コンソールが internalConsole 以外に設定されている場合、このオプションは無視されます。例: '${workspaceFolder}/out.txt'", "generateOptionsSchema.type.markdownDescription": "デバッグするコードの種類を入力します。.NET Core デバッグの場合は `coreclr`、デスクトップ .NET Framework の場合は `clr` のいずれかを指定できます。デスクトップ フレームワークは Windows 専用であるため、`clr` は Windows でのみ動作します。", "viewsWelcome.debug.contents": "[ビルドおよびデバッグ用の C# 資産の生成](command:dotnet.generateAssets)\r\n\r\nlaunch.json の詳細については、[C# デバッグ用の launch.json の構成](https://aka.ms/VSCode-CS-LaunchJson). を参照してください。" -} \ No newline at end of file +} diff --git a/package.nls.json b/package.nls.json index e5885cba1..9bac1fa39 100644 --- a/package.nls.json +++ b/package.nls.json @@ -39,12 +39,12 @@ "configuration.dotnet.projects.enableAutomaticRestore": "Enables automatic NuGet restore if the extension detects assets are missing.", "configuration.dotnet.projects.binaryLogPath": "Sets a path where MSBuild binary logs are written to when loading projects, to help diagnose loading errors.", "configuration.dotnet.preferCSharpExtension": "Forces projects to load with the C# extension only. This can be useful when using legacy project types that are not supported by C# Dev Kit. (Requires window reload)", - "configuration.dotnet.implementType.insertionBehavior": "The insertion location of properties, events, and methods When implement interface or abstract class.", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "Place them with other members of the same kind.", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "Place them at the end.", - "configuration.dotnet.implementType.propertyGenerationBehavior": "Generation behavior of properties when implement interface or abstract class.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "Prefer throwing properties.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "Prefer auto properties.", + "configuration.dotnet.typeMembers.memberInsertionLocation": "The insertion location of properties, events, and methods When implement interface or abstract class.", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "Place them with other members of the same kind.", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "Place them at the end.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "Generation behavior of properties when implement interface or abstract class.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "Prefer throwing properties.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "Prefer auto properties.", "configuration.dotnet.codeLens.enableReferencesCodeLens": "Specifies whether the references CodeLens should be shown. (Previously `csharp.referencesCodeLens.enabled`)", "configuration.dotnet.codeLens.enableTestsCodeLens": "Specifies whether the run and debug test CodeLens should be shown. (Previously `csharp.testsCodeLens.enabled`)", "configuration.dotnet.completion.showCompletionItemsFromUnimportedNamespaces": "Enables support for showing unimported types and unimported extension methods in completion lists. When committed, the appropriate using directive will be added at the top of the current file. (Previously `omnisharp.enableImportCompletion`)", diff --git a/package.nls.ko.json b/package.nls.ko.json index 89919b128..d7775ba7c 100644 --- a/package.nls.ko.json +++ b/package.nls.ko.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "C# 개발자 키트를 사용할 때 XAML 도구 사용", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "커서 아래에서 관련 JSON 구성 요소를 강조 표시합니다.", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "커서 아래의 관련 정규식 구성 요소를 강조 표시합니다.", - "configuration.dotnet.implementType.insertionBehavior": "인터페이스 또는 추상 클래스를 구현할 때 속성, 이벤트 및 메서드의 삽입 위치입니다.", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "끝에 배치합니다.", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "동일한 종류의 다른 멤버와 함께 배치합니다.", - "configuration.dotnet.implementType.propertyGenerationBehavior": "인터페이스 또는 추상 클래스를 구현할 때 속성의 생성 동작입니다.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "자동 속성을 선호합니다.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "throw 속성을 선호합니다.", + "configuration.dotnet.typeMembers.memberInsertionLocation": "인터페이스 또는 추상 클래스를 구현할 때 속성, 이벤트 및 메서드의 삽입 위치입니다.", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "끝에 배치합니다.", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "동일한 종류의 다른 멤버와 함께 배치합니다.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "인터페이스 또는 추상 클래스를 구현할 때 속성의 생성 동작입니다.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "자동 속성을 선호합니다.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "throw 속성을 선호합니다.", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "리터럴에 대한 힌트 표시", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "'new' 식에 대한 힌트 표시", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "다른 모든 항목에 대한 힌트 표시", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "설정하면 대상 애플리케이션이 stdout 및 stderr(예: Console.WriteLine)에 쓰는 텍스트가 지정된 파일에 저장됩니다. 콘솔이 internalConsole 이외의 것으로 설정된 경우 이 옵션은 무시됩니다(예: '${workspaceFolder}/out.txt')", "generateOptionsSchema.type.markdownDescription": "디버깅할 코드 형식입니다. .NET Core 디버깅의 경우 `coreclr`, 데스크톱 .NET Framework의 경우 `clr`일 수 있습니다. 데스크톱 프레임워크는 Windows 전용이므로 `clr`은 Windows에서만 작동합니다.", "viewsWelcome.debug.contents": "[빌드와 디버그를 위한 C# 자산 생성](command:dotnet.generateAssets)\r\n\r\nlaunch.json에 관해 자세히 알아보려면 [C# 디버깅을 위한 launch.json 구성](https://aka.ms/VSCode-CS-LaunchJson)을 참조하세요." -} \ No newline at end of file +} diff --git a/package.nls.pl.json b/package.nls.pl.json index 2e593c13d..b73b9fb78 100644 --- a/package.nls.pl.json +++ b/package.nls.pl.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "Włącza narzędzia XAML podczas korzystania z zestawu deweloperskiego języka C#", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "Wyróżnij powiązane składniki JSON pod kursorem.", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "Wyróżnij powiązane składniki wyrażenia regularnego pod kursorem.", - "configuration.dotnet.implementType.insertionBehavior": "Lokalizacja wstawiania właściwości, zdarzeń i metod podczas implementowania interfejsu lub klasy abstrakcyjnej.", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "Umieść je na końcu.", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "Umieść je z innymi elementami członkowskimi tego samego rodzaju.", - "configuration.dotnet.implementType.propertyGenerationBehavior": "Zachowanie generowania właściwości podczas implementowania interfejsu lub klasy abstrakcyjnej.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "Preferuj właściwości automatyczne.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "Preferuj właściwości przerzucane.", + "configuration.dotnet.typeMembers.memberInsertionLocation": "Lokalizacja wstawiania właściwości, zdarzeń i metod podczas implementowania interfejsu lub klasy abstrakcyjnej.", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "Umieść je na końcu.", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "Umieść je z innymi elementami członkowskimi tego samego rodzaju.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "Zachowanie generowania właściwości podczas implementowania interfejsu lub klasy abstrakcyjnej.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "Preferuj właściwości automatyczne.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "Preferuj właściwości przerzucane.", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "Pokaż wskazówki dla literałów", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "Pokaż wskazówki dla wyrażeń „new”", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "Pokaż wskazówki dla wszystkich innych elementów", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "Po ustawieniu tekst, który aplikacja docelowa zapisuje w stdout i stderr (np. Console.WriteLine), zostanie zapisany w określonym pliku. Ta opcja jest ignorowana, jeśli konsola jest ustawiona na wartość inną niż internalConsole, np. \"${workspaceFolder}/out.txt\"", "generateOptionsSchema.type.markdownDescription": "Wpisz typ kodu do debugowania. Może to być „coreclr” na potrzeby debugowania platformy .NET Core lub „clr” dla platformy klasycznej .NET Framework. Element „clr” działa tylko w systemie Windows, ponieważ platforma klasyczna działa tylko w systemie Windows.", "viewsWelcome.debug.contents": "[Generuj zasoby języka C# na potrzeby kompilacji i debugowania](polecenie:dotnet.generateAssets)\r\n\r\nAby dowiedzieć się więcej o uruchamianiu pliku launch.json, zobacz [Konfigurowanie pliku launch.json na potrzeby debugowania w języku C#](https://aka.ms/VSCode-CS-LaunchJson)." -} \ No newline at end of file +} diff --git a/package.nls.pt-br.json b/package.nls.pt-br.json index b2d6bc48c..275bfaf31 100644 --- a/package.nls.pt-br.json +++ b/package.nls.pt-br.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "Habilita ferramentas XAML ao usar o Kit de Desenvolvimento em C#", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "Destaque os componentes JSON relacionados sob o cursor.", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "Destaque os componentes de expressão regular relacionados sob o cursor.", - "configuration.dotnet.implementType.insertionBehavior": "O local de inserção de propriedades, eventos e métodos Ao implementar interface ou classe abstrata.", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "Coloque-os no final.", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "Coloque-os com outros membros do mesmo tipo.", - "configuration.dotnet.implementType.propertyGenerationBehavior": "Comportamento de geração de propriedades ao implementar interface ou classe abstrata.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "Eu prefiro propriedades automáticas.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "Eu prefiro lançar propriedades.", + "configuration.dotnet.typeMembers.memberInsertionLocation": "O local de inserção de propriedades, eventos e métodos Ao implementar interface ou classe abstrata.", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "Coloque-os no final.", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "Coloque-os com outros membros do mesmo tipo.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "Comportamento de geração de propriedades ao implementar interface ou classe abstrata.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "Eu prefiro propriedades automáticas.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "Eu prefiro lançar propriedades.", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "Mostrar as dicas para os literais", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "Mostrar as dicas para as expressões 'new'", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "Mostrar as dicas para tudo", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "Quando definido, o texto que o aplicativo de destino grava em stdout e stderr (ex: Console.WriteLine) será salvo no arquivo especificado. Essa opção será ignorada se o console for definido como algo diferente de internalConsole. Por exemplo. '${workspaceFolder}/out.txt'", "generateOptionsSchema.type.markdownDescription": "Tipo de código a ser depurado. Pode ser \"coreclr\" para a depuração do .NET Core ou \"clr\" para o .NET Framework para desktop. O \"clr\" só funciona no Windows, pois o Desktop Framework é exclusivo do Windows.", "viewsWelcome.debug.contents": "[Gerar ativos C# para Build e Depuração](command:dotnet.generateAssets)\r\n\r\nPara saber mais sobre launch.json, consulte [Como configurar launch.json para depuração C#](https://aka.ms/VSCode-CS-LaunchJson)." -} \ No newline at end of file +} diff --git a/package.nls.ru.json b/package.nls.ru.json index fc3ffa47c..adbf15182 100644 --- a/package.nls.ru.json +++ b/package.nls.ru.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "Включает инструменты XAML при использовании комплекта разработки C# Dev Kit.", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "Выделить связанные компоненты JSON под курсором.", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "Выделение связанных компонентов регулярных выражений под курсором.", - "configuration.dotnet.implementType.insertionBehavior": "Расположение вставки свойств, событий и методов. При реализации интерфейса или абстрактного класса.", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "Поместите их в конец.", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "Поместите их вместе с другими элементами того же типа.", - "configuration.dotnet.implementType.propertyGenerationBehavior": "Поведение создания свойств при реализации интерфейса или абстрактного класса.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "Предпочитать автосвойства.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "Предпочитать свойства, создающие исключения.", + "configuration.dotnet.typeMembers.memberInsertionLocation": "Расположение вставки свойств, событий и методов. При реализации интерфейса или абстрактного класса.", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "Поместите их в конец.", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "Поместите их вместе с другими элементами того же типа.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "Поведение создания свойств при реализации интерфейса или абстрактного класса.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "Предпочитать автосвойства.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "Предпочитать свойства, создающие исключения.", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "Отображать подсказки для литералов", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "Отображать подсказки для выражений \"new\"", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "Отображать подсказки для всех остальных элементов", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "Если этот параметр настроен, текст, который целевое приложение записывает в stdout и stderr (например, Console.WriteLine), будет сохранен в указанном файле. Этот параметр игнорируется, если для консоли настроено значение, отличное от internalConsole. Например, \"${workspaceFolder}/out.txt\"", "generateOptionsSchema.type.markdownDescription": "Введите тип кода для отладки. Может быть либо \"coreclr\" для отладки .NET Core, либо \"clr\" для классической .NET Framework. \"clr\" работает только в Windows, так как классическая платформа предназначена только для Windows.", "viewsWelcome.debug.contents": "[Создание ресурсов C# для сборки и отладки](command:dotnet.generateAssets)\r\n\r\nДополнительные сведения о launch.json см. в разделе [Настройка launch.json для отладки C#](https://aka.ms/VSCode-CS-LaunchJson)." -} \ No newline at end of file +} diff --git a/package.nls.tr.json b/package.nls.tr.json index f09baacb4..3ca3998ac 100644 --- a/package.nls.tr.json +++ b/package.nls.tr.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "C# Geliştirme Setini kullanırken XAML araçlarını etkinleştirir", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "İmlecin altındaki ilgili JSON bileşenlerini vurgula.", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "İmleç altındaki ilgili normal ifade bileşenlerini vurgula.", - "configuration.dotnet.implementType.insertionBehavior": "Arabirim veya soyut sınıf uygulanırken özellikler, olaylar ve yöntemlerin eklenme konumu.", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "Bunları sona yerleştir.", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "Bunları aynı türdeki diğer üyelerle birlikte yerleştir.", - "configuration.dotnet.implementType.propertyGenerationBehavior": "Arabirim veya soyut sınıf uygulama özellikleri oluşturma davranışı.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "Otomatik özellikleri tercih et.", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "Özel durum oluşturan özellikleri tercih et.", + "configuration.dotnet.typeMembers.memberInsertionLocation": "Arabirim veya soyut sınıf uygulanırken özellikler, olaylar ve yöntemlerin eklenme konumu.", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "Bunları sona yerleştir.", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "Bunları aynı türdeki diğer üyelerle birlikte yerleştir.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "Arabirim veya soyut sınıf uygulama özellikleri oluşturma davranışı.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "Otomatik özellikleri tercih et.", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "Özel durum oluşturan özellikleri tercih et.", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "Sabit değerler için ipuçlarını göster", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "'new' ifadeleri için ipuçlarını göster", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "Diğer her şey için ipuçlarını göster", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "Ayarlandığında hedef uygulamanın stdout ve stderr'a (ör. Console.WriteLine) yazdığı metin belirtilen dosyaya kaydedilir. Konsol, internalConsole dışında bir değere ayarlanmışsa bu seçenek yoksayılır. Ör. '${workspaceFolder}/out.txt'", "generateOptionsSchema.type.markdownDescription": "Hata ayıklamak için kodun türünü yazın. NET Core hata ayıklama için `coreclr` veya Masaüstü .NET Framework için `clr` olabilir. Masaüstü çerçevesi yalnızca Windows'a özel olduğundan `clr` yalnızca Windows'ta çalışır.", "viewsWelcome.debug.contents": "[Derleme ve Hata Ayıklama için C# Varlıkları Oluşturma](command:dotnet.generateAssets)\r\n\r\nlaunch.json hakkında daha fazla bilgi edinmek için bkz. [C# hata ayıklaması için launch.json yapılandırma](https://aka.ms/VSCode-CS-LaunchJson)." -} \ No newline at end of file +} diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index 00c2cba9a..716af21fc 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "使用 C# 开发工具包时启用 XAML 工具", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "突出显示光标下的相关 JSON 组件。", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "突出显示光标下的相关正则表达式组件。", - "configuration.dotnet.implementType.insertionBehavior": "实现接口或抽象类时属性、事件和方法的插入位置。", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "将它们放在末尾。", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "将它们与相同类型的其他成员放置在一起。", - "configuration.dotnet.implementType.propertyGenerationBehavior": "实现接口或抽象类时属性的生成行为。", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "首选自动属性。", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "首选引发属性。", + "configuration.dotnet.typeMembers.memberInsertionLocation": "实现接口或抽象类时属性、事件和方法的插入位置。", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "将它们放在末尾。", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "将它们与相同类型的其他成员放置在一起。", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "实现接口或抽象类时属性的生成行为。", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "首选自动属性。", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "首选引发属性。", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "显示文本提示", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "显示 \"new\" 表达式的提示", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "显示其他所有内容的提示", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "设置后,目标应用程序写入 stdout 和 stderr (例如 Console.WriteLine) 的文本将保存到指定的文件。如果控制台设置为 internalConsole 以外的其他内容,则忽略此选项。例如 \"${workspaceFolder}/out.txt\"", "generateOptionsSchema.type.markdownDescription": "键入要调试的代码类型。可以是用于 .NET Core 调试的“coreclr”,也可以是用于桌面 .NET Framework 的“clr”。由于桌面框架仅适用于 Windows,因此“clr”仅适用于 Windows。", "viewsWelcome.debug.contents": "[为版本和调试生成 C# 资产](command:dotnet.generateAssets)\r\n\r\n若要了解有关 launch.json 的详细信息,请参阅 [为 C# 调试配置 launch.json](https://aka.ms/VSCode-CS-LaunchJson)。" -} \ No newline at end of file +} diff --git a/package.nls.zh-tw.json b/package.nls.zh-tw.json index a712e0708..e64aa32b9 100644 --- a/package.nls.zh-tw.json +++ b/package.nls.zh-tw.json @@ -46,12 +46,12 @@ "configuration.dotnet.enableXamlTools": "使用 C# 開發套件時啟用 XAML 工具", "configuration.dotnet.highlighting.highlightRelatedJsonComponents": "反白資料指標下的相關 JSON 元件。", "configuration.dotnet.highlighting.highlightRelatedRegexComponents": "反白資料指標下的相關規則運算式元件。", - "configuration.dotnet.implementType.insertionBehavior": "實作介面或抽象類別時,屬性、事件和方法的插入位置。", - "configuration.dotnet.implementType.insertionBehavior.atTheEnd": "將它們放置在結尾。", - "configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "將它們與其他相同種類的成員放在一起。", - "configuration.dotnet.implementType.propertyGenerationBehavior": "實作介面或抽象類別時屬性的產生行為。", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "建議使用自動屬性。", - "configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "建議使用擲回屬性。", + "configuration.dotnet.typeMembers.memberInsertionLocation": "實作介面或抽象類別時,屬性、事件和方法的插入位置。", + "configuration.dotnet.typeMembers.memberInsertionLocation.atTheEnd": "將它們放置在結尾。", + "configuration.dotnet.typeMembers.memberInsertionLocation.withOtherMembersOfTheSameKind": "將它們與其他相同種類的成員放在一起。", + "configuration.dotnet.typeMembers.propertyGenerationBehavior": "實作介面或抽象類別時屬性的產生行為。", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferAutoProperties": "建議使用自動屬性。", + "configuration.dotnet.typeMembers.propertyGenerationBehavior.preferThrowingProperties": "建議使用擲回屬性。", "configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "顯示常值的提示", "configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "顯示 'new' 運算式的提示", "configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "顯示所有其他項目的提示", @@ -250,4 +250,4 @@ "generateOptionsSchema.targetOutputLogPath.description": "設定時,目標應用程式寫入 stdout 和 stderr 的文字 (例如: Console.WriteLine) 將會儲存到指定的檔案。如果主控台設定為 internalConsole 以外的項目,則會略過此選項。例如 '${workspaceFolder}/out.txt'", "generateOptionsSchema.type.markdownDescription": "輸入要進行偵錯的程式碼類型。可以是 `coreclr` 表示 .NET Core 偵錯,或 `clr` 表示桌面 .NET Framework。`clr` 僅在 Windows 上運作,因為桌面 Framework 僅限 Windows。", "viewsWelcome.debug.contents": "[為組建和偵錯產生 C# 資產](command:dotnet.generateAssets)\r\n\r\n若要深入了解 launch.json,請參閱[為 C# 偵錯設定 launch.json](https://aka.ms/VSCode-CS-LaunchJson)(英文)。" -} \ No newline at end of file +} diff --git a/src/shared/migrateOptions.ts b/src/shared/migrateOptions.ts index 0f6b50401..2a96381d0 100644 --- a/src/shared/migrateOptions.ts +++ b/src/shared/migrateOptions.ts @@ -9,104 +9,118 @@ import { ConfigurationTarget, vscode, WorkspaceConfiguration } from '../vscodeAd // Option in the array should be identical to each other, except the name. export const migrateOptions = [ { - omnisharpOption: 'csharp.inlayHints.parameters.enabled', - roslynOption: 'dotnet.inlayHints.enableInlayHintsForParameters', + oldName: 'csharp.inlayHints.parameters.enabled', + newName: 'dotnet.inlayHints.enableInlayHintsForParameters', }, { - omnisharpOption: 'csharp.inlayHints.parameters.forLiteralParameters', - roslynOption: 'dotnet.inlayHints.enableInlayHintsForLiteralParameters', + oldName: 'csharp.inlayHints.parameters.forLiteralParameters', + newName: 'dotnet.inlayHints.enableInlayHintsForLiteralParameters', }, { - omnisharpOption: 'csharp.inlayHints.parameters.forIndexerParameters', - roslynOption: 'dotnet.inlayHints.enableInlayHintsForIndexerParameters', + oldName: 'csharp.inlayHints.parameters.forIndexerParameters', + newName: 'dotnet.inlayHints.enableInlayHintsForIndexerParameters', }, { - omnisharpOption: 'csharp.inlayHints.parameters.forObjectCreationParameters', - roslynOption: 'dotnet.inlayHints.enableInlayHintsForObjectCreationParameters', + oldName: 'csharp.inlayHints.parameters.forObjectCreationParameters', + newName: 'dotnet.inlayHints.enableInlayHintsForObjectCreationParameters', }, { - omnisharpOption: 'csharp.inlayHints.parameters.forOtherParameters', - roslynOption: 'dotnet.inlayHints.enableInlayHintsForOtherParameters', + oldName: 'csharp.inlayHints.parameters.forOtherParameters', + newName: 'dotnet.inlayHints.enableInlayHintsForOtherParameters', }, { - omnisharpOption: 'csharp.inlayHints.parameters.suppressForParametersThatDifferOnlyBySuffix', - roslynOption: 'dotnet.inlayHints.suppressInlayHintsForParametersThatDifferOnlyBySuffix', + oldName: 'csharp.inlayHints.parameters.suppressForParametersThatDifferOnlyBySuffix', + newName: 'dotnet.inlayHints.suppressInlayHintsForParametersThatDifferOnlyBySuffix', }, { - omnisharpOption: 'csharp.inlayHints.parameters.suppressForParametersThatMatchMethodIntent', - roslynOption: 'dotnet.inlayHints.suppressInlayHintsForParametersThatMatchMethodIntent', + oldName: 'csharp.inlayHints.parameters.suppressForParametersThatMatchMethodIntent', + newName: 'dotnet.inlayHints.suppressInlayHintsForParametersThatMatchMethodIntent', }, { - omnisharpOption: 'csharp.inlayHints.parameters.suppressForParametersThatMatchArgumentName', - roslynOption: 'dotnet.inlayHints.suppressInlayHintsForParametersThatMatchArgumentName', + oldName: 'csharp.inlayHints.parameters.suppressForParametersThatMatchArgumentName', + newName: 'dotnet.inlayHints.suppressInlayHintsForParametersThatMatchArgumentName', }, - { omnisharpOption: 'csharp.inlayHints.types.enabled', roslynOption: 'csharp.inlayHints.enableInlayHintsForTypes' }, { - omnisharpOption: 'csharp.inlayHints.types.forImplicitVariableTypes', - roslynOption: 'csharp.inlayHints.enableInlayHintsForImplicitVariableTypes', + oldName: 'csharp.inlayHints.types.enabled', + newName: 'csharp.inlayHints.enableInlayHintsForTypes', }, { - omnisharpOption: 'csharp.inlayHints.types.forLambdaParameterTypes', - roslynOption: 'csharp.inlayHints.enableInlayHintsForLambdaParameterTypes', + oldName: 'csharp.inlayHints.types.forImplicitVariableTypes', + newName: 'csharp.inlayHints.enableInlayHintsForImplicitVariableTypes', }, { - omnisharpOption: 'csharp.inlayHints.types.forImplicitObjectCreation', - roslynOption: 'csharp.inlayHints.enableInlayHintsForImplicitObjectCreation', + oldName: 'csharp.inlayHints.types.forLambdaParameterTypes', + newName: 'csharp.inlayHints.enableInlayHintsForLambdaParameterTypes', }, - { omnisharpOption: 'omnisharp.defaultLaunchSolution', roslynOption: 'dotnet.defaultSolution' }, { - omnisharpOption: 'omnisharp.enableImportCompletion', - roslynOption: 'dotnet.completion.showCompletionItemsFromUnimportedNamespaces', + oldName: 'csharp.inlayHints.types.forImplicitObjectCreation', + newName: 'csharp.inlayHints.enableInlayHintsForImplicitObjectCreation', }, { - omnisharpOption: 'csharp.referencesCodeLens.enabled', - roslynOption: 'dotnet.codeLens.enableReferencesCodeLens', + oldName: 'omnisharp.defaultLaunchSolution', + newName: 'dotnet.defaultSolution', }, { - omnisharpOption: 'csharp.testsCodeLens.enabled', - roslynOption: 'dotnet.codeLens.enableTestsCodeLens', + oldName: 'omnisharp.enableImportCompletion', + newName: 'dotnet.completion.showCompletionItemsFromUnimportedNamespaces', }, { - omnisharpOption: 'csharp.unitTestDebuggingOptions', - roslynOption: 'dotnet.unitTestDebuggingOptions', + oldName: 'csharp.referencesCodeLens.enabled', + newName: 'dotnet.codeLens.enableReferencesCodeLens', }, { - omnisharpOption: 'omnisharp.testRunSettings', - roslynOption: 'dotnet.unitTests.runSettingsPath', + oldName: 'csharp.testsCodeLens.enabled', + newName: 'dotnet.codeLens.enableTestsCodeLens', + }, + { + oldName: 'csharp.unitTestDebuggingOptions', + newName: 'dotnet.unitTestDebuggingOptions', + }, + { + oldName: 'omnisharp.testRunSettings', + newName: 'dotnet.unitTests.runSettingsPath', + }, + { + oldName: 'dotnet.implementType.insertionBehavior', + newName: 'dotnet.typeMembers.memberInsertionLocation', + }, + { + oldName: 'dotnet.implementType.propertyGenerationBehavior', + newName: 'dotnet.typeMembers.propertyGenerationBehavior', }, ]; export async function MigrateOptions(vscode: vscode): Promise { const configuration = vscode.workspace.getConfiguration(); - for (const { omnisharpOption, roslynOption } of migrateOptions) { - if (!configuration.has(omnisharpOption)) { + for (const { oldName, newName } of migrateOptions) { + if (!configuration.has(oldName)) { continue; } - const inspectionValueOfRoslynOption = configuration.inspect(roslynOption); - if (inspectionValueOfRoslynOption == undefined) { + const inspectionValueOfNewOption = configuration.inspect(newName); + if (inspectionValueOfNewOption == undefined) { continue; } - const roslynOptionValue = configuration.get(roslynOption); - if (roslynOptionValue == undefined) { + const newOptionValue = configuration.get(newName); + if (newOptionValue == undefined) { continue; } - if (shouldMove(roslynOptionValue, inspectionValueOfRoslynOption.defaultValue)) { - await MoveOptionsValue(omnisharpOption, roslynOption, configuration); + if (shouldMove(newOptionValue, inspectionValueOfNewOption.defaultValue)) { + await MoveOptionsValue(oldName, newName, configuration); } } } -function shouldMove(roslynOptionValue: unknown, defaultInspectValueOfRoslynOption: unknown): boolean { - if (roslynOptionValue == defaultInspectValueOfRoslynOption) { +function shouldMove(newOptionValue: unknown, defaultInspectValueOfNewOption: unknown): boolean { + if (newOptionValue == defaultInspectValueOfNewOption) { return true; } // For certain kinds of complex object options, vscode will return a proxy object which isn't comparable to the default empty object {}. - if (types.isProxy(roslynOptionValue)) { - return JSON.stringify(roslynOptionValue) === JSON.stringify(defaultInspectValueOfRoslynOption); + if (types.isProxy(newOptionValue)) { + return JSON.stringify(newOptionValue) === JSON.stringify(defaultInspectValueOfNewOption); } return false; diff --git a/test/unitTests/configurationMiddleware.test.ts b/test/unitTests/configurationMiddleware.test.ts index 001f46c29..5c2be26cd 100644 --- a/test/unitTests/configurationMiddleware.test.ts +++ b/test/unitTests/configurationMiddleware.test.ts @@ -21,24 +21,24 @@ const testData = [ declareInPackageJson: false, }, { - serverOption: 'csharp|implement_type.dotnet_insertion_behavior', - vsCodeConfiguration: 'dotnet.implementType.insertionBehavior', + serverOption: 'csharp|type_members.dotnet_member_insertion_location', + vsCodeConfiguration: 'dotnet.typeMembers.memberInsertionLocation', declareInPackageJson: true, section: editorBehaviorSection, }, { - serverOption: 'mystery_language|implement_type.dotnet_insertion_behavior', + serverOption: 'mystery_language|type_members.dotnet_member_insertion_location ', vsCodeConfiguration: null, declareInPackageJson: false, }, { - serverOption: 'csharp|implement_type.dotnet_property_generation_behavior', - vsCodeConfiguration: 'dotnet.implementType.propertyGenerationBehavior', + serverOption: 'csharp|type_members.dotnet_property_generation_behavior', + vsCodeConfiguration: 'dotnet.typeMembers.propertyGenerationBehavior', declareInPackageJson: true, section: editorBehaviorSection, }, { - serverOption: 'mystery_language|implement_type.dotnet_property_generation_behavior', + serverOption: 'mystery_language|type_members.dotnet_property_generation_behavior', vsCodeConfiguration: null, declareInPackageJson: false, }, diff --git a/test/unitTests/migrateOptions.test.ts b/test/unitTests/migrateOptions.test.ts index ababacb0c..916bf8aa9 100644 --- a/test/unitTests/migrateOptions.test.ts +++ b/test/unitTests/migrateOptions.test.ts @@ -19,8 +19,8 @@ describe('Migrate configuration should in package.json', () => { ]; migrateOptions.forEach((data) => { - test(`Should have ${data.roslynOption} in package.json`, () => { - expect(configurations).toContain(data.roslynOption); + test(`Should have ${data.newName} in package.json`, () => { + expect(configurations).toContain(data.newName); }); }); });