Skip to content

Commit

Permalink
release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomFlidr committed Mar 26, 2017
1 parent a6c676b commit 5a8dd96
Show file tree
Hide file tree
Showing 6 changed files with 231 additions and 0 deletions.
53 changes: 53 additions & 0 deletions Visual C#/ddc.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>ddc</Title>
<Shortcut>ddc</Shortcut>
<Description>Code snippet for: Desharp.Debug.Configure(new Desharp.DebugConfig {...});</Description>
<Author>Tom Flídr</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal Editable="false">
<ID>DesharpDebug</ID>
<Function>SimpleTypeName(global::Desharp.Debug)</Function>
</Literal>
<Literal>
<ID>enabled</ID>
<Default>true</Default>
<ToolTip>Debug dumping into output is enabled or not.</ToolTip>
</Literal>
<Literal>
<ID>depth</ID>
<Default>3</Default>
<ToolTip>Default dumping depth.</ToolTip>
</Literal>
<Literal>
<ID>directory</ID>
<Default>logs</Default>
<ToolTip>File logs directory, relative path from application root dir.</ToolTip>
</Literal>
<Literal>
<ID>outputType</ID>
<Default>Html</Default>
<ToolTip>File logs output type.</ToolTip>
</Literal>
<Literal>
<ID>snippetEnd</ID>
<Default></Default>
<ToolTip>Snippet end.</ToolTip>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[$DesharpDebug$.Configure(new Desharp.DebugConfig {
Enabled = $enabled$,
Depth = $depth$,
Directory = "~/$directory$",
OutputType = Desharp.OutputType.$outputType$
});$snippetEnd$]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
33 changes: 33 additions & 0 deletions Visual C#/ddd.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>ddd</Title>
<Shortcut>ddd</Shortcut>
<Description>Code snippet for: Desharp.Debug.Dump(obj);</Description>
<Author>Tom Flídr</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal Editable="false">
<ID>DesharpDebug</ID>
<Function>SimpleTypeName(global::Desharp.Debug)</Function>
</Literal>
<Literal>
<ID>obj</ID>
<Default>obj</Default>
<ToolTip>Any C# object to dump into HDD log.</ToolTip>
</Literal>
<Literal>
<ID>snippetEnd</ID>
<Default></Default>
<ToolTip>Snippet end.</ToolTip>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[$DesharpDebug$.Dump($obj$);$snippetEnd$]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
46 changes: 46 additions & 0 deletions Visual C#/dddo.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>dddo</Title>
<Shortcut>dddo</Shortcut>
<Description>Code snippet for dump with options: Desharp.Debug.Dump(obj, new Desharp.DumpOptions {...});</Description>
<Author>Tom Flídr</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal Editable="false">
<ID>DesharpDebug</ID>
<Function>SimpleTypeName(global::Desharp.Debug)</Function>
</Literal>
<Literal>
<ID>obj</ID>
<Default>obj</Default>
<ToolTip>Any C# object to dump into HDD log.</ToolTip>
</Literal>
<Literal>
<ID>depth</ID>
<Default>4</Default>
<ToolTip>First argument C# object dumping depth.</ToolTip>
</Literal>
<Literal>
<ID>return</ID>
<Default>false</Default>
<ToolTip>Return dumped object as string.</ToolTip>
</Literal>
<Literal>
<ID>snippetEnd</ID>
<Default></Default>
<ToolTip>Snippet end.</ToolTip>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[$DesharpDebug$.Dump($obj$, new Desharp.DumpOptions {
Depth = $depth$,
Return = $return$
});$snippetEnd$]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
33 changes: 33 additions & 0 deletions Visual C#/dde.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>dde</Title>
<Shortcut>dde</Shortcut>
<Description>Code snippet for logging exceptions: Desharp.Debug.Log(e);</Description>
<Author>Tom Flídr</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal Editable="false">
<ID>DesharpDebug</ID>
<Function>SimpleTypeName(global::Desharp.Debug)</Function>
</Literal>
<Literal>
<ID>e</ID>
<Default>e</Default>
<ToolTip>Any C# Exception instance to dump into HDD log.</ToolTip>
</Literal>
<Literal>
<ID>snippetEnd</ID>
<Default></Default>
<ToolTip>Snippet end.</ToolTip>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[$DesharpDebug$.Log($e$);$snippetEnd$]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
38 changes: 38 additions & 0 deletions Visual C#/ddl.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>ddl</Title>
<Shortcut>ddl</Shortcut>
<Description>Code snippet for: Desharp.Debug.Log(obj, Desharp.Level.DEBUG);</Description>
<Author>Tom Flídr</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal Editable="false">
<ID>DesharpDebug</ID>
<Function>SimpleTypeName(global::Desharp.Debug)</Function>
</Literal>
<Literal>
<ID>obj</ID>
<Default>obj</Default>
<ToolTip>Any C# object to dump into HDD log.</ToolTip>
</Literal>
<Literal>
<ID>level</ID>
<Default>DEBUG</Default>
<ToolTip>Log level - ALERT, CRITICAL, DEBUG, EMERGENCY, ERROR, INFO, JAVASCRIPT, NOTICE or WARNING.</ToolTip>
</Literal>
<Literal>
<ID>snippetEnd</ID>
<Default></Default>
<ToolTip>Snippet end.</ToolTip>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[$DesharpDebug$.Log($obj$, Desharp.Level.$level$);$snippetEnd$]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
28 changes: 28 additions & 0 deletions Visual C#/dds.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>dds</Title>
<Shortcut>dds</Shortcut>
<Description>Code snippet for: Desharp.Debug.Stop();</Description>
<Author>Tom Flídr</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal Editable="false">
<ID>DesharpDebug</ID>
<Function>SimpleTypeName(global::Desharp.Debug)</Function>
</Literal>
<Literal>
<ID>snippetEnd</ID>
<Default></Default>
<ToolTip>Snippet end.</ToolTip>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[$DesharpDebug$.Stop();$snippetEnd$]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>

0 comments on commit 5a8dd96

Please sign in to comment.