Skip to content

Commit

Permalink
add socket timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
CER10TY committed Sep 18, 2019
1 parent be54a47 commit 183dc19
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 49 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to the "hncode2" extension will be documented in this file.

### [0.5.0]

* NEW: Added socket timeout to API calls.
* NEW: Selected entries (Top, New etc) are now greyed out.
* REMOVED: Unnecessary image resources.

### [0.1.5]

* NEW: Hosted documentation provided by TypeDoc.
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ The documentation for this extension is available at https://www.soeren.codes/hn

## Release Notes

### 0.5.0

* NEW: Added socket timeout to API calls.
* NEW: Selected entries (Top, New etc) are now greyed out.
* REMOVED: Unnecessary image resources.

### 0.1.5

* NEW: Hosted documentation provided by TypeDoc.
Expand Down
16 changes: 8 additions & 8 deletions docs/classes/hntreedataprovider.html
Original file line number Diff line number Diff line change
Expand Up @@ -2518,7 +2518,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L13">hncodeprovider.ts:13</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L13">hncodeprovider.ts:13</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2547,7 +2547,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> _on<wbr>Did<wbr>Change<
<div class="tsd-signature tsd-kind-icon">_on<wbr>Did<wbr>Change<wbr>Tree<wbr>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">EventEmitter</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> =&nbsp;new vscode.EventEmitter&lt;any&gt;()</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L10">hncodeprovider.ts:10</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L10">hncodeprovider.ts:10</a></li>
</ul>
</aside>
</section>
Expand All @@ -2557,7 +2557,7 @@ <h3>identifier</h3>
<div class="tsd-signature tsd-kind-icon">identifier<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L18">hncodeprovider.ts:18</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L18">hncodeprovider.ts:18</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2572,7 +2572,7 @@ <h3>on<wbr>Did<wbr>Change<wbr>Tree<wbr>Data</h3>
<div class="tsd-signature tsd-kind-icon">on<wbr>Did<wbr>Change<wbr>Tree<wbr>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Event</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> =&nbsp;this._onDidChangeTreeData.event</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L13">hncodeprovider.ts:13</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L13">hncodeprovider.ts:13</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2596,7 +2596,7 @@ <h3>get<wbr>Children</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L58">hncodeprovider.ts:58</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L58">hncodeprovider.ts:58</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2627,7 +2627,7 @@ <h3>get<wbr>Tree<wbr>Item</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L44">hncodeprovider.ts:44</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L44">hncodeprovider.ts:44</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2658,7 +2658,7 @@ <h3>refresh</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L25">hncodeprovider.ts:25</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L25">hncodeprovider.ts:25</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2680,7 +2680,7 @@ <h3>set<wbr>Identifier</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L33">hncodeprovider.ts:33</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L33">hncodeprovider.ts:33</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
16 changes: 8 additions & 8 deletions docs/classes/story.html
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,7 @@ <h3>constructor</h3>
<aside class="tsd-sources">
<p>Overrides TreeItem.__constructor</p>
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L118">hncodeprovider.ts:118</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L118">hncodeprovider.ts:118</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2595,7 +2595,7 @@ <h3>c<wbr>Value</h3>
<div class="tsd-signature tsd-kind-icon">c<wbr>Value<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L130">hncodeprovider.ts:130</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L130">hncodeprovider.ts:130</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2611,7 +2611,7 @@ <h3>collapsible<wbr>State</h3>
<aside class="tsd-sources">
<p>Overrides TreeItem.collapsibleState</p>
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L129">hncodeprovider.ts:129</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L129">hncodeprovider.ts:129</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2627,7 +2627,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> command</h3>
<aside class="tsd-sources">
<p>Overrides TreeItem.command</p>
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L132">hncodeprovider.ts:132</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L132">hncodeprovider.ts:132</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2643,7 +2643,7 @@ <h3>context<wbr>Value</h3>
<aside class="tsd-sources">
<p>Overrides TreeItem.contextValue</p>
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L151">hncodeprovider.ts:151</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L151">hncodeprovider.ts:151</a></li>
</ul>
</aside>
</section>
Expand Down Expand Up @@ -2689,7 +2689,7 @@ <h3>label</h3>
<aside class="tsd-sources">
<p>Overrides TreeItem.label</p>
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L128">hncodeprovider.ts:128</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L128">hncodeprovider.ts:128</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2738,7 +2738,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> <span class="tsd-flag t
<div class="tsd-signature tsd-kind-icon">url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">vscode.Uri</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L131">hncodeprovider.ts:131</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L131">hncodeprovider.ts:131</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2757,7 +2757,7 @@ <h3>description</h3>
<aside class="tsd-sources">
<p>Overrides TreeItem.description</p>
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/hncodeprovider.ts#L137">hncodeprovider.ts:137</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/hncodeprovider.ts#L137">hncodeprovider.ts:137</a></li>
</ul>
</aside>
</section>
Expand Down
34 changes: 21 additions & 13 deletions docs/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -2474,6 +2474,14 @@ <h2>Documentation</h2>
<a href="#release-notes" id="release-notes" style="color: inherit; text-decoration: none;">
<h2>Release Notes</h2>
</a>
<a href="#050" id="050" style="color: inherit; text-decoration: none;">
<h3>0.5.0</h3>
</a>
<ul>
<li>NEW: Added socket timeout to API calls.</li>
<li>NEW: Selected entries (Top, New etc) are now greyed out.</li>
<li>REMOVED: Unnecessary image resources.</li>
</ul>
<a href="#015" id="015" style="color: inherit; text-decoration: none;">
<h3>0.1.5</h3>
</a>
Expand Down Expand Up @@ -2575,7 +2583,7 @@ <h3><span class="tsd-flag ts-flagConst">Const</span> BASE_<wbr>URL</h3>
<div class="tsd-signature tsd-kind-icon">BASE_<wbr>URL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"https://hacker-news.firebaseio.com/v0/"</span><span class="tsd-signature-symbol"> =&nbsp;&quot;https://hacker-news.firebaseio.com/v0/&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/api.ts#L9">api.ts:9</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/api.ts#L9">api.ts:9</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2590,7 +2598,7 @@ <h3><span class="tsd-flag ts-flagConst">Const</span> config</h3>
<div class="tsd-signature tsd-kind-icon">config<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WorkspaceConfiguration</span><span class="tsd-signature-symbol"> =&nbsp;vscode.workspace.getConfiguration(&quot;hncode2&quot;)</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/api.ts#L14">api.ts:14</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/api.ts#L14">api.ts:14</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2605,7 +2613,7 @@ <h3><span class="tsd-flag ts-flagConst">Const</span> rest<wbr>Client</h3>
<div class="tsd-signature tsd-kind-icon">rest<wbr>Client<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">RestClient</span><span class="tsd-signature-symbol"> =&nbsp;new rm.RestClient(&#x27;hncode&#x27;, BASE_URL, undefined, { socketTimeout: config.requestTimeout })</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/api.ts#L19">api.ts:19</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/api.ts#L19">api.ts:19</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2627,7 +2635,7 @@ <h3>activate</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/extension.ts#L11">extension.ts:11</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/extension.ts#L11">extension.ts:11</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2658,7 +2666,7 @@ <h3>deactivate</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/extension.ts#L32">extension.ts:32</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/extension.ts#L32">extension.ts:32</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand All @@ -2675,7 +2683,7 @@ <h3>get<wbr>Ask</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/api.ts#L57">api.ts:57</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/api.ts#L57">api.ts:57</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2697,7 +2705,7 @@ <h3>get<wbr>New</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/api.ts#L72">api.ts:72</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/api.ts#L72">api.ts:72</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2719,7 +2727,7 @@ <h3>get<wbr>Show</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/api.ts#L87">api.ts:87</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/api.ts#L87">api.ts:87</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2741,7 +2749,7 @@ <h3>get<wbr>Stories</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/api.ts#L103">api.ts:103</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/api.ts#L103">api.ts:103</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2772,7 +2780,7 @@ <h3>get<wbr>Story</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/api.ts#L25">api.ts:25</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/api.ts#L25">api.ts:25</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2803,7 +2811,7 @@ <h3>get<wbr>Top</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/api.ts#L42">api.ts:42</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/api.ts#L42">api.ts:42</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2825,7 +2833,7 @@ <h3>main</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/test/runTest.ts#L5">test/runTest.ts:5</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/test/runTest.ts#L5">test/runTest.ts:5</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
Expand All @@ -2842,7 +2850,7 @@ <h3>run</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/3a0bae5/src/test/suite/index.ts#L5">test/suite/index.ts:5</a></li>
<li>Defined in <a href="https://github.com/CER10TY/hncode2/blob/be54a47/src/test/suite/index.ts#L5">test/suite/index.ts:5</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
Expand Down
Loading

0 comments on commit 183dc19

Please sign in to comment.