Skip to content

Commit

Permalink
Merge pull request #189685 from microsoft/tyriar/type_remote
Browse files Browse the repository at this point in the history
Use const enum values instead of strings for remote calls
  • Loading branch information
Tyriar authored Aug 4, 2023
2 parents 24cfdda + 8959846 commit 90fb257
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class RemoteTerminalChannelClient implements IPtyHostController {
unicodeVersion,
resolverEnv
};
return await this._channel.call<ICreateTerminalProcessResult>('$createProcess', args);
return await this._channel.call<ICreateTerminalProcessResult>(RemoteTerminalChannelRequest.CreateProcess, args);
}

requestDetachInstance(workspaceId: string, instanceId: number): Promise<IProcessDetails | undefined> {
Expand Down Expand Up @@ -281,7 +281,7 @@ export class RemoteTerminalChannelClient implements IPtyHostController {
workspaceId: workspace.id,
tabs: layout ? layout.tabs : []
};
return this._channel.call<void>('$setTerminalLayoutInfo', args);
return this._channel.call<void>(RemoteTerminalChannelRequest.SetTerminalLayoutInfo, args);
}

updateTitle(id: number, title: string, titleSource: TitleEventSource): Promise<string> {
Expand All @@ -305,7 +305,7 @@ export class RemoteTerminalChannelClient implements IPtyHostController {
const args: IGetTerminalLayoutInfoArgs = {
workspaceId: workspace.id,
};
return this._channel.call<ITerminalsLayoutInfo>('$getTerminalLayoutInfo', args);
return this._channel.call<ITerminalsLayoutInfo>(RemoteTerminalChannelRequest.GetTerminalLayoutInfo, args);
}

reviveTerminalProcesses(workspaceId: string, state: ISerializedTerminalState[], dateTimeFormatLocate: string): Promise<void> {
Expand Down

0 comments on commit 90fb257

Please sign in to comment.