コード例 #1
0
        static void InitPlugin()
        {
            try
            {
                CSScriptIntellisense.Plugin.NppData._nppHandle             = Plugin.NppData._nppHandle;
                CSScriptIntellisense.Plugin.NppData._scintillaMainHandle   = Plugin.NppData._scintillaMainHandle;
                CSScriptIntellisense.Plugin.NppData._scintillaSecondHandle = Plugin.NppData._scintillaSecondHandle;

                Intellisense.EnsureIntellisenseIntegration();

                CSScriptNpp.Plugin.CommandMenuInit(); //this will also call CSScriptIntellisense.Plugin.CommandMenuInit

                foreach (var item in CSScriptIntellisense.Plugin.FuncItems.Items)
                {
                    Plugin.FuncItems.Add(item.ToLocal());
                }

                CSScriptIntellisense.Plugin.FuncItems.Items.Clear();

                Debugger.OnFrameChanged += () => Npp.OnCalltipRequest(-2); //clear_all_cache
            }
            catch (Exception e)
            {
                MessageBox.Show("Initialization failure: " + e, "CS-Script");
            }
        }
コード例 #2
0
        void InitPlugin()
        {
            try
            {
                // Debug.Assert(false);
                Intellisense.EnsureIntellisenseIntegration();

                CSScriptNpp.Plugin.CommandMenuInit();                      //this will also call CSScriptIntellisense.Plugin.CommandMenuInit

                Debugger.OnFrameChanged += () => npp.OnCalltipRequest(-2); //clear_all_cache
            }
            catch (Exception e)
            {
                MessageBox.Show("Initialization failure: " + e, "CS-Script");
            }
        }