コード例 #1
0
 public VSTypeScriptContainedLanguageWrapper(
     IVsTextBufferCoordinator bufferCoordinator,
     IComponentModel componentModel,
     VSTypeScriptVisualStudioProjectWrapper project,
     IVsHierarchy hierarchy,
     uint itemid,
     Guid languageServiceGuid) : this(bufferCoordinator, componentModel, project, languageServiceGuid)
 {
 }
コード例 #2
0
 public VSTypeScriptContainedLanguageWrapper(
     IVsTextBufferCoordinator bufferCoordinator,
     IComponentModel componentModel,
     VSTypeScriptVisualStudioProjectWrapper project,
     Guid languageServiceGuid)
 {
     _underlyingObject = new ContainedLanguage(
         bufferCoordinator,
         componentModel,
         componentModel.GetService <VisualStudioWorkspace>(),
         project.Project.Id,
         project.Project,
         languageServiceGuid,
         vbHelperFormattingRule: null);
 }
コード例 #3
0
        public VSTypeScriptContainedLanguageWrapper(
            IVsTextBufferCoordinator bufferCoordinator,
            IComponentModel componentModel,
            VSTypeScriptVisualStudioProjectWrapper project,
            IVsHierarchy hierarchy,
            uint itemid,
            Guid languageServiceGuid)
        {
            var workspace = componentModel.GetService <VisualStudioWorkspace>();
            var filePath  = ContainedLanguage.GetFilePathFromHierarchyAndItemId(hierarchy, itemid);

            _underlyingObject = new ContainedLanguage(
                bufferCoordinator,
                componentModel,
                workspace,
                project.Project.Id,
                project.Project,
                filePath,
                languageServiceGuid,
                vbHelperFormattingRule: null);
        }