Changeset 2119 for trunk/tools


Ignore:
Timestamp:
Nov 29, 2012, 1:37:32 AM (7 years ago)
Author:
sam
Message:

vslol: add a classifier for C, C++, C# and LolFx files. Only classifies
using a naive regex for now.

Location:
trunk/tools/vslol
Files:
2 added
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/tools/vslol/Properties/AssemblyInfo.cs

    r2118 r2119  
    2121[assembly: Guid("58968f91-edb8-4a4c-9f4f-ba39fdb4a21a")]
    2222
    23 [assembly: AssemblyVersion("1.0.0.3")]
    24 [assembly: AssemblyFileVersion("1.0.0.3")]
     23[assembly: AssemblyVersion("1.0.0.4")]
     24[assembly: AssemblyFileVersion("1.0.0.4")]
  • trunk/tools/vslol/VsLol.cs

    r2118 r2119  
    9393                    m_pane = null;
    9494            }
     95
     96            if (m_pane != null)
     97                m_pane.Activate();
    9598        }
    9699
     
    99102            OpenBuildPane();
    100103
    101             if (m_pane != null)
     104            if (m_pane == null)
    102105            {
    103                 m_pane.Activate();
    104                 m_pane.Clear();
     106                m_backlog = "";
     107                return;
    105108            }
     109
     110            m_pane.Clear();
    106111        }
    107112
     
    110115            OpenBuildPane();
    111116
    112             if (m_pane != null)
    113                 m_pane.OutputString(s);
     117            if (m_pane == null)
     118            {
     119                m_backlog += s;
     120                return;
     121            }
     122
     123            m_pane.OutputString(m_backlog);
     124            m_backlog = "";
     125            m_pane.OutputString(s);
    114126        }
    115127
    116128        private static IVsOutputWindow m_window = null;
    117129        private static IVsOutputWindowPane m_pane = null;
     130        private static string m_backlog = "";
    118131    }
    119132
  • trunk/tools/vslol/VsLol.csproj

    r2118 r2119  
    5555    </Reference>
    5656    <Reference Include="Microsoft.CSharp" />
     57    <Reference Include="Microsoft.VisualStudio.ComponentModelHost, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
     58    <Reference Include="Microsoft.VisualStudio.CoreUtility, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
     59    <Reference Include="Microsoft.VisualStudio.Language.StandardClassification, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
    5760    <Reference Include="Microsoft.VisualStudio.OLE.Interop" />
    5861    <Reference Include="Microsoft.VisualStudio.Package.LanguageService.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
     
    6164    <Reference Include="Microsoft.VisualStudio.Shell.Interop.9.0" />
    6265    <Reference Include="Microsoft.VisualStudio.Shell.Interop.10.0" />
     66    <Reference Include="Microsoft.VisualStudio.Text.Data, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
     67    <Reference Include="Microsoft.VisualStudio.Text.Logic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
     68    <Reference Include="Microsoft.VisualStudio.Text.UI, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
     69    <Reference Include="Microsoft.VisualStudio.Text.UI.Wpf, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
    6370    <Reference Include="Microsoft.VisualStudio.TextManager.Interop" />
    6471    <Reference Include="Microsoft.VisualStudio.Shell.10.0">
     
    6774    <Reference Include="Microsoft.VisualStudio.Shell.Immutable.10.0" />
    6875    <Reference Include="Microsoft.VisualStudio.TextManager.Interop.8.0, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
     76    <Reference Include="PresentationCore" />
    6977    <Reference Include="System" />
     78    <Reference Include="System.ComponentModel.Composition" />
    7079    <Reference Include="System.Core" />
    7180    <Reference Include="System.Data" />
     
    7483    <Reference Include="System.Windows.Forms" />
    7584    <Reference Include="System.Xml" />
     85    <Reference Include="WindowsBase" />
    7686  </ItemGroup>
    7787  <ItemGroup>
     88    <Compile Include="CppKeywordClassifier.cs" />
    7889    <Compile Include="LolFxLanguageService.cs" />
    7990    <Compile Include="MenuGenerateCompilers.cs" />
     
    8596    </Compile>
    8697    <Compile Include="VsLol.cs" />
    87     <Compile Include="AssemblyInfo.cs" />
     98    <Compile Include="Properties\AssemblyInfo.cs" />
    8899  </ItemGroup>
    89100  <ItemGroup>
  • trunk/tools/vslol/source.extension.vsixmanifest

    r2117 r2119  
    44    <Name>VsLol</Name>
    55    <Author>Lol</Author>
    6     <Version>1.0.0.3</Version>
     6    <Version>1.0.0.4</Version>
    77    <Description xml:space="preserve">Lol Engine Productivity Tools.</Description>
    88    <Locale>1033</Locale>
     
    2222  <Content>
    2323    <VsPackage>|%CurrentProject%;PkgdefProjectOutputGroup|</VsPackage>
     24    <MefComponent>|%CurrentProject%|</MefComponent>
    2425  </Content>
    2526</Vsix>
Note: See TracChangeset for help on using the changeset viewer.