Skip to content

Commit f3bf53f

Browse files
cleidighbpasero
authored andcommitted
Replace all instances off "Focussed" with "Focused" except ContextKey (microsoft#32904)
* Replace focussed with focused * Replace Focussed with Focused
1 parent ad0bd9b commit f3bf53f

24 files changed

Lines changed: 108 additions & 107 deletions

File tree

src/typings/electron.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4580,7 +4580,7 @@ declare namespace Electron {
45804580
*/
45814581
isDevToolsOpened(): boolean;
45824582
/**
4583-
* Returns whether the developer tools are focussed.
4583+
* Returns whether the developer tools are focused.
45844584
*/
45854585
isDevToolsFocused(): boolean;
45864586
/**

src/vs/base/browser/ui/actionbar/actionbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ export class ActionBar extends EventEmitter implements IActionRunner {
684684

685685
private cancel(): void {
686686
if (document.activeElement instanceof HTMLElement) {
687-
(<HTMLElement>document.activeElement).blur(); // remove focus from focussed action
687+
(<HTMLElement>document.activeElement).blur(); // remove focus from focused action
688688
}
689689

690690
this.emit(CommonEventType.CANCEL);

src/vs/code/electron-main/windows.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,8 +1616,8 @@ class FileDialog {
16161616
}
16171617

16181618
// Show Dialog
1619-
const focussedWindow = this.windowsMainService.getWindowById(options.windowId) || this.windowsMainService.getFocusedWindow();
1620-
dialog.showOpenDialog(focussedWindow && focussedWindow.win, options.dialogOptions, paths => {
1619+
const focusedWindow = this.windowsMainService.getWindowById(options.windowId) || this.windowsMainService.getFocusedWindow();
1620+
dialog.showOpenDialog(focusedWindow && focusedWindow.win, options.dialogOptions, paths => {
16211621
if (paths && paths.length > 0) {
16221622

16231623
// Remember path in storage for next time

src/vs/code/node/windowsFinder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ function hasCodeSettings(folder: string, normalizedUserHome?: string, codeSettin
112112
}
113113

114114
export function getLastActiveWindow<W extends ISimpleWindow>(windows: W[]): W {
115-
const lastFocussedDate = Math.max.apply(Math, windows.map(window => window.lastFocusTime));
115+
const lastFocusedDate = Math.max.apply(Math, windows.map(window => window.lastFocusTime));
116116

117-
return windows.filter(window => window.lastFocusTime === lastFocussedDate)[0];
117+
return windows.filter(window => window.lastFocusTime === lastFocusedDate)[0];
118118
}
119119

120120
export function findWindowOnWorkspace<W extends ISimpleWindow>(windows: W[], workspace: (IWorkspaceIdentifier | ISingleFolderWorkspaceIdentifier)): W {

src/vs/editor/contrib/find/common/findController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export interface IFindStartOptions {
3939

4040
export const CONTEXT_FIND_WIDGET_VISIBLE = new RawContextKey<boolean>('findWidgetVisible', false);
4141
export const CONTEXT_FIND_WIDGET_NOT_VISIBLE: ContextKeyExpr = CONTEXT_FIND_WIDGET_VISIBLE.toNegated();
42+
// Keep ContextKey use of 'Focussed' to not break when clauses
4243
export const CONTEXT_FIND_INPUT_FOCUSED = new RawContextKey<boolean>('findInputFocussed', false);
4344

4445
export class CommonFindController extends Disposable implements editorCommon.IEditorContribution {

src/vs/workbench/api/electron-browser/mainThreadSaveParticipant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function findEditor(model: IModel, codeEditorService: ICodeEditorService): IComm
7676
for (const editor of codeEditorService.listCodeEditors()) {
7777
if (editor.getModel() === model) {
7878
if (editor.isFocused()) {
79-
return editor; // favour focussed editor if there are multiple
79+
return editor; // favour focused editor if there are multiple
8080
}
8181

8282
candidate = editor;

src/vs/workbench/browser/panel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export abstract class TogglePanelAction extends Action {
101101
return panel && panel.getId() === this.panelId;
102102
}
103103

104-
protected isPanelFocussed(): boolean {
104+
protected isPanelFocused(): boolean {
105105
const activePanel = this.panelService.getActivePanel();
106106
const activeElement = document.activeElement;
107107

src/vs/workbench/browser/parts/editor/editorGroupsControl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export class EditorGroupsControl extends Themable implements IEditorGroupsContro
455455
}
456456
});
457457

458-
// Grow focussed position if there is more size to spend
458+
// Grow focused position if there is more size to spend
459459
if (remainingSize > this.minSize) {
460460
this.silosSize[this.lastActivePosition] = remainingSize;
461461

@@ -486,7 +486,7 @@ export class EditorGroupsControl extends Themable implements IEditorGroupsContro
486486

487487
private focusNextNonMinimized(): void {
488488

489-
// If the current focussed editor is minimized, try to focus the next largest editor
489+
// If the current focused editor is minimized, try to focus the next largest editor
490490
if (!types.isUndefinedOrNull(this.lastActivePosition) && this.silosMinimized[this.lastActivePosition]) {
491491
let candidate: Position = null;
492492
let currentSize = this.minSize;

src/vs/workbench/browser/viewlet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export class ToggleViewletAction extends Action {
231231

232232
public run(): TPromise<any> {
233233

234-
// Pass focus to viewlet if not open or focussed
234+
// Pass focus to viewlet if not open or focused
235235
if (this.otherViewletShowing() || !this.sidebarHasFocus()) {
236236
return this.viewletService.openViewlet(this.viewletId, true);
237237
}

src/vs/workbench/electron-browser/media/shell.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
}
100100

101101
.monaco-shell .mac select:focus {
102-
border: none; /* outline is a square, but border has a radius, so we avoid this glitch when focussed (https://github.com/Microsoft/vscode/issues/26045) */
102+
border: none; /* outline is a square, but border has a radius, so we avoid this glitch when focused (https://github.com/Microsoft/vscode/issues/26045) */
103103
}
104104

105105
.monaco-shell.hc-black [tabindex="0"]:focus,
@@ -158,7 +158,7 @@
158158
}
159159

160160
.monaco-shell .monaco-tree.focused:focus {
161-
outline: 0 !important; /* tree indicates focus not via outline but through the focussed item */
161+
outline: 0 !important; /* tree indicates focus not via outline but through the focused item */
162162
}
163163

164164
.monaco-shell [tabindex="0"]:active,

0 commit comments

Comments
 (0)