Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MessageProcessor

Index

Constructors

constructor

  • new MessageProcessor(__namedParameters: { config: undefined | GraphQLConfig; connection: Connection; fileExtensions: ReadonlyArray<".js" | ".cjs" | ".mjs" | ".es" | ".esm" | ".es6" | ".ts" | ".jsx" | ".tsx" | ".vue" | ".svelte" | ".astro" | ".cts" | ".mts">; graphqlFileExtensions: string[]; loadConfigOptions: LoadConfigOptions; logger: Logger | NoopLogger; parser: undefined | parseDocument; tmpDir: undefined | string }): MessageProcessor
  • Parameters

    • __namedParameters: { config: undefined | GraphQLConfig; connection: Connection; fileExtensions: ReadonlyArray<".js" | ".cjs" | ".mjs" | ".es" | ".esm" | ".es6" | ".ts" | ".jsx" | ".tsx" | ".vue" | ".svelte" | ".astro" | ".cts" | ".mts">; graphqlFileExtensions: string[]; loadConfigOptions: LoadConfigOptions; logger: Logger | NoopLogger; parser: undefined | parseDocument; tmpDir: undefined | string }
      • config: undefined | GraphQLConfig
      • connection: Connection
      • fileExtensions: ReadonlyArray<".js" | ".cjs" | ".mjs" | ".es" | ".esm" | ".es6" | ".ts" | ".jsx" | ".tsx" | ".vue" | ".svelte" | ".astro" | ".cts" | ".mts">
      • graphqlFileExtensions: string[]
      • loadConfigOptions: LoadConfigOptions
      • logger: Logger | NoopLogger
      • parser: undefined | parseDocument
      • tmpDir: undefined | string

    Returns MessageProcessor

Properties

_connection

_connection: Connection

Optional _extensions

_graphQLCache

_graphQLCache: GraphQLCache

_graphQLConfig

_graphQLConfig: GraphQLConfig | undefined

_isGraphQLConfigMissing

_isGraphQLConfigMissing: boolean | null = null

_isInitialized

_isInitialized: boolean = false

_languageService

_languageService: GraphQLLanguageService

_loadConfigOptions

_loadConfigOptions: LoadConfigOptions

_logger

_logger: Logger | NoopLogger

_parser

_parser: (text: string, uri: string) => CachedContent[]

Type declaration

_rootPath

_rootPath: string = process.cwd()

_schemaCacheInit

_schemaCacheInit: boolean = false

_settings

_settings: any

_textDocumentCache

_textDocumentCache: Map<string, CachedDocumentType> = new Map<string, CachedDocumentType>()

_tmpDir

_tmpDir: string

_tmpDirBase

_tmpDirBase: string

_tmpUriBase

_tmpUriBase: string

_willShutdown

_willShutdown: boolean = false

Accessors

connection

  • get connection(): Connection
  • set connection(connection: Connection): void

Methods

_cacheAllProjectFiles

  • _cacheAllProjectFiles(config: GraphQLConfig): Promise<undefined | void[]>

_cacheArraySchema

  • _cacheArraySchema(pointers: UnnormalizedTypeDefPointer[], project: GraphQLProjectConfig): Promise<void>

_cacheConfigSchema

  • _cacheConfigSchema(project: GraphQLProjectConfig): Promise<void>

_cacheDocumentFilesforProject

  • _cacheDocumentFilesforProject(project: GraphQLProjectConfig): Promise<undefined | void[]>

_cacheObjectSchema

  • _cacheObjectSchema(pointer: {}, project: GraphQLProjectConfig): Promise<void>

_cacheSchemaFile

  • _cacheSchemaFile(_uri: UnnormalizedTypeDefPointer, project: GraphQLProjectConfig): Promise<void>

_cacheSchemaFilesForProject

  • _cacheSchemaFilesForProject(project: GraphQLProjectConfig): Promise<void>

_cacheSchemaPath

  • _cacheSchemaPath(uri: string, project: GraphQLProjectConfig): Promise<void>

_cacheSchemaText

  • _cacheSchemaText(uri: string, text: string, version: number): Promise<void>

_getCachedDocument

  • _getCachedDocument(uri: string): CachedDocumentType | null

_getTextDocuments

  • _getTextDocuments(): [string, CachedDocumentType][]

_getTmpProjectPath

  • _getTmpProjectPath(project: GraphQLProjectConfig, prependWithProtocol?: boolean, appendPath?: undefined | string): string

_handleConfigError

  • _handleConfigError(__namedParameters: { err: unknown }): void

_invalidateCache

  • _invalidateCache(textDocument: VersionedTextDocumentIdentifier, uri: Uri, contents: CachedContent[]): Promise<Map<string, CachedDocumentType> | null>

_isGraphQLConfigFile

  • _isGraphQLConfigFile(uri: string): Promise<boolean>

_isRelayCompatMode

  • _isRelayCompatMode(query: string): boolean

_logConfigError

  • _logConfigError(errorMessage: string): void

_unwrapProjectSchema

  • _unwrapProjectSchema(project: GraphQLProjectConfig): string[]

_updateFragmentDefinition

_updateGraphQLConfig

  • _updateGraphQLConfig(): Promise<void>

_updateObjectTypeDefinition

  • _updateObjectTypeDefinition(uri: Uri, contents: CachedContent[]): Promise<void>

_updateSchemaIfChanged

  • _updateSchemaIfChanged(project: GraphQLProjectConfig, uri: Uri): Promise<void>

handleCompletionRequest

  • handleCompletionRequest(params: CompletionParams): Promise<CompletionList | Array<CompletionItem>>

handleDefinitionRequest

  • handleDefinitionRequest(params: TextDocumentPositionParams, _token?: CancellationToken): Promise<Array<Location>>

handleDidChangeConfiguration

  • handleDidChangeConfiguration(_params: DidChangeConfigurationParams): Promise<DidChangeConfigurationRegistrationOptions>

handleDidChangeNotification

  • handleDidChangeNotification(params: DidChangeTextDocumentParams): Promise<PublishDiagnosticsParams | null>

handleDidCloseNotification

  • handleDidCloseNotification(params: DidCloseTextDocumentParams): void

handleDidOpenOrSaveNotification

  • handleDidOpenOrSaveNotification(params: DidSaveTextDocumentParams | DidOpenTextDocumentParams): Promise<PublishDiagnosticsParams | null>

handleDocumentSymbolRequest

  • handleDocumentSymbolRequest(params: DocumentSymbolParams): Promise<Array<SymbolInformation>>

handleExitNotification

  • handleExitNotification(): void

handleHoverRequest

  • handleHoverRequest(params: TextDocumentPositionParams): Promise<Hover>

handleInitializeRequest

  • handleInitializeRequest(params: InitializeParams, _token?: CancellationToken, configDir?: undefined | string): Promise<InitializeResult>

handleShutdownRequest

  • handleShutdownRequest(): void

handleWatchedFilesChangedNotification

  • handleWatchedFilesChangedNotification(params: DidChangeWatchedFilesParams): Promise<Array<PublishDiagnosticsParams | undefined> | null>

handleWorkspaceSymbolRequest

  • handleWorkspaceSymbolRequest(params: WorkspaceSymbolParams): Promise<Array<SymbolInformation>>

validateDocumentAndPosition

  • validateDocumentAndPosition(params: CompletionParams): void

Generated using TypeDoc