lint & enabled linter on Azure pipelines

This commit is contained in:
Eugene Pankov
2019-07-24 11:24:57 +02:00
parent b6aa1f764b
commit dc9508f80d
13 changed files with 34 additions and 31 deletions

View File

@@ -15,7 +15,7 @@ import { TerminalContextMenuItemProvider } from './contextMenuProvider'
/** @hidden */
export interface IToastrService {
export interface ToastrServiceProxy {
info (_: string)
}
/**
@@ -80,7 +80,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
protected sessions: SessionsService,
protected electron: ElectronService,
protected terminalContainersService: TerminalFrontendService,
@Inject(ToastrService) protected toastr: IToastrService,
@Inject(ToastrService) protected toastr: ToastrServiceProxy,
protected log: LogService,
@Optional() @Inject(TerminalDecorator) protected decorators: TerminalDecorator[],
@Optional() @Inject(TerminalContextMenuItemProvider) protected contextMenuProviders: TerminalContextMenuItemProvider[],

View File

@@ -284,7 +284,7 @@ export class Session extends BaseSession {
} catch (e) {
return null
}
let cwd = lines[(lines[1] === 'fcwd') ? 2 : 1].substring(1)
let cwd = lines[lines[1] === 'fcwd' ? 2 : 1].substring(1)
if (cwd.startsWith(catalinaDataVolumePrefix)) {
cwd = cwd.substring(catalinaDataVolumePrefix.length)
}