MCPcopy
hub / github.com/microsoft/SandDance / getVscodeThemeClassName

Function getVscodeThemeClassName

extensions/common-frontend/src/app.tsx:36–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 function getVscodeThemeClassName() {
37 const classList = [].slice.apply(document.body.classList) as string[];
38 const prefixed = classList.filter(className => className.indexOf('vscode') === 0);
39 if (prefixed.length) {
40 return prefixed[0];
41 }
42 }
43
44 interface State {
45 compactUI: boolean;

Callers 1

checkForDarkThemeMethod · 0.85

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected