Skip to content

Commit

Permalink
Fix typo with clientOS (#20819)
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig authored Mar 8, 2023
1 parent e9ff78d commit 7aac96a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class AttachConfigurationResolver extends BaseConfigurationResolver<Attac
(item, pos) => dbgConfig.debugOptions!.indexOf(item) === pos,
);
}
if (debugConfiguration.clienOS === undefined) {
if (debugConfiguration.clientOS === undefined) {
debugConfiguration.clientOS = getOSType() === OSType.Windows ? 'windows' : 'unix';
}
return debugConfiguration;
Expand Down Expand Up @@ -80,7 +80,7 @@ export class AttachConfigurationResolver extends BaseConfigurationResolver<Attac
if (getOSType() === OSType.Windows && isLocalHost) {
AttachConfigurationResolver.debugOption(debugOptions, DebugOptions.FixFilePathCase);
}
if (debugConfiguration.clienOS === undefined) {
if (debugConfiguration.clientOS === undefined) {
debugConfiguration.clientOS = getOSType() === OSType.Windows ? 'windows' : 'unix';
}
if (debugConfiguration.showReturnValue) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export abstract class BaseConfigurationResolver<T extends DebugConfiguration>
debugConfiguration: DebugConfiguration,
_token?: CancellationToken,
): Promise<T | undefined> {
if (debugConfiguration.clienOS === undefined) {
if (debugConfiguration.clientOS === undefined) {
debugConfiguration.clientOS = getOSType() === OSType.Windows ? 'windows' : 'unix';
}
return debugConfiguration as T;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class LaunchConfigurationResolver extends BaseConfigurationResolver<Launc

const workspaceFolder = LaunchConfigurationResolver.getWorkspaceFolder(folder);
await this.resolveAndUpdatePaths(workspaceFolder, debugConfiguration);
if (debugConfiguration.clienOS === undefined) {
if (debugConfiguration.clientOS === undefined) {
debugConfiguration.clientOS = getOSType() === OSType.Windows ? 'windows' : 'unix';
}
return debugConfiguration;
Expand Down
1 change: 1 addition & 0 deletions src/client/debugger/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ interface ICommonDebugArguments {
subProcess?: boolean;
// An absolute path to local directory with source.
pathMappings?: PathMapping[];
clientOS?: 'windows' | 'unix';
}
interface IKnownAttachDebugArguments extends ICommonDebugArguments {
workspaceFolder?: string;
Expand Down

0 comments on commit 7aac96a

Please sign in to comment.