File tree Expand file tree Collapse file tree 8 files changed +11
-16
lines changed
Expand file tree Collapse file tree 8 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 11// tslint:disable:max-classes-per-file
22import { BufferedNodeProcess , BufferedProcess , Emitter } from "atom"
3- import byline = require ( "byline" )
3+ import byline from "byline"
44import { ChildProcess } from "child_process"
55import { Readable , Transform } from "stream"
66import * as protocol from "typescript/lib/protocol"
Original file line number Diff line number Diff line change 11import * as fs from "fs"
22import * as jsonc from "jsonc-parser"
33import * as path from "path"
4- import * as Resolve from "resolve"
4+ import Resolve from "resolve"
55
66export interface Binary {
77 version : string
Original file line number Diff line number Diff line change 11import * as etch from "etch"
22import { handlePromise } from "../../../../utils"
3- import { BuildStatus , TBuildStatus } from "./buildStatus"
3+ import { BuildStatus } from "./buildStatus"
4+ import type { TBuildStatus } from "./buildStatus"
45import { ConfigPath } from "./configPath"
56import { Tooltip } from "./tooltip"
67export { TBuildStatus }
Original file line number Diff line number Diff line change 22// and https://atom.io/packages/ide-flow
33
44import * as Atom from "atom"
5- import fs = require ( "fs" )
5+ import fs from "fs"
66import { GetClientFunction } from "../../../client"
7- import atomUtils = require ( "../utils" )
7+ import * as atomUtils from "../utils"
88import { listen } from "../utils/element-listener"
99import { TooltipController } from "./controller"
1010import { bufferPositionFromMouseEvent } from "./util"
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as Atom from "atom"
22import { Signature , SignatureParameter } from "atom/ide"
33import * as path from "path"
44import * as ts from "typescript"
5- import {
5+ import type {
66 CodeEdit ,
77 FormatCodeSettings ,
88 Location ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import {isEqual} from "lodash"
44import { NavigationTree } from "typescript/lib/protocol"
55import { GetClientFunction } from "../../../../client"
66import { handlePromise } from "../../../../utils"
7- import atomUtils = require ( "../../utils" )
7+ import * as atomUtils from "../../utils"
88import { NavigationNodeComponent } from "./navigationNodeComponent"
99import {
1010 findNodeAt ,
Original file line number Diff line number Diff line change 11import { Panel } from "atom"
2- import SelectListView = require ( "atom-select-list" )
2+ import SelectListView from "atom-select-list"
33import * as etch from "etch"
44import { handlePromise } from "../../../utils"
55
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
1313} from "atom/ide"
1414import { IndieDelegate } from "atom/linter"
1515import { StatusBar } from "atom/status-bar"
16+ import etch from "etch"
1617import { handlePromise } from "../utils"
1718import { SemanticView , SemanticViewSerializationData } from "./atom/views/outline/semanticView"
1819import { State } from "./packageState"
@@ -21,10 +22,7 @@ import {PluginManager} from "./pluginManager"
2122let pluginManager : PluginManager | undefined
2223
2324export function activate ( state : State ) {
24- ; ( require ( "etch" ) as typeof import ( "etch" ) ) . setScheduler ( atom . views )
25-
26- // tslint:disable-next-line:no-shadowed-variable
27- const { PluginManager} = require ( "./pluginManager" ) as typeof import ( "./pluginManager" )
25+ etch . setScheduler ( atom . views )
2826 pluginManager = new PluginManager ( state )
2927
3028 setImmediate ( ( ) => handlePromise ( checkAndInstallDependencies ( ) ) )
@@ -49,10 +47,6 @@ export function serialize() {
4947}
5048
5149export function deserializeSemanticView ( serialized : SemanticViewSerializationData ) : SemanticView {
52- const {
53- // tslint:disable-next-line: no-shadowed-variable
54- SemanticView,
55- } = require ( "./atom/views/outline/semanticView" ) as typeof import ( "./atom/views/outline/semanticView" )
5650 return SemanticView . create ( serialized . data )
5751}
5852
You can’t perform that action at this time.
0 commit comments