@redocly/openapi-language-server 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +11 -7
- package/lib/index.js +40 -40
- package/package.json +3 -2
package/lib/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ declare module '@redocly/openapi-language-server/index' {
|
|
|
48
48
|
declare module '@redocly/openapi-language-server/server/bundle' {
|
|
49
49
|
import { NormalizedProblem } from '@redocly/openapi-core';
|
|
50
50
|
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
|
51
|
-
import type { NormalizedNodeType } from '@redocly/openapi-
|
|
51
|
+
import type { NormalizedNodeType } from '@redocly/openapi-language-server/server/types/oas';
|
|
52
52
|
export type DefinitionData = {
|
|
53
53
|
name: string;
|
|
54
54
|
uri: string;
|
|
@@ -179,7 +179,7 @@ declare module '@redocly/openapi-language-server/server/completion/yaml/context'
|
|
|
179
179
|
|
|
180
180
|
}
|
|
181
181
|
declare module '@redocly/openapi-language-server/server/completion/yaml/insert-snippet-utils' {
|
|
182
|
-
import type { NormalizedNodeType } from '@redocly/openapi-
|
|
182
|
+
import type { NormalizedNodeType } from '@redocly/openapi-language-server/server/types/oas';
|
|
183
183
|
export type PartialNodeType = {
|
|
184
184
|
items?: NormalizedNodeType['items'];
|
|
185
185
|
required?: NormalizedNodeType['required'];
|
|
@@ -229,7 +229,7 @@ declare module '@redocly/openapi-language-server/server/context-core' {
|
|
|
229
229
|
import { OasVersion, OasMajorVersion } from '@redocly/openapi-core';
|
|
230
230
|
import * as yamlAst from '@redocly/yaml-language-server-parser';
|
|
231
231
|
import type { Position } from 'vscode-languageserver/browser';
|
|
232
|
-
import type { NormalizedNodeType } from '@redocly/openapi-
|
|
232
|
+
import type { NormalizedNodeType } from '@redocly/openapi-language-server/server/types/oas';
|
|
233
233
|
import type { ContextData, ExistingValues } from '@redocly/openapi-language-server/server/types/context-core';
|
|
234
234
|
import type { OpenApiVersion, TextDocumentWithLineOffset, NodeWithPath, NodePath } from '@redocly/openapi-language-server/server/types/context-core';
|
|
235
235
|
export function getContextData(uri: string, position: Position): Promise<ContextData>;
|
|
@@ -286,8 +286,8 @@ declare module '@redocly/openapi-language-server/server/hints' {
|
|
|
286
286
|
|
|
287
287
|
}
|
|
288
288
|
declare module '@redocly/openapi-language-server/server/openapi-config' {
|
|
289
|
-
import { Config as OpenAPIConfig } from '@redocly/openapi-core';
|
|
290
|
-
export { CONFIG_FILE_NAMES }
|
|
289
|
+
import { Config as OpenAPIConfig, CONFIG_FILE_NAMES } from '@redocly/openapi-core';
|
|
290
|
+
export { CONFIG_FILE_NAMES };
|
|
291
291
|
export function isConfigFile(uri: string): boolean;
|
|
292
292
|
export function getOpenAPIConfig({ cache }?: {
|
|
293
293
|
cache?: boolean;
|
|
@@ -432,8 +432,8 @@ declare module '@redocly/openapi-language-server/server/sort' {
|
|
|
432
432
|
|
|
433
433
|
}
|
|
434
434
|
declare module '@redocly/openapi-language-server/server/types/completion' {
|
|
435
|
-
import { NormalizedNodeType } from '@redocly/openapi-core/lib/types';
|
|
436
435
|
import { CompletionItemKind, TextEdit, InsertReplaceEdit } from 'vscode-languageserver/browser';
|
|
436
|
+
import { NormalizedNodeType } from '@redocly/openapi-language-server/server/types/oas';
|
|
437
437
|
type ExtendedNormalizedNodeType = NormalizedNodeType & {
|
|
438
438
|
isExample?: true;
|
|
439
439
|
enum?: string[];
|
|
@@ -453,7 +453,7 @@ declare module '@redocly/openapi-language-server/server/types/completion' {
|
|
|
453
453
|
declare module '@redocly/openapi-language-server/server/types/context-core' {
|
|
454
454
|
import yamlAst from '@redocly/yaml-language-server-parser';
|
|
455
455
|
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
|
456
|
-
import type { NormalizedNodeType } from '@redocly/openapi-
|
|
456
|
+
import type { NormalizedNodeType } from '@redocly/openapi-language-server/server/types/oas';
|
|
457
457
|
export enum ContextErrorCodes {
|
|
458
458
|
FILE_TYPE_NOT_SUPPORTED = 0
|
|
459
459
|
}
|
|
@@ -494,6 +494,10 @@ declare module '@redocly/openapi-language-server/server/types/context-core' {
|
|
|
494
494
|
};
|
|
495
495
|
export { OpenApiVersion, NodeWithPath, NodePath, TextDocumentWithLineOffset };
|
|
496
496
|
|
|
497
|
+
}
|
|
498
|
+
declare module '@redocly/openapi-language-server/server/types/oas' {
|
|
499
|
+
export type { NormalizedNodeType, NodeType } from '@redocly/openapi-core/lib/types';
|
|
500
|
+
|
|
497
501
|
}
|
|
498
502
|
declare module '@redocly/openapi-language-server/server/utils' {
|
|
499
503
|
import { YAMLNode } from '@redocly/yaml-language-server-parser';
|