Skip to content

Commit 5a8dd96

Browse files
committed
release 1.0.0
1 parent a6c676b commit 5a8dd96

File tree

6 files changed

+231
-0
lines changed

6 files changed

+231
-0
lines changed

Visual C#/ddc.snippet

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>ddc</Title>
6+
<Shortcut>ddc</Shortcut>
7+
<Description>Code snippet for: Desharp.Debug.Configure(new Desharp.DebugConfig {...});</Description>
8+
<Author>Tom Flídr</Author>
9+
<SnippetTypes>
10+
<SnippetType>Expansion</SnippetType>
11+
</SnippetTypes>
12+
</Header>
13+
<Snippet>
14+
<Declarations>
15+
<Literal Editable="false">
16+
<ID>DesharpDebug</ID>
17+
<Function>SimpleTypeName(global::Desharp.Debug)</Function>
18+
</Literal>
19+
<Literal>
20+
<ID>enabled</ID>
21+
<Default>true</Default>
22+
<ToolTip>Debug dumping into output is enabled or not.</ToolTip>
23+
</Literal>
24+
<Literal>
25+
<ID>depth</ID>
26+
<Default>3</Default>
27+
<ToolTip>Default dumping depth.</ToolTip>
28+
</Literal>
29+
<Literal>
30+
<ID>directory</ID>
31+
<Default>logs</Default>
32+
<ToolTip>File logs directory, relative path from application root dir.</ToolTip>
33+
</Literal>
34+
<Literal>
35+
<ID>outputType</ID>
36+
<Default>Html</Default>
37+
<ToolTip>File logs output type.</ToolTip>
38+
</Literal>
39+
<Literal>
40+
<ID>snippetEnd</ID>
41+
<Default></Default>
42+
<ToolTip>Snippet end.</ToolTip>
43+
</Literal>
44+
</Declarations>
45+
<Code Language="csharp"><![CDATA[$DesharpDebug$.Configure(new Desharp.DebugConfig {
46+
Enabled = $enabled$,
47+
Depth = $depth$,
48+
Directory = "~/$directory$",
49+
OutputType = Desharp.OutputType.$outputType$
50+
});$snippetEnd$]]></Code>
51+
</Snippet>
52+
</CodeSnippet>
53+
</CodeSnippets>

Visual C#/ddd.snippet

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>ddd</Title>
6+
<Shortcut>ddd</Shortcut>
7+
<Description>Code snippet for: Desharp.Debug.Dump(obj);</Description>
8+
<Author>Tom Flídr</Author>
9+
<SnippetTypes>
10+
<SnippetType>Expansion</SnippetType>
11+
</SnippetTypes>
12+
</Header>
13+
<Snippet>
14+
<Declarations>
15+
<Literal Editable="false">
16+
<ID>DesharpDebug</ID>
17+
<Function>SimpleTypeName(global::Desharp.Debug)</Function>
18+
</Literal>
19+
<Literal>
20+
<ID>obj</ID>
21+
<Default>obj</Default>
22+
<ToolTip>Any C# object to dump into HDD log.</ToolTip>
23+
</Literal>
24+
<Literal>
25+
<ID>snippetEnd</ID>
26+
<Default></Default>
27+
<ToolTip>Snippet end.</ToolTip>
28+
</Literal>
29+
</Declarations>
30+
<Code Language="csharp"><![CDATA[$DesharpDebug$.Dump($obj$);$snippetEnd$]]></Code>
31+
</Snippet>
32+
</CodeSnippet>
33+
</CodeSnippets>

Visual C#/dddo.snippet

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>dddo</Title>
6+
<Shortcut>dddo</Shortcut>
7+
<Description>Code snippet for dump with options: Desharp.Debug.Dump(obj, new Desharp.DumpOptions {...});</Description>
8+
<Author>Tom Flídr</Author>
9+
<SnippetTypes>
10+
<SnippetType>Expansion</SnippetType>
11+
</SnippetTypes>
12+
</Header>
13+
<Snippet>
14+
<Declarations>
15+
<Literal Editable="false">
16+
<ID>DesharpDebug</ID>
17+
<Function>SimpleTypeName(global::Desharp.Debug)</Function>
18+
</Literal>
19+
<Literal>
20+
<ID>obj</ID>
21+
<Default>obj</Default>
22+
<ToolTip>Any C# object to dump into HDD log.</ToolTip>
23+
</Literal>
24+
<Literal>
25+
<ID>depth</ID>
26+
<Default>4</Default>
27+
<ToolTip>First argument C# object dumping depth.</ToolTip>
28+
</Literal>
29+
<Literal>
30+
<ID>return</ID>
31+
<Default>false</Default>
32+
<ToolTip>Return dumped object as string.</ToolTip>
33+
</Literal>
34+
<Literal>
35+
<ID>snippetEnd</ID>
36+
<Default></Default>
37+
<ToolTip>Snippet end.</ToolTip>
38+
</Literal>
39+
</Declarations>
40+
<Code Language="csharp"><![CDATA[$DesharpDebug$.Dump($obj$, new Desharp.DumpOptions {
41+
Depth = $depth$,
42+
Return = $return$
43+
});$snippetEnd$]]></Code>
44+
</Snippet>
45+
</CodeSnippet>
46+
</CodeSnippets>

Visual C#/dde.snippet

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>dde</Title>
6+
<Shortcut>dde</Shortcut>
7+
<Description>Code snippet for logging exceptions: Desharp.Debug.Log(e);</Description>
8+
<Author>Tom Flídr</Author>
9+
<SnippetTypes>
10+
<SnippetType>Expansion</SnippetType>
11+
</SnippetTypes>
12+
</Header>
13+
<Snippet>
14+
<Declarations>
15+
<Literal Editable="false">
16+
<ID>DesharpDebug</ID>
17+
<Function>SimpleTypeName(global::Desharp.Debug)</Function>
18+
</Literal>
19+
<Literal>
20+
<ID>e</ID>
21+
<Default>e</Default>
22+
<ToolTip>Any C# Exception instance to dump into HDD log.</ToolTip>
23+
</Literal>
24+
<Literal>
25+
<ID>snippetEnd</ID>
26+
<Default></Default>
27+
<ToolTip>Snippet end.</ToolTip>
28+
</Literal>
29+
</Declarations>
30+
<Code Language="csharp"><![CDATA[$DesharpDebug$.Log($e$);$snippetEnd$]]></Code>
31+
</Snippet>
32+
</CodeSnippet>
33+
</CodeSnippets>

Visual C#/ddl.snippet

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>ddl</Title>
6+
<Shortcut>ddl</Shortcut>
7+
<Description>Code snippet for: Desharp.Debug.Log(obj, Desharp.Level.DEBUG);</Description>
8+
<Author>Tom Flídr</Author>
9+
<SnippetTypes>
10+
<SnippetType>Expansion</SnippetType>
11+
</SnippetTypes>
12+
</Header>
13+
<Snippet>
14+
<Declarations>
15+
<Literal Editable="false">
16+
<ID>DesharpDebug</ID>
17+
<Function>SimpleTypeName(global::Desharp.Debug)</Function>
18+
</Literal>
19+
<Literal>
20+
<ID>obj</ID>
21+
<Default>obj</Default>
22+
<ToolTip>Any C# object to dump into HDD log.</ToolTip>
23+
</Literal>
24+
<Literal>
25+
<ID>level</ID>
26+
<Default>DEBUG</Default>
27+
<ToolTip>Log level - ALERT, CRITICAL, DEBUG, EMERGENCY, ERROR, INFO, JAVASCRIPT, NOTICE or WARNING.</ToolTip>
28+
</Literal>
29+
<Literal>
30+
<ID>snippetEnd</ID>
31+
<Default></Default>
32+
<ToolTip>Snippet end.</ToolTip>
33+
</Literal>
34+
</Declarations>
35+
<Code Language="csharp"><![CDATA[$DesharpDebug$.Log($obj$, Desharp.Level.$level$);$snippetEnd$]]></Code>
36+
</Snippet>
37+
</CodeSnippet>
38+
</CodeSnippets>

Visual C#/dds.snippet

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>dds</Title>
6+
<Shortcut>dds</Shortcut>
7+
<Description>Code snippet for: Desharp.Debug.Stop();</Description>
8+
<Author>Tom Flídr</Author>
9+
<SnippetTypes>
10+
<SnippetType>Expansion</SnippetType>
11+
</SnippetTypes>
12+
</Header>
13+
<Snippet>
14+
<Declarations>
15+
<Literal Editable="false">
16+
<ID>DesharpDebug</ID>
17+
<Function>SimpleTypeName(global::Desharp.Debug)</Function>
18+
</Literal>
19+
<Literal>
20+
<ID>snippetEnd</ID>
21+
<Default></Default>
22+
<ToolTip>Snippet end.</ToolTip>
23+
</Literal>
24+
</Declarations>
25+
<Code Language="csharp"><![CDATA[$DesharpDebug$.Stop();$snippetEnd$]]></Code>
26+
</Snippet>
27+
</CodeSnippet>
28+
</CodeSnippets>

0 commit comments

Comments
 (0)