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

Function getVersionNumber

gulpfile.js:96–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94}
95
96const getVersionNumber = () => {
97 if (process.env.JS_DEBUG_VERSION) {
98 return process.env.JS_DEBUG_VERSION;
99 }
100
101 const date = new Date(new Date().toLocaleString('en-US', { timeZone: 'America/Los_Angeles' }));
102 const monthMinutes = (date.getDate() - 1) * 24 * 60 + date.getHours() * 60 + date.getMinutes();
103
104 return [
105 // YY
106 date.getFullYear(),
107 // MM,
108 date.getMonth() + 1,
109 // DDHH
110 `${date.getDate()}${String(date.getHours()).padStart(2, '0')}`,
111 ].join('.');
112};
113
114const cachedBuilds = new Map();
115const incrementalEsbuild = async (/** @type {esbuild.BuildOptions} */ options) => {

Callers 2

gulpfile.jsFile · 0.85
getConstantDefinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected