mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-04 14:04:56 +00:00
lint
This commit is contained in:
@@ -164,7 +164,7 @@ export class TerminalTabComponent extends BaseTabComponent {
|
||||
this.htermVisible = true
|
||||
})
|
||||
|
||||
this.frontend.resize$.pipe(first()).subscribe(async ({columns, rows}) => {
|
||||
this.frontend.resize$.pipe(first()).subscribe(async ({ columns, rows }) => {
|
||||
if (!this.session.open) {
|
||||
this.initializeSession(columns, rows)
|
||||
}
|
||||
@@ -301,7 +301,7 @@ export class TerminalTabComponent extends BaseTabComponent {
|
||||
this.sendInput(data)
|
||||
}),
|
||||
|
||||
this.frontend.resize$.subscribe(({columns, rows}) => {
|
||||
this.frontend.resize$.subscribe(({ columns, rows }) => {
|
||||
console.log(`Resizing to ${columns}x${rows}`)
|
||||
this.zone.run(() => {
|
||||
if (this.session.open) {
|
||||
|
@@ -5,10 +5,8 @@ import { BrowserModule } from '@angular/platform-browser'
|
||||
import { FormsModule } from '@angular/forms'
|
||||
import { NgbModule } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { ToastrModule } from 'ngx-toastr'
|
||||
import TerminusCorePlugin from 'terminus-core'
|
||||
import { HostAppService } from 'terminus-core'
|
||||
|
||||
import { ToolbarButtonProvider, TabRecoveryProvider, ConfigProvider, HotkeysService, HotkeyProvider, AppService, ConfigService } from 'terminus-core'
|
||||
import TerminusCorePlugin, { HostAppService, ToolbarButtonProvider, TabRecoveryProvider, ConfigProvider, HotkeysService, HotkeyProvider, AppService, ConfigService } from 'terminus-core'
|
||||
import { SettingsTabProvider } from 'terminus-settings'
|
||||
|
||||
import { AppearanceSettingsTabComponent } from './components/appearanceSettingsTab.component'
|
||||
|
@@ -181,7 +181,7 @@ export class Session extends BaseSession {
|
||||
}))
|
||||
}
|
||||
if (process.platform === 'win32') {
|
||||
return await new Promise<IChildProcess[]>(resolve => {
|
||||
return new Promise<IChildProcess[]>(resolve => {
|
||||
windowsProcessTree.getProcessTree(this.truePID, tree => {
|
||||
resolve(tree ? tree.children.map(child => ({
|
||||
pid: child.pid,
|
||||
@@ -241,7 +241,7 @@ export class Session extends BaseSession {
|
||||
}
|
||||
}
|
||||
if (process.platform === 'linux') {
|
||||
return await fs.readlink(`/proc/${this.truePID}/cwd`)
|
||||
return fs.readlink(`/proc/${this.truePID}/cwd`)
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
Reference in New Issue
Block a user