コード例 #1
0
        private void SetupIntelliSense()
        {
            // Start the parser service (only call this once at the start of your application)
            SemanticParserService.Start();
            string temp = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), Branding.ProductName + Path.DirectorySeparatorChar + "Temp");

            if (!Directory.Exists(temp))
            {
                Directory.CreateDirectory(temp);
            }

            string intellisenseCacheDir = Path.Combine(temp, @"IntellisenseCacheModelScripts");

            TempAssembliesDir = Path.Combine(temp, @"TempAssemblies");

            if (!Directory.Exists(intellisenseCacheDir))
            {
                Directory.CreateDirectory(intellisenseCacheDir);
            }

            dotNetProjectResolver.CachePath = intellisenseCacheDir;
            //AddMainFunctionAssemblyToProjectResolver();
            ActiproSoftware.SyntaxEditor.Addons.CSharp.CSharpSyntaxLanguage cSharpLanguage = new ActiproSoftware.SyntaxEditor.Addons.CSharp.CSharpSyntaxLanguage();
            syntaxEditorOffscreen.Document.Language     = cSharpLanguage;
            syntaxEditorOffscreen.Document.LanguageData = dotNetProjectResolver;
            syntaxEditorOffscreen.Document.Filename     = System.Guid.NewGuid().ToString() + ".cs";

            ArchAngel.Common.Generator gen = new ArchAngel.Common.Generator(null, Controller.Instance.CurrentProject.TemplateLoader);
            gen.ClearAllDebugLines();

            if (!backgroundWorkerAddReferences.IsBusy)
            {
                backgroundWorkerAddReferences.RunWorkerAsync();
            }
        }
コード例 #2
0
        public MainWindow()
        {
            InitializeComponent();
            InitSkinGallery();

            SemanticParserService.Start();
        }
コード例 #3
0
 internal static void ForceSynchronousReparse(Document document)
 {
     lock (CSharpExtendedSyntaxLanguage.SemanticParserSyncLock)
     {
         if (document == null)
         {
             return;
         }
         SemanticParserService.Stop();
         SemanticParserService.Parse(new SemanticParserServiceRequest(0, document, new ActiproSoftware.SyntaxEditor.TextRange(0, document.Length + 1), SemanticParseFlags.None, (ISemanticParserServiceProcessor)document.Language, (ISemanticParseDataTarget)document));
         SemanticParserService.Start();
     }
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: rajeshwarn/TestProject
 private static void StartSemanticParsingService()
 {
     SemanticParserService.Start();
 }