mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
bumped eslint
This commit is contained in:
@@ -36,7 +36,7 @@ export class LocalProfileSettingsComponent implements ProfileSettingsComponent<L
|
||||
// TODO
|
||||
// defaultPath: shell.fsBase,
|
||||
properties: ['openDirectory', 'showHiddenFiles'],
|
||||
}
|
||||
},
|
||||
)).filePaths
|
||||
this.profile.options.cwd = paths[0]
|
||||
}
|
||||
|
@@ -119,7 +119,7 @@ export class TerminalTabComponent extends BaseTerminalTabComponent {
|
||||
],
|
||||
defaultId: 0,
|
||||
cancelId: 1,
|
||||
}
|
||||
},
|
||||
)).response === 0
|
||||
}
|
||||
|
||||
|
@@ -132,5 +132,5 @@ export default class LocalTerminalModule { // eslint-disable-line @typescript-es
|
||||
}
|
||||
|
||||
export { TerminalTabComponent }
|
||||
export { TerminalService, ShellProvider }
|
||||
export { TerminalService }
|
||||
export * from './api'
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import * as fs from 'mz/fs'
|
||||
import * as fsSync from 'fs'
|
||||
import { Injectable } from '@angular/core'
|
||||
import { Logger, LogService, ConfigService, ProfilesService, PartialProfile } from 'tabby-core'
|
||||
import { TerminalTabComponent } from '../components/terminalTab.component'
|
||||
@@ -39,7 +39,7 @@ export class TerminalService {
|
||||
|
||||
cwd = cwd ?? fullProfile.options.cwd
|
||||
|
||||
if (cwd && !fs.existsSync(cwd)) {
|
||||
if (cwd && !fsSync.existsSync(cwd)) {
|
||||
console.warn('Ignoring non-existent CWD:', cwd)
|
||||
cwd = null
|
||||
}
|
||||
|
@@ -1,5 +1,6 @@
|
||||
import * as psNode from 'ps-node'
|
||||
import * as fs from 'mz/fs'
|
||||
import * as fsSync from 'fs'
|
||||
import { Injector } from '@angular/core'
|
||||
import { HostAppService, ConfigService, WIN_BUILD_CONPTY_SUPPORTED, isWindowsBuild, Platform, BootstrapData, BOOTSTRAP_DATA, LogService } from 'tabby-core'
|
||||
import { BaseSession } from 'tabby-terminal'
|
||||
@@ -169,7 +170,7 @@ export class Session extends BaseSession {
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
let cwd = options.cwd || process.env.HOME
|
||||
|
||||
if (!fs.existsSync(cwd)) {
|
||||
if (!fsSync.existsSync(cwd)) {
|
||||
console.warn('Ignoring non-existent CWD:', cwd)
|
||||
cwd = undefined
|
||||
}
|
||||
|
@@ -74,7 +74,7 @@ export class WSLShellProvider extends ShellProvider {
|
||||
}
|
||||
}
|
||||
|
||||
if (!lxss || !lxss.DefaultDistribution || !isWindowsBuild(WIN_BUILD_WSL_EXE_DISTRO_FLAG)) {
|
||||
if (!lxss?.DefaultDistribution || !isWindowsBuild(WIN_BUILD_WSL_EXE_DISTRO_FLAG)) {
|
||||
if (await fs.exists(bashPath)) {
|
||||
return [{
|
||||
id: 'wsl',
|
||||
|
Reference in New Issue
Block a user