--- lang: ja-jp breaks: true --- # `VSIX` による、電球アイコンによる提案(サジェストアクション)の表示 2022-01-26 > https://docs.microsoft.com/ja-jp/visualstudio/extensibility/walkthrough-displaying-light-bulb-suggestions?view=vs-2022  ## 一旦 `Editor Classifier` テンプレートを追加後、出来上がったソースを削除すると簡単  ```csharp= [Export(typeof(ISuggestedActionsSourceProvider))] [Name("Test Suggested Actions")] [ContentType("text")] internal class SuggestedActionsSourceProvider : ISuggestedActionsSourceProvider { [Import(typeof(ITextStructureNavigatorSelectorService))] internal ITextStructureNavigatorSelectorService NavigatorService { get; set; } [Import] internal IEditorOperationsFactoryService EditorOperations = null; public ISuggestedActionsSource CreateSuggestedActionsSource( ITextView textView, ITextBuffer textBuffer ) { if (textBuffer == null && textView == null) { return null; } return new SuggestedActionsSource( this, textView, textBuffer ); } } ``` ###### tags: `VSIX` `ISuggestedActionsSourceProvider` `ISuggestedActionsSource` `ISuggestedAction`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up