예제 #1
0
        public int GetLanguage(IVsHierarchy pHierarchy, uint itemid, IVsTextBufferCoordinator pBufferCoordinator, out IVsContainedLanguage ppLanguage)
        {
            ModuleId id = new ModuleId(pHierarchy, itemid);
            PythonContainedLanguage lang;

            if (!languages.TryGetValue(id, out lang))
            {
                lang = new PythonContainedLanguage(pBufferCoordinator, intellisenseProject, itemid);
                languages.Add(id, lang);
            }
            ppLanguage = lang;
            return(VSConstants.S_OK);
        }
 public int GetLanguage(IVsHierarchy pHierarchy, uint itemid, IVsTextBufferCoordinator pBufferCoordinator, out IVsContainedLanguage ppLanguage)
 {
     ModuleId id = new ModuleId(pHierarchy, itemid);
     PythonContainedLanguage lang;
     if (!languages.TryGetValue(id, out lang)) {
         lang = new PythonContainedLanguage(pBufferCoordinator, intellisenseProject, itemid);
         languages.Add(id, lang);
     }
     ppLanguage = lang;
     return VSConstants.S_OK;
 }