File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ toolbar = require './package/toolbar'
8
8
semver = require ' semver'
9
9
10
10
# TODO: Update me when tagging a new relase:
11
- INK_VERSION_COMPAT = " ^0.11.2 "
11
+ INK_VERSION_COMPAT = " ^0.11.6 "
12
12
13
13
INK_LINK = ' [`ink`](https://github.com/JunoLab/atom-ink)'
14
14
LANGUAGE_JULIA_LINK = ' [`language-julia`](https://github.com/JuliaEditorSupport/atom-language-julia)'
Original file line number Diff line number Diff line change @@ -410,6 +410,12 @@ config =
410
410
type : ' boolean'
411
411
default : true
412
412
order : 11
413
+ maxNumberPlots :
414
+ title : ' Maximum Number of Plots in History'
415
+ type : ' number'
416
+ description : ' Increasing this number may lead to high memory consumption and poor performance.'
417
+ default : 50
418
+ order : 12
413
419
consoleOptions :
414
420
type : ' object'
415
421
title : ' Terminal Options'
Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ export default {
60
60
show ( view ) {
61
61
this . ensureVisible ( )
62
62
const v = views . render ( view )
63
- this . pane . show ( new this . ink . Pannable ( v ) )
63
+ this . pane . show ( new this . ink . Pannable ( v ) , {
64
+ maxSize : atom . config . get ( 'julia-client.uiOptions.maxNumberPlots' )
65
+ } )
64
66
return v
65
67
} ,
66
68
@@ -88,7 +90,9 @@ export default {
88
90
ploturl ( url ) {
89
91
const v = this . webview ( url )
90
92
this . ensureVisible ( )
91
- return this . pane . show ( v )
93
+ return this . pane . show ( v , {
94
+ maxSize : atom . config . get ( 'julia-client.uiOptions.maxNumberPlots' )
95
+ } )
92
96
} ,
93
97
94
98
jlpane ( id , opts ) {
You can’t perform that action at this time.
0 commit comments