public static Les2SyntaxForVS Get(VSImports vs, ITextBuffer buffer) { return(buffer.Properties.GetOrCreateSingletonProperty <Les2SyntaxForVS>(() => new Les2SyntaxForVS(new VSBuffer(vs, buffer)))); }
[Import] VSImports _vs = null; // Set via MEF public static EcsSyntaxForVS Get(VSImports vs, ITextBuffer buffer) { return(buffer.Properties.GetOrCreateSingletonProperty <EcsSyntaxForVS>( delegate { return new EcsSyntaxForVS(new VSBuffer(vs, buffer)); })); }
[Import] VSImports _vs = null; // Set via MEF public static EcsSyntaxForVS Get(VSImports vs, ITextBuffer buffer) { return buffer.Properties.GetOrCreateSingletonProperty<EcsSyntaxForVS>( delegate { return new EcsSyntaxForVS(new VSBuffer(vs, buffer)); }); }
public VSBuffer(VSImports vs, ITextBuffer buffer) { VS = vs; Buffer = buffer; }