hunk.code_window:     term.on('data', function (data) {
         socket.send(data);
       });
       this.$window.onresize = function () {
         term.fit();
       };
       socket.onmessage = function (msg) {
         term.write(msg.data);
       };
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:       vm.TerminalWindow.terminalresize();
  
hunk.file_path: app/kubernetes/components/kubectl-shell/kubectl-shell.controller.js
hunk.type: replace
file: // This model is based on https://github.com/moby/moby/blob/0ac25dfc751fa4304ab45afd5cd8705c2235d101/api/types/plugin.go#L8-L31
  // instead of the official documentation.
  // See: https://github.com/moby/moby/issues/34241
  export function PluginViewModel(data) {
    this.Id = data.Id;
    this.Name = data.Name;
    this.Enabled = data.Enabled;
    this.Config = data.Config;
  }
  