Gjsify LogoGjsify Logo

Index

Enumerations

Classes

Interfaces

Variables

Functions

Variables

BUFFER_LINE_FLAGS_DIAGNOSTICS_MASK: number
BUILD_PHASE_MASK: number
BUILD_PHASE_WHENCE_MASK: number
ENABLE_TRACE: number
FILE_SETTINGS_EXTENSION_POINT: string
LANGSERV_COMPLETION_PROVIDER_PRIORITY: number
PREFERENCES_PERSPECTIVE_PRIORITY: number
RECENT_PROJECTS_BOOKMARK_FILENAME: string
RECENT_PROJECTS_BUILD_SYSTEM_GROUP_PREFIX: string
RECENT_PROJECTS_GROUP: string
RECENT_PROJECTS_LANGUAGE_GROUP_PREFIX: string

Functions

  • Asynchronously creates a new #IdeBuildSystem instance using the registered #GIOExtensionPoint system. Each extension point will be tried asynchronously by priority until one has been found that supports project_file.

    If no build system could be found, then ide_build_system_new_finish() will return %NULL.

    Parameters

    • context: Ide.Context

      #IdeBuildSystem

    • project_file: Gio.File

      A #GFile containing the directory or project file.

    • build_system_hint: string

      A hint for the build system to use

    • cancellable: Gio.Cancellable

      A #GCancellable

    • callback: AsyncReadyCallback

      A callback to execute upon completion

    Returns void

  • build_utils_color_codes_filtering(txt: string): string
  • device_error_quark(): Quark
  • doap_error_quark(): Quark
  • flatpak_get_app_path(path: string): string
  • g_task_return_boolean_from_main(task: Gio.Task, value: boolean): void
  • This is just like g_task_return_boolean() except that it enforces that the current stack return to the main context before dispatching the callback.

    Parameters

    Returns void

  • g_task_return_int_from_main(task: Gio.Task, value: number): void
  • get_program_name(): string
  • get_system_arch(): string
  • get_system_page_size(): number
  • get_system_type(): string
  • gettext(message: string): string
  • is_flatpak(): boolean
  • This function checks to see if the application is running within a flatpak. This might be useful for cases where you need to perform a different command when you are in the bundled flatpak version.

    Returns boolean

  • langserv_decode_completion_kind(kind: number): SymbolKind
  • langserv_decode_symbol_kind(kind: number): SymbolKind
  • log_get_verbosity(): number
  • log_increase_verbosity(): void
  • Increases the amount of logging that will occur. By default, only warning and above will be displayed.

    Calling this once will cause G_LOG_LEVEL_MESSAGE to be displayed. Calling this twice will cause G_LOG_LEVEL_INFO to be displayed. Calling this thrice will cause G_LOG_LEVEL_DEBUG to be displayed. Calling this four times will cause IDE_LOG_LEVEL_TRACE to be displayed.

    Note that many DEBUG and TRACE level log messages are only compiled into debug builds, and therefore will not be available in release builds.

    This method is meant to be called for every -v provided on the command line.

    Calling this method more than four times is acceptable.

    Returns void

  • log_init(stdout_: boolean, filename: string): void
  • Initializes the logging subsystem.

    Parameters

    • stdout_: boolean

      Indicates logging should be written to stdout.

    • filename: string

      An optional file in which to store logs.

    Returns void

  • log_set_verbosity(level: number): void
  • log_shutdown(): void
  • path_collapse(path: string): string
  • This function will collapse a path that starts with the users home directory into a shorthand notation using ~/ for the home directory.

    If the path does not have the home directory as a prefix, it will simply return a copy of path.

    Parameters

    • path: string

    Returns string

  • path_expand(path: string): string
  • This function will expand various "shell-like" features of the provided path using the POSIX wordexp(3) function. Command substitution will not be enabled, but path features such as ~user will be expanded.

    Parameters

    • path: string

    Returns string

  • runtime_error_quark(): Quark
  • set_program_name(program_name: string): void
  • symbol_kind_get_icon_name(kind: SymbolKind): string
  • This pushes a task to be executed on a worker thread based on the task kind as denoted by kind. Some tasks will be placed on special work queues or throttled based on priority.

    Parameters

    Returns void

  • uri_build(scheme: string, userinfo: string, host: string, port: string, path: string, query: string, fragment: string): string
  • Parameters

    • scheme: string
    • userinfo: string
    • host: string
    • port: string
    • path: string
    • query: string
    • fragment: string

    Returns string

  • uri_parse_host(uri_string: string, flags: UriParseFlags): [boolean, string, string, number]
  • Utility function for parsing "network" URIs. This extracts just the scheme, host, and port from uri_string. All three out parameters are mandatory.

    Parameters

    • uri_string: string

      a string containing a network URI

    • flags: UriParseFlags

      flags for parsing uri_string

    Returns [boolean, string, string, number]

  • uri_parse_params(params: string, length: number, separator: number, case_insensitive: boolean): HashTable
  • Many URI schemes include one or more attribute/value pairs as part of the URI value. This method can be used to parse them into a hash table.

    The params string is assumed to still be %-encoded, but the returned values will be fully decoded. (Thus it is possible that the returned values may contain '=' or separator, if the value was encoded in the input.) Invalid %-encoding is treated as with the non-%IDE_URI_PARSE_STRICT rules for ide_uri_new(). (However, if params is the path or query string from a #IdeUri that was parsed with %IDE_URI_PARSE_STRICT, then you already know that it does not contain any invalid encoding.)

    Parameters

    • params: string

      a string containing "attribute=value" parameters

    • length: number

      the length of params, or -1 if it is NUL-terminated

    • separator: number

      the separator character between parameters. (usually ';', but sometimes '&')

    • case_insensitive: boolean

      whether to match parameter names case-insensitively

    Returns HashTable

  • uri_split(uri_string: string, strict: boolean): [string | null, string | null, string | null, string | null, string | null, string | null, string | null]
  • Parses uri_string more-or-less according to the generic grammar of RFC 3986 ("more" if strict is %TRUE, "less" if %FALSE), and outputs the pieces into the provided variables. This is a low-level method that does not do any pre- or post-processing of uri_string, and is "garbage in, garbage out"; it just splits uri_string into pieces at the appropriate punctuation characters (consuming delimiters as appropriate), and returns the pieces. Components that are not present in uri_string will be set to %NULL (but note that the path is always present, though it may be an empty string).

    Parameters

    • uri_string: string

      a string containing a relative or absolute URI

    • strict: boolean

      whether to parse uri_string strictly

    Returns [string | null, string | null, string | null, string | null, string | null, string | null, string | null]

  • vcs_register_ignored(pattern: string): void
  • vcs_uri_is_valid(uri_string: string): boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method