Visual Studio -> Tools -> Options -> Text Editor -> JavaScript/TypeScript -> EsLint
にあるVisual Studioオプションの値を設定する必要がありますが、このオプションのCollectionPath
が見つからないようです。設定ストアを使用してVSオプションを変更します。正しいCollectionPathを見つける?
GetSubCollectionNames("Text Editor");
は多くの結果をもたらし、GetSubCollectionNames("Text Editor\\JavaScript");
は0の結果をもたらす。
TL; DR がどのように1は、下の画像に描かオプションの権利CollectionPath
を見つけるに行きますか?
これは私が現在使用しているものです。
[ImportingConstructor]
internal VSOptions([Import] SVsServiceProvider serviceProvider)
{
var settingsManager = new ShellSettingsManager(serviceProvider);
_writableSettingsStore = settingsManager.GetWritableSettingsStore(SettingsScope.UserSettings)
?? throw new Exception(nameof(settingsManager));
var textEditorSubCollections = _writableSettingsStore.GetSubCollectionNames("Text Editor");
var javaScriptSubCollections = _writableSettingsStore.GetSubCollectionNames("Text Editor\\JavaScript");
// TODO: set option value when we have the right CollectionPath
}