File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/node/src/integrations Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { NodeClient } from '../client';
9
9
const FILE_CONTENT_CACHE = new LRUMap < string , string | null > ( 100 ) ;
10
10
const DEFAULT_LINES_OF_CONTEXT = 7 ;
11
11
12
+ // TODO: Replace with promisify when minimum supported node >= v8
12
13
function readTextFileAsync ( path : string ) : Promise < string > {
13
14
return new Promise ( ( resolve , reject ) => {
14
15
readFile ( path , 'utf8' , ( err , data ) => {
@@ -28,10 +29,11 @@ export function resetFileContentCache(): void {
28
29
29
30
interface ContextLinesOptions {
30
31
/**
31
- * Sets the number of context lines for each frame when loading a file
32
+ * Sets the number of context lines for each frame when loading a file.
33
+ * Defaults to 7.
32
34
*
33
35
* Set to 0 to disable loading and inclusion of source files.
34
- * */
36
+ **/
35
37
frameContextLines ?: number ;
36
38
}
37
39
You can’t perform that action at this time.
0 commit comments