@servicenow/sdk - v4.4.1
    Preparing search index...
    Index

    Constructors

    Properties

    allowLocalPluginLoads: boolean
    cancellationToken: HostCancellationToken
    configuredProjects: Map<string, ConfiguredProject>

    projects specified by a tsconfig.json file

    currentDirectory: NormalizedPath
    externalProjects: tsc.server.ExternalProject[]

    external projects (configuration and list of root files is not controlled by tsserver)

    globalPlugins: readonly string[]
    inferredProjects: InferredProject[]

    projects built from openFileRoots

    jsDocParsingMode: JSDocParsingMode | undefined
    logger: tsc.server.Logger
    openFiles: Map<tsc.Path, NormalizedPath | undefined>

    Open files: with value being project root path, and key being Path of the file that is open

    pluginProbeLocations: readonly string[]
    throttleWaitMilliseconds?: number
    toCanonicalFileName: (f: string) => string
    typesMapLocation: string | undefined
    typingsInstaller: ITypingsInstaller
    useInferredProjectPerProjectRoot: boolean
    useSingleInferredProject: boolean

    Methods

    • Close file whose contents is managed by the client

      Parameters

      • uncheckedFileName: string

      Returns void

    • Parameters

      • uncheckedFileName: string

      Returns void

    • Returns void

    • Parameters

      • projectName: string

      Returns tsc.server.Project | undefined

    • Parameters

      Returns tsc.server.Project | undefined

    • Parameters

      • fileName: NormalizedPath
      • openedByClient: boolean
      • OptionalfileContent: string
      • OptionalscriptKind: tsc.ScriptKind
      • OptionalhasMixedContent: boolean
      • OptionalhostToQueryFileExistsOn: { fileExists(path: string): boolean }

      Returns ScriptInfo | undefined

    • Parameters

      • uncheckedFileName: string

      Returns ScriptInfo | undefined

    • Parameters

      • uncheckedFileName: string

      Returns ScriptInfo | undefined

    • This gets the script info for the normalized path. If the path is not rooted disk path then the open script info with project root context is preferred

      Parameters

      Returns ScriptInfo | undefined

    • Parameters

      Returns ScriptInfo | undefined

    • Returns boolean

    • Open file whose contents is managed by the client

      Parameters

      • fileName: string
      • OptionalfileContent: string

        is a known version of the file content that is more up to date than the one on disk

      • OptionalscriptKind: tsc.ScriptKind
      • OptionalprojectRootPath: string

      Returns OpenConfiguredProjectResult

    • This function rebuilds the project for every file opened by the client This does not reload contents of open files from disk. But we could do that if needed

      Returns void

    • Returns void

    • Parameters

      Returns void

    • Parameters

      • fileName: string

      Returns tsc.Path