awa
This commit is contained in:
20
_internal/editor/esm/vs/base/common/codiconsUtil.js
Normal file
20
_internal/editor/esm/vs/base/common/codiconsUtil.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import { isString } from './types.js';
|
||||
const _codiconFontCharacters = Object.create(null);
|
||||
export function register(id, fontCharacter) {
|
||||
if (isString(fontCharacter)) {
|
||||
const val = _codiconFontCharacters[fontCharacter];
|
||||
if (val === undefined) {
|
||||
throw new Error(`${id} references an unknown codicon: ${fontCharacter}`);
|
||||
}
|
||||
fontCharacter = val;
|
||||
}
|
||||
_codiconFontCharacters[id] = fontCharacter;
|
||||
return { id };
|
||||
}
|
||||
/**
|
||||
* Only to be used by the iconRegistry.
|
||||
*/
|
||||
export function getCodiconFontCharacters() {
|
||||
return _codiconFontCharacters;
|
||||
}
|
||||
//# sourceMappingURL=codiconsUtil.js.map
|
||||
Reference in New Issue
Block a user