MCPcopy
hub / github.com/microsoft/vscode-js-debug / getAsyncStackPolicy

Function getAsyncStackPolicy

src/adapter/asyncStackPolicy.ts:82–100  ·  view source on GitHub ↗
(mode: AsyncStackMode)

Source from the content-addressed store, hash-verified

80const defaultPolicy = eager(32);
81
82export const getAsyncStackPolicy = (mode: AsyncStackMode) => {
83 if (mode === false) {
84 return disabled;
85 }
86
87 if (mode === true) {
88 return defaultPolicy;
89 }
90
91 if ('onAttach' in mode) {
92 return eager(mode.onAttach);
93 }
94
95 if ('onceBreakpointResolved' in mode) {
96 return onceBp(mode.onceBreakpointResolved);
97 }
98
99 return defaultPolicy;
100};

Callers 1

attachMethod · 0.90

Calls 2

eagerFunction · 0.85
onceBpFunction · 0.85

Tested by

no test coverage detected