void ShowMethodInsight(ITextEditor editor) { TypeScriptContext context = GetContext(editor); UpdateContext(context, editor); var provider = new TypeScriptFunctionInsightProvider(context); IInsightItem[] items = provider.ProvideInsight(editor); IInsightWindow insightWindow = editor.ShowInsightWindow(items); // if (insightWindow != null) { // insightHandler.InitializeOpenedInsightWindow(editor, insightWindow); // insightHandler.HighlightParameter(insightWindow, 0); // } }
void ShowMethodInsight(ITextEditor editor) { TypeScriptContext context = GetContext(editor); UpdateContext(context, editor); var provider = new TypeScriptFunctionInsightProvider(context); IInsightItem[] items = provider.ProvideInsight(editor); IInsightWindow insightWindow = editor.ShowInsightWindow(items); if (insightWindow != null) { insightHandler.InitializeOpenedInsightWindow(editor, insightWindow); insightHandler.HighlightParameter(insightWindow, 0); } }