Skip to content

Commit 7f839a6

Browse files
committed
chore: Fixed @types/vscode to 1.26.0 (#679)
1 parent d6d3369 commit 7f839a6

File tree

3 files changed

+52
-8
lines changed

3 files changed

+52
-8
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@types/node": "^12.7.10",
6363
"@types/semver": "^6.0.0",
6464
"@types/tmp": "0.1.0",
65-
"@types/vscode": "^1.38.0",
65+
"@types/vscode": "1.26.0",
6666
"@types/xml2js": "^0.4.4",
6767
"codecov": "^3.4.0",
6868
"decache": "^4.5.1",

src/types/vscode.proposed.d.ts

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,28 @@ declare module "vscode" {
423423

424424
//#region André: debug
425425

426+
/**
427+
* Represents a debug adapter executable and optional arguments passed to it.
428+
*/
429+
export class DebugAdapterExecutable {
430+
/**
431+
* The command path of the debug adapter executable.
432+
* A command must be either an absolute path or the name of an executable looked up via the PATH environment variable.
433+
* The special value 'node' will be mapped to VS Code's built-in node runtime.
434+
*/
435+
readonly command: string;
436+
437+
/**
438+
* Optional arguments passed to the debug adapter executable.
439+
*/
440+
readonly args: string[];
441+
442+
/**
443+
* Create a new debug adapter specification.
444+
*/
445+
constructor(command: string, args?: string[]);
446+
}
447+
426448
export interface DebugConfigurationProvider {
427449
/**
428450
* This optional method is called just before a debug adapter is started to determine its executable path and arguments.
@@ -551,19 +573,28 @@ declare module "vscode" {
551573
commentingRanges?: Range[];
552574
}
553575

554-
export enum CommentThreadCollapsibleState {}
576+
export enum CommentThreadCollapsibleState {
577+
/**
578+
* Determines an item is collapsed
579+
*/
580+
Collapsed = 0,
581+
/**
582+
* Determines an item is expanded
583+
*/
584+
Expanded = 1
585+
}
555586

556587
interface CommentThread {
557588
threadId: string;
558589
resource: Uri;
559590
range: Range;
560-
comments: readonly Comment[];
561-
collapsibleState: CommentThreadCollapsibleState;
591+
comments: Comment[];
592+
collapsibleState?: CommentThreadCollapsibleState;
562593
}
563594

564595
interface Comment {
565596
commentId: string;
566-
body: string | MarkdownString;
597+
body: MarkdownString;
567598
userName: string;
568599
gravatar: string;
569600
command?: Command;
@@ -762,6 +793,19 @@ declare module "vscode" {
762793
}
763794

764795
export namespace window {
796+
/**
797+
* The currently active terminal or `undefined`. The active terminal is the one that
798+
* currently has focus or most recently had focus.
799+
*/
800+
export const activeTerminal: Terminal | undefined;
801+
802+
/**
803+
* An [event](#Event) which fires when the [active terminal](#window.activeTerminal)
804+
* has changed. *Note* that the event also fires when the active terminal changes
805+
* to `undefined`.
806+
*/
807+
export const onDidChangeActiveTerminal: Event<Terminal | undefined>;
808+
765809
/**
766810
* Create a [TerminalRenderer](#TerminalRenderer).
767811
*

0 commit comments

Comments
 (0)