Skip to content

Commit c6d4515

Browse files
committed
Spelling
1 parent a1421c6 commit c6d4515

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

extensions/typescript-language-features/src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { ChildServerProcess } from './tsServer/serverProcess.electron';
1616
import { DiskTypeScriptVersionProvider } from './tsServer/versionProvider.electron';
1717
import { ActiveJsTsEditorTracker } from './utils/activeJsTsEditorTracker';
1818
import { ElectronServiceConfigurationProvider } from './utils/configuration.electron';
19-
import { onCaseInsenitiveFileSystem } from './utils/fileSystem.electron';
19+
import { onCaseInsensitiveFileSystem } from './utils/fileSystem.electron';
2020
import { PluginManager } from './utils/plugins';
2121
import * as temp from './utils/temp.electron';
2222

@@ -40,7 +40,7 @@ export function activate(
4040
const activeJsTsEditorTracker = new ActiveJsTsEditorTracker();
4141
context.subscriptions.push(activeJsTsEditorTracker);
4242

43-
const lazyClientHost = createLazyClientHost(context, onCaseInsenitiveFileSystem(), {
43+
const lazyClientHost = createLazyClientHost(context, onCaseInsensitiveFileSystem(), {
4444
pluginManager,
4545
commandManager,
4646
logDirectoryProvider,

extensions/typescript-language-features/src/languageFeatures/diagnostics.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ export class DiagnosticsManager extends Disposable {
151151

152152
constructor(
153153
owner: string,
154-
onCaseInsenitiveFileSystem: boolean
154+
onCaseInsensitiveFileSystem: boolean
155155
) {
156156
super();
157-
this._diagnostics = new ResourceMap<FileDiagnostics>(undefined, { onCaseInsenitiveFileSystem });
158-
this._pendingUpdates = new ResourceMap<any>(undefined, { onCaseInsenitiveFileSystem });
157+
this._diagnostics = new ResourceMap<FileDiagnostics>(undefined, { onCaseInsensitiveFileSystem });
158+
this._pendingUpdates = new ResourceMap<any>(undefined, { onCaseInsensitiveFileSystem });
159159

160160
this._currentDiagnostics = this._register(vscode.languages.createDiagnosticCollection(owner));
161161
}

extensions/typescript-language-features/src/languageFeatures/fileConfigurationManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ export default class FileConfigurationManager extends Disposable {
4141

4242
public constructor(
4343
private readonly client: ITypeScriptServiceClient,
44-
onCaseInsenitiveFileSystem: boolean
44+
onCaseInsensitiveFileSystem: boolean
4545
) {
4646
super();
47-
this.formatOptions = new ResourceMap(undefined, { onCaseInsenitiveFileSystem });
47+
this.formatOptions = new ResourceMap(undefined, { onCaseInsensitiveFileSystem });
4848
vscode.workspace.onDidCloseTextDocument(textDocument => {
4949
// When a document gets closed delete the cached formatting options.
5050
// This is necessary since the tsserver now closed a project when its

extensions/typescript-language-features/src/tsServer/bufferSyncSupport.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ class BufferSynchronizer {
7373
constructor(
7474
private readonly client: ITypeScriptServiceClient,
7575
pathNormalizer: (path: vscode.Uri) => string | undefined,
76-
onCaseInsenitiveFileSystem: boolean
76+
onCaseInsensitiveFileSystem: boolean
7777
) {
7878
this._pending = new ResourceMap<BufferOperation>(pathNormalizer, {
79-
onCaseInsenitiveFileSystem
79+
onCaseInsensitiveFileSystem
8080
});
8181
}
8282

@@ -377,7 +377,7 @@ export default class BufferSyncSupport extends Disposable {
377377
constructor(
378378
client: ITypeScriptServiceClient,
379379
modeIds: readonly string[],
380-
onCaseInsenitiveFileSystem: boolean
380+
onCaseInsensitiveFileSystem: boolean
381381
) {
382382
super();
383383
this.client = client;
@@ -386,9 +386,9 @@ export default class BufferSyncSupport extends Disposable {
386386
this.diagnosticDelayer = new Delayer<any>(300);
387387

388388
const pathNormalizer = (path: vscode.Uri) => this.client.normalizedPath(path);
389-
this.syncedBuffers = new SyncedBufferMap(pathNormalizer, { onCaseInsenitiveFileSystem });
390-
this.pendingDiagnostics = new PendingDiagnostics(pathNormalizer, { onCaseInsenitiveFileSystem });
391-
this.synchronizer = new BufferSynchronizer(client, pathNormalizer, onCaseInsenitiveFileSystem);
389+
this.syncedBuffers = new SyncedBufferMap(pathNormalizer, { onCaseInsensitiveFileSystem });
390+
this.pendingDiagnostics = new PendingDiagnostics(pathNormalizer, { onCaseInsensitiveFileSystem });
391+
this.synchronizer = new BufferSynchronizer(client, pathNormalizer, onCaseInsensitiveFileSystem);
392392

393393
this.updateConfiguration();
394394
vscode.workspace.onDidChangeConfiguration(this.updateConfiguration, this, this._disposables);

extensions/typescript-language-features/src/utils/fileSystem.electron.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import * as fs from 'fs';
77
import { getTempFile } from './temp.electron';
88

9-
export const onCaseInsenitiveFileSystem = (() => {
9+
export const onCaseInsensitiveFileSystem = (() => {
1010
let value: boolean | undefined;
1111
return (): boolean => {
1212
if (typeof value === 'undefined') {

extensions/typescript-language-features/src/utils/resourceMap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class ResourceMap<T> {
2626
constructor(
2727
protected readonly _normalizePath: (resource: vscode.Uri) => string | undefined = ResourceMap.defaultPathNormalizer,
2828
protected readonly config: {
29-
readonly onCaseInsenitiveFileSystem: boolean,
29+
readonly onCaseInsensitiveFileSystem: boolean,
3030
},
3131
) { }
3232

@@ -92,7 +92,7 @@ export class ResourceMap<T> {
9292
if (isWindowsPath(path)) {
9393
return true;
9494
}
95-
return path[0] === '/' && this.config.onCaseInsenitiveFileSystem;
95+
return path[0] === '/' && this.config.onCaseInsensitiveFileSystem;
9696
}
9797
}
9898

0 commit comments

Comments
 (0)