Theia API Documentation v1.68.0
    Preparing search index...
    Index

    Constructors

    Properties

    contextKeyService: ContextKeyService
    currentTrust: undefined | boolean
    envVariablesServer: EnvVariablesServer
    messageService: MessageService
    onDidChangeWorkspaceTrust: Event<boolean> = ...
    onDidChangeWorkspaceTrustEmitter: Emitter<boolean> = ...
    pendingTrustDialog: undefined | Deferred<boolean>
    preferences: PreferenceService
    preferenceSchemaService: PreferenceSchemaService
    statusBar: StatusBar
    toDispose: DisposableCollection = ...
    untitledWorkspaceService: UntitledWorkspaceService
    windowService: WindowService
    workspaceService: WorkspaceService
    workspaceTrust: Deferred<boolean> = ...
    workspaceTrustPref: WorkspaceTrustPreferences

    Methods

    • Check if the workspace is empty (no workspace or folder opened, or an untitled workspace with no folders). A saved workspace file with 0 folders is NOT empty - it still needs trust evaluation because it could have tasks defined.

      Returns Promise<boolean>