Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snapchat/Valdi
/ tryEnable
Function
tryEnable
valdi/vscode_debugger/src/adapter/asyncStackPolicy.ts:36–41 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
34
const
onEnable: EventEmitter<void> | undefined =
new
EventEmitter<void>();
35
let
enabled = false;
36
const
tryEnable = () => {
37
if
(!enabled) {
38
enabled = true;
39
onEnable.fire();
40
}
41
};
42
43
return
{
44
async
connect(cdp) {
Callers
1
connect
Function · 0.85
Calls
1
fire
Method · 0.80
Tested by
no test coverage detected