Skip to content

Commit 2dd6068

Browse files
committed
💄
1 parent c3bbcb1 commit 2dd6068

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

src/commands/logs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class ExportLogsCommand implements Command {
5555

5656
let extRemoteLogsUri: vscode.Uri | undefined;
5757
try {
58-
// Invoke command from gitpot-remote extension
58+
// Invoke command from gitpod-remote extension
5959
extRemoteLogsUri = await vscode.commands.executeCommand('__gitpod.getGitpodRemoteLogsUri');
6060
} catch {
6161
// Ignore if not found

src/common/telemetry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class BaseTelemetryAppender implements ITelemetryAppender {
132132
return;
133133
}
134134
this.isInstantiating = true;
135-
// Call the client factory to get the client and then let it know it's instatntiated
135+
// Call the client factory to get the client and then let it know it's instantiated
136136
this._clientFactory().then(client => {
137137
this._telemetryClient = client;
138138
this._isInstantiated = true;
@@ -289,7 +289,7 @@ export class BaseTelemetryReporter extends Disposable {
289289
if (!result) {
290290
break;
291291
}
292-
// Anoynimize user file paths that do not need to be retained or cleaned up.
292+
// Anonymize user file paths that do not need to be retained or cleaned up.
293293
if (result[0] && !nodeModulesRegex.test(result[0]) && cleanUpIndexes.every(([x, y]) => result!.index < x || result!.index >= y)) {
294294
updatedStack += stack.substring(lastIndex, result.index) + '<REDACTED: user-file-path>';
295295
lastIndex = fileRegex.lastIndex;

src/experiments.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { ISessionService } from './services/sessionService';
1111
import { ILogService } from './services/logService';
1212
import { IHostService } from './services/hostService';
1313

14-
const EXPERTIMENTAL_SETTINGS = [
14+
const EXPERIMENTAL_SETTINGS = [
1515
'gitpod.remote.useLocalApp',
1616
// 'gitpod.remote.useLocalSSHServer',
1717
];
@@ -75,7 +75,7 @@ export class ExperimentalSettings {
7575
): Promise<T | undefined> {
7676
const config = vscode.workspace.getConfiguration('gitpod');
7777
const values = config.inspect<T>(key.substring('gitpod.'.length));
78-
if (!values || !EXPERTIMENTAL_SETTINGS.includes(key)) {
78+
if (!values || !EXPERIMENTAL_SETTINGS.includes(key)) {
7979
this.logger.error(`Cannot get invalid experimental setting '${key}'`);
8080
return values?.globalValue ?? values?.defaultValue;
8181
}
@@ -105,7 +105,7 @@ export class ExperimentalSettings {
105105
): Promise<{ key: string; defaultValue?: T; globalValue?: T; experimentValue?: T } | undefined> {
106106
const config = vscode.workspace.getConfiguration('gitpod');
107107
const values = config.inspect<T>(key.substring('gitpod.'.length));
108-
if (!values || !EXPERTIMENTAL_SETTINGS.includes(key)) {
108+
if (!values || !EXPERIMENTAL_SETTINGS.includes(key)) {
109109
this.logger.error(`Cannot inspect invalid experimental setting '${key}'`);
110110
return values;
111111
}

src/local-ssh/ipc/extensionServiceServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class ExtensionServiceImpl implements ExtensionServiceImplementation {
119119
}
120120
}
121121

122-
// TODO remove from protocol, don't pass sensitive info back and forth, only once for auth, daemon should do telemtry directly
122+
// TODO remove from protocol, don't pass sensitive info back and forth, only once for auth, daemon should do telemetry directly
123123
async sendLocalSSHUserFlowStatus(request: SendLocalSSHUserFlowStatusRequest, _context: CallContext): Promise<{}> {
124124
const flow: UserFlowTelemetry = {
125125
flow: 'ssh',
@@ -140,7 +140,7 @@ class ExtensionServiceImpl implements ExtensionServiceImplementation {
140140
return {};
141141
}
142142

143-
// TODO remove from protocol, don't pass sensitive info back and forth, only once for auth, daemon should do telemtry directly
143+
// TODO remove from protocol, don't pass sensitive info back and forth, only once for auth, daemon should do telemetry directly
144144
// local ssh daemon should be own component in reporting?
145145
async sendErrorReport(request: SendErrorReportRequest, _context: CallContext): Promise<{}> {
146146
const err = new Error(request.errorMessage);

src/local-ssh/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class WebSocketSSHProxy {
125125
}
126126
});
127127

128-
// This is expected to never throw as key is harcoded
128+
// This is expected to never throw as key is hardcoded
129129
const keys = await importKeyBytes(getHostKey());
130130
const config = new SshSessionConfiguration();
131131
config.maxClientAuthenticationAttempts = 1;

src/metrics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export class MetricsReporter {
278278
register.resetMetrics();
279279
for (const m of metrics) {
280280
if (m.name === 'grpc_client_msg_sent_total' || m.name === 'grpc_client_msg_received_total') {
281-
// Skip these as thy are filtered by ide metris
281+
// Skip these as thy are filtered by ide metrics
282282
continue;
283283
}
284284

src/remoteConnector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class RemoteConnector extends Disposable {
148148
deadline = Date.now() + timeout + updateTimeout * 2;
149149
await this.context.globalState.update(lockKey, <Lock>{ value, deadline, pid: process.pid });
150150
}
151-
// TODO(ak) env.globaState.onDidChange instead, see https://github.com/microsoft/vscode/issues/131182
151+
// TODO(ak) env.globalState.onDidChange instead, see https://github.com/microsoft/vscode/issues/131182
152152
await new Promise(resolve => setTimeout(resolve, updateTimeout));
153153
currentLock = this.context.globalState.get<Lock>(lockKey);
154154
}

src/ssh/hostfile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export async function checkNewHostInHostkeys(host: string): Promise<boolean> {
2323
continue;
2424
}
2525

26-
const [hostEncripted_] = line.split(' ');
27-
const [salt_, hostHash_] = hostEncripted_.substring(HASH_MAGIC.length).split(HASH_DELIM);
26+
const [hostEncrypted_] = line.split(' ');
27+
const [salt_, hostHash_] = hostEncrypted_.substring(HASH_MAGIC.length).split(HASH_DELIM);
2828
const hostHash = crypto.createHmac('sha1', Buffer.from(salt_, 'base64')).update(host).digest();
2929
if (hostHash.toString('base64') === hostHash_) {
3030
return false;

0 commit comments

Comments
 (0)