mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
Spelling
This commit is contained in:
@@ -16,7 +16,7 @@ import { ChildServerProcess } from './tsServer/serverProcess.electron';
|
||||
import { DiskTypeScriptVersionProvider } from './tsServer/versionProvider.electron';
|
||||
import { ActiveJsTsEditorTracker } from './utils/activeJsTsEditorTracker';
|
||||
import { ElectronServiceConfigurationProvider } from './utils/configuration.electron';
|
||||
import { onCaseInsenitiveFileSystem } from './utils/fileSystem.electron';
|
||||
import { onCaseInsensitiveFileSystem } from './utils/fileSystem.electron';
|
||||
import { PluginManager } from './utils/plugins';
|
||||
import * as temp from './utils/temp.electron';
|
||||
|
||||
@@ -40,7 +40,7 @@ export function activate(
|
||||
const activeJsTsEditorTracker = new ActiveJsTsEditorTracker();
|
||||
context.subscriptions.push(activeJsTsEditorTracker);
|
||||
|
||||
const lazyClientHost = createLazyClientHost(context, onCaseInsenitiveFileSystem(), {
|
||||
const lazyClientHost = createLazyClientHost(context, onCaseInsensitiveFileSystem(), {
|
||||
pluginManager,
|
||||
commandManager,
|
||||
logDirectoryProvider,
|
||||
|
||||
@@ -151,11 +151,11 @@ export class DiagnosticsManager extends Disposable {
|
||||
|
||||
constructor(
|
||||
owner: string,
|
||||
onCaseInsenitiveFileSystem: boolean
|
||||
onCaseInsensitiveFileSystem: boolean
|
||||
) {
|
||||
super();
|
||||
this._diagnostics = new ResourceMap<FileDiagnostics>(undefined, { onCaseInsenitiveFileSystem });
|
||||
this._pendingUpdates = new ResourceMap<any>(undefined, { onCaseInsenitiveFileSystem });
|
||||
this._diagnostics = new ResourceMap<FileDiagnostics>(undefined, { onCaseInsensitiveFileSystem });
|
||||
this._pendingUpdates = new ResourceMap<any>(undefined, { onCaseInsensitiveFileSystem });
|
||||
|
||||
this._currentDiagnostics = this._register(vscode.languages.createDiagnosticCollection(owner));
|
||||
}
|
||||
|
||||
@@ -41,10 +41,10 @@ export default class FileConfigurationManager extends Disposable {
|
||||
|
||||
public constructor(
|
||||
private readonly client: ITypeScriptServiceClient,
|
||||
onCaseInsenitiveFileSystem: boolean
|
||||
onCaseInsensitiveFileSystem: boolean
|
||||
) {
|
||||
super();
|
||||
this.formatOptions = new ResourceMap(undefined, { onCaseInsenitiveFileSystem });
|
||||
this.formatOptions = new ResourceMap(undefined, { onCaseInsensitiveFileSystem });
|
||||
vscode.workspace.onDidCloseTextDocument(textDocument => {
|
||||
// When a document gets closed delete the cached formatting options.
|
||||
// This is necessary since the tsserver now closed a project when its
|
||||
|
||||
@@ -73,10 +73,10 @@ class BufferSynchronizer {
|
||||
constructor(
|
||||
private readonly client: ITypeScriptServiceClient,
|
||||
pathNormalizer: (path: vscode.Uri) => string | undefined,
|
||||
onCaseInsenitiveFileSystem: boolean
|
||||
onCaseInsensitiveFileSystem: boolean
|
||||
) {
|
||||
this._pending = new ResourceMap<BufferOperation>(pathNormalizer, {
|
||||
onCaseInsenitiveFileSystem
|
||||
onCaseInsensitiveFileSystem
|
||||
});
|
||||
}
|
||||
|
||||
@@ -377,7 +377,7 @@ export default class BufferSyncSupport extends Disposable {
|
||||
constructor(
|
||||
client: ITypeScriptServiceClient,
|
||||
modeIds: readonly string[],
|
||||
onCaseInsenitiveFileSystem: boolean
|
||||
onCaseInsensitiveFileSystem: boolean
|
||||
) {
|
||||
super();
|
||||
this.client = client;
|
||||
@@ -386,9 +386,9 @@ export default class BufferSyncSupport extends Disposable {
|
||||
this.diagnosticDelayer = new Delayer<any>(300);
|
||||
|
||||
const pathNormalizer = (path: vscode.Uri) => this.client.normalizedPath(path);
|
||||
this.syncedBuffers = new SyncedBufferMap(pathNormalizer, { onCaseInsenitiveFileSystem });
|
||||
this.pendingDiagnostics = new PendingDiagnostics(pathNormalizer, { onCaseInsenitiveFileSystem });
|
||||
this.synchronizer = new BufferSynchronizer(client, pathNormalizer, onCaseInsenitiveFileSystem);
|
||||
this.syncedBuffers = new SyncedBufferMap(pathNormalizer, { onCaseInsensitiveFileSystem });
|
||||
this.pendingDiagnostics = new PendingDiagnostics(pathNormalizer, { onCaseInsensitiveFileSystem });
|
||||
this.synchronizer = new BufferSynchronizer(client, pathNormalizer, onCaseInsensitiveFileSystem);
|
||||
|
||||
this.updateConfiguration();
|
||||
vscode.workspace.onDidChangeConfiguration(this.updateConfiguration, this, this._disposables);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import * as fs from 'fs';
|
||||
import { getTempFile } from './temp.electron';
|
||||
|
||||
export const onCaseInsenitiveFileSystem = (() => {
|
||||
export const onCaseInsensitiveFileSystem = (() => {
|
||||
let value: boolean | undefined;
|
||||
return (): boolean => {
|
||||
if (typeof value === 'undefined') {
|
||||
|
||||
@@ -26,7 +26,7 @@ export class ResourceMap<T> {
|
||||
constructor(
|
||||
protected readonly _normalizePath: (resource: vscode.Uri) => string | undefined = ResourceMap.defaultPathNormalizer,
|
||||
protected readonly config: {
|
||||
readonly onCaseInsenitiveFileSystem: boolean,
|
||||
readonly onCaseInsensitiveFileSystem: boolean,
|
||||
},
|
||||
) { }
|
||||
|
||||
@@ -92,7 +92,7 @@ export class ResourceMap<T> {
|
||||
if (isWindowsPath(path)) {
|
||||
return true;
|
||||
}
|
||||
return path[0] === '/' && this.config.onCaseInsenitiveFileSystem;
|
||||
return path[0] === '/' && this.config.onCaseInsensitiveFileSystem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user