refactor: change goHome test to helpAbout

This commit is contained in:
Joe Previte
2021-03-16 12:49:49 -07:00
parent 0c2708302d
commit bcdca86539
3 changed files with 304 additions and 279 deletions

View File

@@ -9,133 +9,124 @@ export interface Options {
}
export interface InitMessage {
type: 'init';
id: string;
options: VscodeOptions;
type: "init"
id: string
options: VscodeOptions
}
export type Query = { [key: string]: string | string[] | undefined | Query | Query[] };
export type Query = { [key: string]: string | string[] | undefined | Query | Query[] }
export interface SocketMessage {
type: 'socket';
query: Query;
permessageDeflate: boolean;
type: "socket"
query: Query
permessageDeflate: boolean
}
export interface CliMessage {
type: 'cli';
args: Args;
type: "cli"
args: Args
}
export interface OpenCommandPipeArgs {
type: 'open';
fileURIs?: string[];
folderURIs: string[];
forceNewWindow?: boolean;
diffMode?: boolean;
addMode?: boolean;
gotoLineMode?: boolean;
forceReuseWindow?: boolean;
waitMarkerFilePath?: string;
type: "open"
fileURIs?: string[]
folderURIs: string[]
forceNewWindow?: boolean
diffMode?: boolean
addMode?: boolean
gotoLineMode?: boolean
forceReuseWindow?: boolean
waitMarkerFilePath?: string
}
export type CodeServerMessage = InitMessage | SocketMessage | CliMessage;
export type CodeServerMessage = InitMessage | SocketMessage | CliMessage
export interface ReadyMessage {
type: 'ready';
type: "ready"
}
export interface OptionsMessage {
id: string;
type: 'options';
options: WorkbenchOptions;
id: string
type: "options"
options: WorkbenchOptions
}
export type VscodeMessage = ReadyMessage | OptionsMessage;
export type VscodeMessage = ReadyMessage | OptionsMessage
export interface StartPath {
url: string;
workspace: boolean;
url: string
workspace: boolean
}
export interface Args {
'user-data-dir'?: string;
"user-data-dir"?: string
'enable-proposed-api'?: string[];
'extensions-dir'?: string;
'builtin-extensions-dir'?: string;
'extra-extensions-dir'?: string[];
'extra-builtin-extensions-dir'?: string[];
'ignore-last-opened'?: boolean;
"enable-proposed-api"?: string[]
"extensions-dir"?: string
"builtin-extensions-dir"?: string
"extra-extensions-dir"?: string[]
"extra-builtin-extensions-dir"?: string[]
"ignore-last-opened"?: boolean
locale?: string
log?: string;
verbose?: boolean;
home?: string;
log?: string
verbose?: boolean
_: string[];
_: string[]
}
export interface VscodeOptions {
readonly args: Args;
readonly remoteAuthority: string;
readonly startPath?: StartPath;
readonly args: Args
readonly remoteAuthority: string
readonly startPath?: StartPath
}
export interface VscodeOptionsMessage extends VscodeOptions {
readonly id: string;
readonly id: string
}
export interface UriComponents {
readonly scheme: string;
readonly authority: string;
readonly path: string;
readonly query: string;
readonly fragment: string;
readonly scheme: string
readonly authority: string
readonly path: string
readonly query: string
readonly fragment: string
}
export interface NLSConfiguration {
locale: string;
locale: string
availableLanguages: {
[key: string]: string;
};
pseudo?: boolean;
_languagePackSupport?: boolean;
[key: string]: string
}
pseudo?: boolean
_languagePackSupport?: boolean
}
export interface WorkbenchOptions {
readonly workbenchWebConfiguration: {
readonly remoteAuthority?: string;
readonly folderUri?: UriComponents;
readonly workspaceUri?: UriComponents;
readonly logLevel?: number;
readonly remoteAuthority?: string
readonly folderUri?: UriComponents
readonly workspaceUri?: UriComponents
readonly logLevel?: number
readonly workspaceProvider?: {
payload: [
['userDataPath', string],
['enableProposedApi', string],
];
};
readonly homeIndicator?: {
href: string,
icon: string,
title: string,
},
};
readonly remoteUserDataUri: UriComponents;
payload: [["userDataPath", string], ["enableProposedApi", string]]
}
}
readonly remoteUserDataUri: UriComponents
readonly productConfiguration: {
codeServerVersion?: string;
codeServerVersion?: string
readonly extensionsGallery?: {
readonly serviceUrl: string;
readonly itemUrl: string;
readonly controlUrl: string;
readonly recommendationsUrl: string;
};
};
readonly nlsConfiguration: NLSConfiguration;
readonly commit: string;
readonly serviceUrl: string
readonly itemUrl: string
readonly controlUrl: string
readonly recommendationsUrl: string
}
}
readonly nlsConfiguration: NLSConfiguration
readonly commit: string
}
export interface WorkbenchOptionsMessage {
id: string;
id: string
}