From a043a0ea906f19e961212c4c2b0c125b8d08e857 Mon Sep 17 00:00:00 2001 From: narumincho <16481886+narumincho@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:29:46 +0900 Subject: [PATCH 1/3] fix README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 7d01308..3097049 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,6 @@ modified for Deno from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/vscode/index.d.ts -or emit or something similar should be used. ( https://deno.land/x/esbuild ) - Must be bundled with - [esbuild](https://github.com/esbuild/deno-esbuild) with From 75607b5ceabae9b4dc81293d33e47c67be8aad78 Mon Sep 17 00:00:00 2001 From: narumincho <16481886+narumincho@users.noreply.github.com> Date: Fri, 5 Jul 2024 08:39:25 +0900 Subject: [PATCH 2/3] add Extension Manifest link comment --- example/build.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/example/build.ts b/example/build.ts index 29c93f0..c79f7cc 100644 --- a/example/build.ts +++ b/example/build.ts @@ -56,6 +56,7 @@ await Promise.all([ await buildMainJs(), ), + // https://code.visualstudio.com/api/references/extension-manifest writeTextFileWithLog( resolve(distributionPath, "./package.json"), JSON.stringify({ From 3c5f2d0f0095caa06a1df82e186e914744a91993 Mon Sep 17 00:00:00 2001 From: narumincho <16481886+narumincho@users.noreply.github.com> Date: Fri, 5 Jul 2024 08:42:34 +0900 Subject: [PATCH 3/3] update 1.91.0 --- deno.json | 2 +- gen/out.ts | 55 +++++++++++++++++++++++++++++------------------------- mod.ts | 5 +++++ 3 files changed, 36 insertions(+), 26 deletions(-) diff --git a/deno.json b/deno.json index 8982945..2ec64de 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@narumincho/vscode", - "version": "1.90.0", + "version": "1.91.0", "exports": "./mod.ts", "tasks": { "build-example": "deno run -A ./example/build.ts" diff --git a/gen/out.ts b/gen/out.ts index 4f38e2f..e4be494 100644 --- a/gen/out.ts +++ b/gen/out.ts @@ -74,7 +74,7 @@ Returns VSCodeApi only within the vscode extension. }; /** * Represents sources that can cause {@link window.onDidChangeTextEditorSelection selection change events}. - */ readonly TextEditorSelectionChangeKind: { + */ readonly TextEditorSelectionChangeKind: { /** * Selection changed due to typing in the editor. */ readonly Keyboard: 1; @@ -1179,7 +1179,7 @@ Returns VSCodeApi only within the vscode extension. */ readonly InlineCompletionList: { /** * Creates a new list of inline completion items. - */ new(items: InlineCompletionItem[]): InlineCompletionList; + */ new(items: InlineCompletionItem[]): InlineCompletionList; }; /** * Describes how an {@link InlineCompletionItemProvider inline completion provider} was triggered. @@ -1423,7 +1423,7 @@ Returns VSCodeApi only within the vscode extension. */ readonly ConfigurationTarget: { /** * Global configuration - */ readonly Global: 1; + */ readonly Global: 1; /** * Workspace configuration */ readonly Workspace: 2; @@ -2877,8 +2877,8 @@ Returns VSCodeApi only within the vscode extension. */ readonly Expanded: 2; }; /** - * Checkbox state of the tree item - */ readonly TreeItemCheckboxState: { + * Checkbox state of the tree item + */ readonly TreeItemCheckboxState: { /** * Determines an item is unchecked */ readonly Unchecked: 0; @@ -4257,7 +4257,7 @@ Returns VSCodeApi only within the vscode extension. * * @param rendererId The renderer ID to communicate with * @returns A new notebook renderer messaging object. - */ createRendererMessaging(rendererId: string): NotebookRendererMessaging; + */ createRendererMessaging(rendererId: string): NotebookRendererMessaging; }; /** * Namespace for source control mangement. @@ -4464,7 +4464,7 @@ Returns VSCodeApi only within the vscode extension. /** * Add breakpoints. * @param breakpoints The breakpoints to add. - */ addBreakpoints(breakpoints: readonly Breakpoint[]): void; + */ addBreakpoints(breakpoints: readonly Breakpoint[]): void; /** * Remove breakpoints. * @param breakpoints The breakpoints to remove. @@ -4713,7 +4713,7 @@ Returns VSCodeApi only within the vscode extension. * @param id Identifier for the controller, must be globally unique. * @param label A human-readable label for the controller. * @returns An instance of the {@link TestController}. - */ createTestController(id: string, label: string): TestController; + */ createTestController(id: string, label: string): TestController; }; /** * The kind of executions that {@link TestRunProfile TestRunProfiles} control. @@ -5442,7 +5442,7 @@ type ValueOf = T[keyof T]; }; /** * Represents sources that can cause {@link window.onDidChangeTextEditorSelection selection change events}. - */ export type TextEditorSelectionChangeKind = ValueOf; + */ export type TextEditorSelectionChangeKind = ValueOf; /** * Represents an event describing the change in a {@link TextEditor.selections text editor's selections}. */ export interface TextEditorSelectionChangeEvent { @@ -11301,8 +11301,8 @@ type ValueOf = T[keyof T]; * array containing all selected tree items. */ canSelectMany?: boolean; /** - * An optional interface to implement drag and drop in the tree view. - */ dragAndDropController?: TreeDragAndDropController; + * An optional interface to implement drag and drop in the tree view. + */ dragAndDropController?: TreeDragAndDropController; /** * By default, when the children of a tree item have already been fetched, child checkboxes are automatically managed based on the checked state of the parent tree item. * If the tree item is collapsed by default (meaning that the children haven't yet been fetched) then child checkboxes will not be updated. @@ -11500,8 +11500,8 @@ type ValueOf = T[keyof T]; * An event describing the change in a tree item's checkbox state. */ export interface TreeCheckboxChangeEvent { /** - * The items that were checked or unchecked. - */ readonly items: ReadonlyArray<[T, TreeItemCheckboxState]>; + * The items that were checked or unchecked. + */ readonly items: ReadonlyArray<[T, TreeItemCheckboxState]>; } /** * Represents a Tree view @@ -11525,8 +11525,8 @@ type ValueOf = T[keyof T]; * Event that is fired when {@link TreeView.visible visibility} has changed */ readonly onDidChangeVisibility: Event; /** - * An event to signal that an element or root has either been checked or unchecked. - */ readonly onDidChangeCheckboxState: Event>; + * An event to signal that an element or root has either been checked or unchecked. + */ readonly onDidChangeCheckboxState: Event>; /** * An optional human-readable message that will be rendered in the view. * Setting the message to null, undefined, or empty string will remove the message from the view. @@ -11716,8 +11716,8 @@ type ValueOf = T[keyof T]; */ highlights?: [number, number][]; } /** - * Checkbox state of the tree item - */ export type TreeItemCheckboxState = ValueOf; + * Checkbox state of the tree item + */ export type TreeItemCheckboxState = ValueOf; /** * Value-object describing what options a terminal should use. */ export interface TerminalOptions { @@ -11774,8 +11774,8 @@ type ValueOf = T[keyof T]; * recommended for the best contrast and consistency across themes. */ color?: ThemeColor; /** - * The {@link TerminalLocation} or {@link TerminalEditorLocationOptions} or {@link TerminalSplitLocationOptions} for the terminal. - */ location?: TerminalLocation | TerminalEditorLocationOptions | TerminalSplitLocationOptions; + * The {@link TerminalLocation} or {@link TerminalEditorLocationOptions} or {@link TerminalSplitLocationOptions} for the terminal. + */ location?: TerminalLocation | TerminalEditorLocationOptions | TerminalSplitLocationOptions; /** * Opt-out of the default terminal persistence on restart and reload. * This will only take effect when `terminal.integrated.enablePersistentSessions` is enabled. @@ -12376,7 +12376,7 @@ type ValueOf = T[keyof T]; /** * The reason why the document was changed. * Is `undefined` if the reason is not known. - */ readonly reason: TextDocumentChangeReason | undefined; + */ readonly reason: TextDocumentChangeReason | undefined; } /** * Represents reasons why a text document is saved. @@ -13796,6 +13796,11 @@ type ValueOf = T[keyof T]; /** * When true, the debug viewlet will not be automatically revealed for this session. */ suppressDebugView?: boolean; + /** + * Signals to the editor that the debug session was started from a test run + * request. This is used to link the lifecycle of the debug session and + * test run in UI actions. + */ testRun?: TestRun; } /** * A DebugConfigurationProviderTriggerKind specifies when the `provideDebugConfigurations` method of a `DebugConfigurationProvider` is triggered. @@ -14130,14 +14135,14 @@ type ValueOf = T[keyof T]; /** * Whether it is possible to be signed into multiple accounts at once with this provider. * If not specified, will default to false. - */ readonly supportsMultipleAccounts?: boolean; + */ readonly supportsMultipleAccounts?: boolean; } /** - * An {@link Event} which fires when an {@link AuthenticationSession} is added, removed, or changed. - */ export interface AuthenticationProviderAuthenticationSessionsChangeEvent { + * An {@link Event} which fires when an {@link AuthenticationSession} is added, removed, or changed. + */ export interface AuthenticationProviderAuthenticationSessionsChangeEvent { /** * The {@link AuthenticationSession AuthenticationSessions} of the {@link AuthenticationProvider} that have been added. - */ readonly added: readonly AuthenticationSession[] | undefined; + */ readonly added: readonly AuthenticationSession[] | undefined; /** * The {@link AuthenticationSession AuthenticationSessions} of the {@link AuthenticationProvider} that have been removed. */ readonly removed: readonly AuthenticationSession[] | undefined; @@ -15346,7 +15351,7 @@ type ValueOf = T[keyof T]; * Represents a language model response. * * @see {@link LanguageModelAccess.chatRequest} - */ export interface LanguageModelChatResponse { + */ export interface LanguageModelChatResponse { /** * An async iterable that is a stream of text chunks forming the overall response. * diff --git a/mod.ts b/mod.ts index 4fe8ae9..2469247 100644 --- a/mod.ts +++ b/mod.ts @@ -14906,6 +14906,11 @@ type ValueOf = T[keyof T]; /** * When true, the debug viewlet will not be automatically revealed for this session. */ suppressDebugView?: boolean; + /** + * Signals to the editor that the debug session was started from a test run + * request. This is used to link the lifecycle of the debug session and + * test run in UI actions. + */ testRun?: TestRun; } /** * A DebugConfigurationProviderTriggerKind specifies when the `provideDebugConfigurations` method of a `DebugConfigurationProvider` is triggered.