Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions packages/apidom-ls/src/config/openapi/callback/completion.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import {
ApidomCompletionItem,
CompletionFormat,
CompletionType,
} from '../../../apidom-language-types';

const completion: ApidomCompletionItem[] = [
{
label: '$ref',
insertText: '\\$ref',
kind: 14,
format: CompletionFormat.QUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: 'A reference to a Callback.',
},
},
];

export default completion;
2 changes: 2 additions & 0 deletions packages/apidom-ls/src/config/openapi/callback/meta.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import lint from './lint';
import completion from './completion';
import documentation from './documentation';
import { FormatMeta } from '../../../apidom-language-types';

const meta: FormatMeta = {
lint,
completion,
documentation,
};

Expand Down
12 changes: 12 additions & 0 deletions packages/apidom-ls/src/config/openapi/example/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ import {
} from '../../../apidom-language-types';

const completion: ApidomCompletionItem[] = [
{
label: '$ref',
insertText: '\\$ref',
kind: 14,
format: CompletionFormat.QUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: 'A reference to an Example.',
},
},
{
label: 'summary',
insertText: 'summary',
Expand Down
2 changes: 1 addition & 1 deletion packages/apidom-ls/src/config/openapi/header/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const completion: ApidomCompletionItem[] = [
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: 'A reference to a Header',
value: 'A reference to a Header.',
},
},
{
Expand Down
12 changes: 12 additions & 0 deletions packages/apidom-ls/src/config/openapi/link/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ import {
} from '../../../apidom-language-types';

const completion: ApidomCompletionItem[] = [
{
label: '$ref',
insertText: '\\$ref',
kind: 14,
format: CompletionFormat.QUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: 'A reference to a Link.',
},
},
{
label: 'operationRef',
insertText: 'operationRef',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const completion: ApidomCompletionItem[] = [
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: 'A reference to a Parameter',
value: 'A reference to a Parameter.',
},
},
{
Expand Down
12 changes: 12 additions & 0 deletions packages/apidom-ls/src/config/openapi/request-body/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ import {
} from '../../../apidom-language-types';

const completion: ApidomCompletionItem[] = [
{
label: '$ref',
insertText: '\\$ref',
kind: 14,
format: CompletionFormat.QUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: 'A reference to a Request Body.',
},
},
{
label: 'description',
insertText: 'description',
Expand Down
12 changes: 12 additions & 0 deletions packages/apidom-ls/src/config/openapi/response/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ import {
} from '../../../apidom-language-types';

const completion: ApidomCompletionItem[] = [
{
label: '$ref',
insertText: '\\$ref',
kind: 14,
format: CompletionFormat.QUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: 'A reference to a Response.',
},
},
{
label: 'description',
insertText: 'description',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ import {
} from '../../../apidom-language-types';

const completion: ApidomCompletionItem[] = [
{
label: '$ref',
insertText: '\\$ref',
kind: 14,
format: CompletionFormat.QUOTED,
type: CompletionType.PROPERTY,
insertTextFormat: 2,
documentation: {
kind: 'markdown',
value: 'A reference to a Security Scheme.',
},
},
{
label: 'type',
insertText: 'type',
Expand Down