Skip to content

Commit 041777d

Browse files
committed
Merge branch 'master' of https://github.com/tylerlaprade/dance
2 parents 64809e1 + 037b685 commit 041777d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/state/editors.ts

+13
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,19 @@ export class PerEditorState implements vscode.Disposable {
255255
}
256256
}
257257

258+
private _formatDisplayName(modeName: string) {
259+
switch (vscode.workspace.getConfiguration(extensionName)
260+
.get<string>("activeModeDisplayTextTransform")) {
261+
case "uppercase":
262+
return modeName.toUpperCase();
263+
case "lowercase":
264+
return modeName.toLowerCase();
265+
case "as-is":
266+
default:
267+
return modeName;
268+
}
269+
}
270+
258271
/**
259272
* Called when `vscode.window.onDidChangeActiveTextEditor` is triggered with
260273
* another editor.

0 commit comments

Comments
 (0)