Project whose configuration is handled externally, such as in a '.csproj'.
These are created only if a host explicitly calls openExternalProject
.
Project whose configuration is handled externally, such as in a '.csproj'. These are created only if a host explicitly calls `openExternalProject`.
(add-missing-file-root external-project file-name)
Parameters:
file-name
: NormalizedPath
Returns: void
**Parameters:** - `file-name`: `NormalizedPath` **Returns:** `void`
(add-missing-file-watcher external-project)
Returns: any
**Returns:** `any`
(add-root external-project info)
(add-root external-project info file-name)
Parameters:
info
: ScriptInfo
file-name
: NormalizedPath | undefined
Returns: void
**Parameters:** - `info`: `ScriptInfo` - `file-name`: `NormalizedPath | undefined` **Returns:** `void`
(all-project-errors external-project)
Get all the project errors
Returns: readonly Diagnostic[]
Get all the project errors **Returns:** `readonly Diagnostic[]`
(builder-state external-project)
Returns: any
**Returns:** `any`
(cancellation-token external-project)
Returns: any
**Returns:** `any`
(clear-generated-file-watch external-project)
Returns: any
**Returns:** `any`
(compilation-settings external-project)
Returns: CompilerOptions
**Returns:** `CompilerOptions`
(compile-on-save-affected-file-list external-project script-info)
Parameters:
script-info
: ScriptInfo
Returns: string[]
**Parameters:** - `script-info`: `ScriptInfo` **Returns:** `string[]`
(compile-on-save-enabled? external-project)
Returns: boolean
**Returns:** `boolean`
(compiler-options external-project)
Returns: any
**Returns:** `any`
(contains-file? external-project filename)
(contains-file? external-project filename require-open?)
Parameters:
filename
: NormalizedPath
require-open?
: boolean | undefined
Returns: boolean
**Parameters:** - `filename`: `NormalizedPath` - `require-open?`: `boolean | undefined` **Returns:** `boolean`
(contains-script-info? external-project info)
Parameters:
info
: ScriptInfo
Returns: boolean
**Parameters:** - `info`: `ScriptInfo` **Returns:** `boolean`
(create-generated-file-watcher external-project)
Returns: any
**Returns:** `any`
(current-directory external-project)
Returns: string
**Returns:** `string`
(default-lib-file-name external-project)
Returns: string
**Returns:** `string`
(detach-script-info-from-project external-project)
Returns: any
**Returns:** `any`
(detach-script-info-if-not-root external-project)
Returns: any
**Returns:** `any`
(directories external-project path)
Parameters:
path
: string
Returns: string[]
**Parameters:** - `path`: `string` **Returns:** `string[]`
(directory-exists? external-project path)
Parameters:
path
: string
Returns: boolean
**Parameters:** - `path`: `string` **Returns:** `boolean`
(disable-language-service external-project)
(disable-language-service external-project last-file-exceeded-program-size)
Parameters:
last-file-exceeded-program-size
: string | undefined
Returns: void
**Parameters:** - `last-file-exceeded-program-size`: `string | undefined` **Returns:** `void`
(document-registry external-project)
Returns: any
**Returns:** `any`
(emit-file external-project script-info write-file)
Returns true if emit was conducted
Parameters:
script-info
: ScriptInfo
write-file
: (path: string, data: string, writeByteOrderMark?: boolean | undefined) => void
Returns: EmitResult
Returns true if emit was conducted **Parameters:** - `script-info`: `ScriptInfo` - `write-file`: `(path: string, data: string, writeByteOrderMark?: boolean | undefined) => void` **Returns:** `EmitResult`
(enable-global-plugins external-project options)
Parameters:
options
: CompilerOptions
Returns: void
**Parameters:** - `options`: `CompilerOptions` **Returns:** `void`
(enable-language-service external-project)
Returns: void
**Returns:** `void`
(enable-plugin external-project plugin-config-entry search-paths)
Parameters:
plugin-config-entry
: PluginImport
search-paths
: string[]
Returns: void
**Parameters:** - `plugin-config-entry`: `PluginImport` - `search-paths`: `string[]` **Returns:** `void`
(error external-project s)
Parameters:
s
: string
Returns: void
**Parameters:** - `s`: `string` **Returns:** `void`
(excluded-files external-project)
Returns: readonly NormalizedPath[]
**Returns:** `readonly NormalizedPath[]`
(external-files external-project)
Returns: any
**Returns:** `any`
(external-project-name external-project)
Returns: string
**Returns:** `string`
(file-exists? external-project file)
Parameters:
file
: string
Returns: boolean
**Parameters:** - `file`: `string` **Returns:** `boolean`
(file-names external-project)
(file-names external-project exclude-files-from-external-libraries?)
(file-names external-project
exclude-files-from-external-libraries?
exclude-config-files?)
Parameters:
exclude-files-from-external-libraries?
: boolean | undefined
exclude-config-files?
: boolean | undefined
Returns: NormalizedPath[]
**Parameters:** - `exclude-files-from-external-libraries?`: `boolean | undefined` - `exclude-config-files?`: `boolean | undefined` **Returns:** `NormalizedPath[]`
(files-to-string external-project write-project-file-names?)
Parameters:
write-project-file-names?
: boolean
Returns: string
**Parameters:** - `write-project-file-names?`: `boolean` **Returns:** `string`
(generated-files-map external-project)
Returns: any
**Returns:** `any`
(get-cancellation-token external-project)
Returns: HostCancellationToken
**Returns:** `HostCancellationToken`
(get-compiler-options external-project)
Returns: CompilerOptions
**Returns:** `CompilerOptions`
(get-excluded-files external-project)
Returns: readonly NormalizedPath[]
**Returns:** `readonly NormalizedPath[]`
(get-external-files external-project)
(get-external-files external-project update-level)
Parameters:
update-level
: ProgramUpdateLevel | undefined
Returns: SortedReadonlyArray<string>
**Parameters:** - `update-level`: `ProgramUpdateLevel | undefined` **Returns:** `SortedReadonlyArray<string>`
(get-language-service external-project)
(get-language-service external-project ensure-synchronized?)
Parameters:
ensure-synchronized?
: boolean | undefined
Returns: LanguageService
**Parameters:** - `ensure-synchronized?`: `boolean | undefined` **Returns:** `LanguageService`
(get-root-files external-project)
Returns: NormalizedPath[]
**Returns:** `NormalizedPath[]`
(global-project-errors external-project)
Get the errors that dont have any file name associated
Returns: readonly Diagnostic[]
Get the errors that dont have any file name associated **Returns:** `readonly Diagnostic[]`
(has-config-file? external-project config-file-path)
Parameters:
config-file-path
: NormalizedPath
Returns: boolean
**Parameters:** - `config-file-path`: `NormalizedPath` **Returns:** `boolean`
(has-roots? external-project)
Returns: boolean
**Returns:** `boolean`
(initial-load-pending external-project)
Returns: () => boolean
**Returns:** `() => boolean`
(install-package external-project options)
Parameters:
options
: InstallPackageOptions
Returns: Promise<ApplyCodeActionCommandResult>
**Parameters:** - `options`: `InstallPackageOptions` **Returns:** `Promise<ApplyCodeActionCommandResult>`
(js-doc-parsing-mode external-project)
Returns: JSDocParsingMode | undefined
**Returns:** `JSDocParsingMode | undefined`
(js-only-project? external-project)
Returns: boolean
**Returns:** `boolean`
(known-types-package-name? external-project name)
Parameters:
name
: string
Returns: boolean
**Parameters:** - `name`: `string` **Returns:** `boolean`
(language-service external-project)
Returns: LanguageService
**Returns:** `LanguageService`
(language-service-enabled? external-project)
Returns: boolean
**Returns:** `boolean`
(last-reported-file-names external-project)
Set of files that was returned from the last call to getChangesSinceVersion.
Returns: any
Set of files that was returned from the last call to getChangesSinceVersion. **Returns:** `any`
(last-reported-version external-project)
Last version that was reported.
Returns: any
Last version that was reported. **Returns:** `any`
(log external-project s)
Parameters:
s
: string
Returns: void
**Parameters:** - `s`: `string` **Returns:** `void`
(mark-as-dirty external-project)
Returns: void
**Returns:** `void`
(missing-files-map external-project)
Returns: any
**Returns:** `any`
(non-ts-project? external-project)
Returns: boolean
**Returns:** `boolean`
(or-create-script-info-and-attach-to-project external-project)
Returns: any
**Returns:** `any`
(project-errors external-project)
Returns: Diagnostic[] | undefined
**Returns:** `Diagnostic[] | undefined`
(project-kind external-project)
Returns: ProjectKind
**Returns:** `ProjectKind`
(project-name external-project)
Returns: string
**Returns:** `string`
(project-references external-project)
Returns: readonly ProjectReference[] | undefined
**Returns:** `readonly ProjectReference[] | undefined`
(project-service external-project)
Returns: ProjectService
**Returns:** `ProjectService`
(project-version external-project)
Returns: string
**Returns:** `string`
(read-directory external-project path)
(read-directory external-project path extensions)
(read-directory external-project path extensions exclude)
(read-directory external-project path extensions exclude include)
(read-directory external-project path extensions exclude include depth)
Parameters:
path
: string
extensions
: readonly string[] | undefined
exclude
: readonly string[] | undefined
include
: readonly string[] | undefined
depth
: number | undefined
Returns: string[]
**Parameters:** - `path`: `string` - `extensions`: `readonly string[] | undefined` - `exclude`: `readonly string[] | undefined` - `include`: `readonly string[] | undefined` - `depth`: `number | undefined` **Returns:** `string[]`
(read-file external-project file-name)
Parameters:
file-name
: string
Returns: string | undefined
**Parameters:** - `file-name`: `string` **Returns:** `string | undefined`
(realpath external-project)
Returns: ((path: string) => string) | undefined
**Returns:** `((path: string) => string) | undefined`
(refresh-diagnostics external-project)
Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed.
Returns: void
Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. **Returns:** `void`
(register-file-update external-project file-name)
Parameters:
file-name
: string
Returns: void
**Parameters:** - `file-name`: `string` **Returns:** `void`
(remove-existing-typings external-project include)
Parameters:
include
: string[]
Returns: string[]
**Parameters:** - `include`: `string[]` **Returns:** `string[]`
(remove-file external-project info file-exists? detach-from-project?)
Parameters:
info
: ScriptInfo
file-exists?
: boolean
detach-from-project?
: boolean
Returns: void
**Parameters:** - `info`: `ScriptInfo` - `file-exists?`: `boolean` - `detach-from-project?`: `boolean` **Returns:** `void`
(remove-local-typings-from-type-acquisition external-project
new-type-acquisition)
Parameters:
new-type-acquisition
: TypeAcquisition
Returns: TypeAcquisition
**Parameters:** - `new-type-acquisition`: `TypeAcquisition` **Returns:** `TypeAcquisition`
(remove-root external-project info)
Parameters:
info
: ScriptInfo
Returns: void
**Parameters:** - `info`: `ScriptInfo` **Returns:** `void`
(root-files-map external-project)
Returns: any
**Returns:** `any`
(root-script-infos external-project)
Returns: ScriptInfo[]
**Returns:** `ScriptInfo[]`
(root? external-project info)
Parameters:
info
: ScriptInfo
Returns: boolean
**Parameters:** - `info`: `ScriptInfo` **Returns:** `boolean`
(script-file-names external-project)
Returns: string[]
**Returns:** `string[]`
(script-info external-project unchecked-file-name)
Parameters:
unchecked-file-name
: string
Returns: ScriptInfo | undefined
**Parameters:** - `unchecked-file-name`: `string` **Returns:** `ScriptInfo | undefined`
(script-info-for-normalized-path external-project file-name)
Parameters:
file-name
: NormalizedPath
Returns: ScriptInfo | undefined
**Parameters:** - `file-name`: `NormalizedPath` **Returns:** `ScriptInfo | undefined`
(script-infos external-project)
Returns: ScriptInfo[]
**Returns:** `ScriptInfo[]`
(script-kind external-project file-name)
Parameters:
file-name
: string
Returns: ScriptKind
**Parameters:** - `file-name`: `string` **Returns:** `ScriptKind`
(script-snapshot external-project filename)
Parameters:
filename
: string
Returns: IScriptSnapshot | undefined
**Parameters:** - `filename`: `string` **Returns:** `IScriptSnapshot | undefined`
(script-version external-project filename)
Parameters:
filename
: string
Returns: string
**Parameters:** - `filename`: `string` **Returns:** `string`
(set-compiler-options external-project compiler-options)
Parameters:
compiler-options
: CompilerOptions
Returns: void
**Parameters:** - `compiler-options`: `CompilerOptions` **Returns:** `void`
(set-create-generated-file-watcher! external-project value)
(set-detach-script-info-from-project! external-project value)
(set-detach-script-info-if-not-root! external-project value)
(set-get-or-create-script-info-and-attach-to-project! external-project value)
(set-internal-compiler-options-for-emitting-js-files external-project)
Returns: any
**Returns:** `any`
(set-is-valid-generated-file-watcher! external-project value)
(set-last-reported-file-names! external-project value)
Set of files that was returned from the last call to getChangesSinceVersion.
Set of files that was returned from the last call to getChangesSinceVersion.
(set-last-reported-version! external-project value)
Last version that was reported.
Last version that was reported.
(set-project-errors external-project)
(set-project-errors external-project project-errors)
Parameters:
project-errors
: Diagnostic[] | undefined
Returns: void
**Parameters:** - `project-errors`: `Diagnostic[] | undefined` **Returns:** `void`
(set-set-internal-compiler-options-for-emitting-js-files! external-project
value)
(set-type-acquisition external-project)
(set-type-acquisition external-project new-type-acquisition)
Parameters:
new-type-acquisition
: TypeAcquisition | undefined
Returns: void
**Parameters:** - `new-type-acquisition`: `TypeAcquisition | undefined` **Returns:** `void`
(set-updated-file-names! external-project value)
Set of files names that were updated since the last call to getChangesSinceVersion.
Set of files names that were updated since the last call to getChangesSinceVersion.
(source-file external-project path)
Parameters:
path
: Path
Returns: SourceFile | undefined
**Parameters:** - `path`: `Path` **Returns:** `SourceFile | undefined`
(trace external-project)
Returns: ((s: string) => void) | undefined
**Returns:** `((s: string) => void) | undefined`
(type-acquisition external-project)
Returns: TypeAcquisition
**Returns:** `TypeAcquisition`
(update-graph-worker external-project)
Returns: any
**Returns:** `any`
(update-graph? external-project)
Returns: boolean
- : true if set of files in the project stays the same and false - otherwise.
**Returns:** `boolean` - : true if set of files in the project stays the same and false - otherwise.
(updated-file-names external-project)
Set of files names that were updated since the last call to getChangesSinceVersion.
Returns: any
Set of files names that were updated since the last call to getChangesSinceVersion. **Returns:** `any`
(use-case-sensitive-file-names? external-project)
Returns: boolean
**Returns:** `boolean`
(valid-generated-file-watcher external-project)
Returns: any
**Returns:** `any`
(watch-options external-project)
Returns: WatchOptions | undefined
**Returns:** `WatchOptions | undefined`
(watched-missing-file external-project)
Returns: any
**Returns:** `any`
(write-file external-project file-name content)
Parameters:
file-name
: string
content
: string
Returns: void
**Parameters:** - `file-name`: `string` - `content`: `string` **Returns:** `void`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close