@theia/terminal 1.19.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,7 @@ export interface TerminalWidgetFactoryOptions extends Partial<TerminalWidgetOpti
49
49
  @injectable()
50
50
  export class TerminalWidgetImpl extends TerminalWidget implements StatefulWidget {
51
51
 
52
- static LABEL = nls.localize('vscode/settingsLayout/terminal', 'Terminal');
52
+ static LABEL = nls.localizeByDefault('Terminal');
53
53
  protected terminalKind = 'user';
54
54
  protected _terminalId = -1;
55
55
  protected readonly onTermDidClose = new Emitter<TerminalWidget>();
@@ -166,8 +166,11 @@ export class TerminalWidgetImpl extends TerminalWidget implements StatefulWidget
166
166
  } else if (preferenceName === 'cursorStyle') {
167
167
  preferenceValue = this.getCursorStyle();
168
168
  }
169
-
170
- this.term.setOption(preferenceName, preferenceValue);
169
+ try {
170
+ this.term.setOption(preferenceName, preferenceValue);
171
+ } catch (e) {
172
+ console.debug(`xterm configuration: '${preferenceName}' with value '${preferenceValue}' is not valid.`);
173
+ }
171
174
  this.needsResize = true;
172
175
  this.update();
173
176
  }
@@ -249,7 +252,7 @@ export class TerminalWidgetImpl extends TerminalWidget implements StatefulWidget
249
252
 
250
253
  static getFollowLinkHover(): string {
251
254
  const cmdCtrl = isOSX ? 'Cmd' : 'Ctrl';
252
- return nls.localize('vscode/terminalLinkManager/followLink', 'Follow link') + ' (' +
255
+ return nls.localizeByDefault('Follow link') + ' (' +
253
256
  nls.localize(`vscode/terminalLinkManager/terminalLinkHandler.followLink${cmdCtrl}`, `${cmdCtrl} + Click`) + ')';
254
257
  }
255
258