Skip to content

Commit

Permalink
Update docs & mention params (#201)
Browse files Browse the repository at this point in the history
Update MentionParams to include `autoInclude` which will indicate
whether the request is to get the default mentions automatically.
  • Loading branch information
thenamankumar authored Sep 5, 2024
1 parent b2f1b82 commit ee7f33e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/protocol/src/openctx-protocol.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@
"codebase": {
"description": "Name of the active codebase infered from .git.",
"type": "string"
},
"autoInclude": {
"description": "Whether the request if to get auto include default context",
"type": "boolean"
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions lib/protocol/src/openctx-protocol.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ export interface MentionsParams {
* Name of the active codebase infered from .git.
*/
codebase?: string
/**
* Whether the request if to get auto include default context
*/
autoInclude?: boolean
}
export interface ItemsParams {
/**
Expand Down
12 changes: 12 additions & 0 deletions web/content/docs/protocol.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ export interface MentionsParams {
* A search query that is interpreted by providers to filter the items in the result set.
*/
query?: string
/**
* URI of the active document.
*/
uri?: string
/**
* Name of the active codebase.
*/
codebase?: string
/**
* Whether the request if to get automatically include default context.
*/
autoInclude?: string
}
```

Expand Down

0 comments on commit ee7f33e

Please sign in to comment.