@@ -45,7 +45,7 @@ export function activate (_ink) {
45
45
atom . config . observe ( 'julia-client.consoleOptions.cursorStyle' , updateTerminalSettings ) ,
46
46
atom . config . observe ( 'julia-client.consoleOptions.maximumConsoleSize' , updateTerminalSettings ) ,
47
47
atom . config . observe ( 'julia-client.consoleOptions.macOptionIsMeta' , updateTerminalSettings ) ,
48
- atom . config . observe ( 'julia-client.consoleOptions.rendererType ' , updateTerminalSettings ) ,
48
+ atom . config . observe ( 'julia-client.consoleOptions.terminalRendererType ' , updateTerminalSettings ) ,
49
49
atom . config . observe ( 'julia-client.consoleOptions.cursorBlink' , updateTerminalSettings )
50
50
)
51
51
@@ -198,7 +198,7 @@ function terminalOptions () {
198
198
const opts = {
199
199
scrollback : atom . config . get ( 'julia-client.consoleOptions.maximumConsoleSize' ) ,
200
200
cursorStyle : atom . config . get ( 'julia-client.consoleOptions.cursorStyle' ) ,
201
- rendererType : atom . config . get ( 'julia-client.consoleOptions.rendererType' ) ? 'dom' : 'canvas' ,
201
+ rendererType : atom . config . get ( 'julia-client.consoleOptions.terminalRendererType' ) ,
202
202
cursorBlink : atom . config . get ( 'julia-client.consoleOptions.cursorBlink' ) ,
203
203
}
204
204
if ( process . platform === 'darwin' ) {
@@ -211,22 +211,7 @@ function updateTerminalSettings () {
211
211
const settings = terminalOptions ( )
212
212
forEachPane ( ( item ) => {
213
213
for ( const key in settings ) {
214
- if ( key === 'rendererType' ) {
215
- if ( ! item . element . initialized ) continue
216
- }
217
- try {
218
- const setting = settings [ key ]
219
- item . terminal . setOption ( key , setting )
220
- if ( ! item . persistentState ) {
221
- item . persistentState = { opts : { } }
222
- }
223
- if ( ! item . persistentState . opts ) {
224
- item . persistentState . opts = { }
225
- }
226
- item . persistentState . opts [ key ] = setting
227
- } catch ( err ) {
228
- console . warn ( 'Error while applying settings for terminal:' , item , err )
229
- }
214
+ item . setOption ( key , settings [ key ] )
230
215
}
231
216
} , / t e r m i n a l \- j u l i a \- \d + | j u l i a \- t e r m i n a l | t e r m i n a l \- r e m o t e \- j u l i a \- \d + / )
232
217
}
0 commit comments