MCPcopy Create free account
hub / github.com/Wscats/vscode-explore / isDefaultVariant

Function isDefaultVariant

contextKeyExpr/src/platform.ts:133–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 }
132
133 export function isDefaultVariant(): boolean {
134 if (language.length === 2) {
135 return language === 'en';
136 } else if (language.length >= 3) {
137 return language[0] === 'e' && language[1] === 'n' && language[2] === '-';
138 } else {
139 return false;
140 }
141 }
142
143 export function isDefault(): boolean {
144 return language === 'en';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected