@aws/language-server-runtimes-types
Advanced tools
Comparing version
# Changelog | ||
## [0.0.2] - 2024-05-06 | ||
- Update Chat and QuickAction request parameter types | ||
- Fix main entry to the package | ||
## [0.0.1] - 2024-04-24 | ||
- Initial release containing type definitions migrated from `@aws/language-server-runtimes` package |
@@ -0,1 +1,2 @@ | ||
import { Position, Range, TextDocumentIdentifier } from './lsp'; | ||
export interface ChatItemAction { | ||
@@ -38,5 +39,15 @@ pillText: string; | ||
export type CodeSelectionType = 'selection' | 'block'; | ||
export interface ChatParams { | ||
export type CursorState = { | ||
position: Position; | ||
} | { | ||
range: Range; | ||
}; | ||
interface PartialResultParams { | ||
partialResultToken?: number | string; | ||
} | ||
export interface ChatParams extends PartialResultParams { | ||
tabId: string; | ||
prompt: ChatPrompt; | ||
cursorState?: CursorState[]; | ||
textDocument?: TextDocumentIdentifier; | ||
} | ||
@@ -61,6 +72,8 @@ export interface ChatResult { | ||
export type EndChatResult = boolean; | ||
export interface QuickActionParams { | ||
export interface QuickActionParams extends PartialResultParams { | ||
tabId: string; | ||
quickAction: string; | ||
prompt?: string; | ||
cursorState?: CursorState[]; | ||
textDocument?: TextDocumentIdentifier; | ||
} | ||
@@ -112,1 +125,2 @@ export interface QuickActionResult extends ChatResult { | ||
} | ||
export {}; |
"use strict"; | ||
// Chat Data Model | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -4,0 +3,0 @@ exports.VoteType = void 0; |
{ | ||
"name": "@aws/language-server-runtimes-types", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Type definitions in Language Servers and Runtimes for AWS", | ||
"main": "out/index.js", | ||
"main": "index.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "clean": "rm -rf out/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
45538
1.18%271
5.04%1
Infinity%