MCPcopy Index your code
hub / github.com/material-shell/material-shell / toString

Method toString

src/layout/msWorkspace/msWindow.ts:1311–1320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1309 }
1310
1311 toString() {
1312 // When MS function parameter logging is enabled, toString may be called on windows that have been destroyed.
1313 // So we need to guard against this. super.toString would otherwise try to access the destroyed C object.
1314 if (this.lifecycleState.type === 'destroyed') {
1315 return `[destroyed MsWindow - ${this.app.get_name()}]`;
1316 }
1317
1318 const string = super.toString();
1319 return `${string.slice(0, string.length - 1)} ${this.app.get_name()}]`;
1320 }
1321
1322 _onDestroy() {
1323 if (this.destroyId) this.disconnect(this.destroyId);

Callers 9

onDestroyMethod · 0.45
addLogToFunctionsMethod · 0.45
constructorMethod · 0.45
updateValueMethod · 0.45
cssHexStringFunction · 0.45
loadRegistryMethod · 0.45
checkMethod · 0.45
destroyMethod · 0.45
transpile.tsFile · 0.45

Calls 1

get_nameMethod · 0.65

Tested by

no test coverage detected