Variables
Const COMBINED_SELECTORS
COMBINED_SELECTORS: string = SELECTOR_PATTERNS.map(selector => `(${selector.source})`).join(`|`)
Const FILEPATH_MATCHER
FILEPATH_MATCHER: string = /(([A-Za-z]:)?\/.*((__virtual__)|(\$\$virtual)|(\.zip)).*\.[\w:]+)/.source
Const FILE_SELECTOR_MATCHER
FILE_SELECTOR_MATCHER: string = `(${FILEPATH_MATCHER})(${COMBINED_SELECTORS})?`
Const SELECTOR_PATTERNS
SELECTOR_PATTERNS: RegExp[] = [// :LINE:COLUMN/:(\d+):(\d+)/,// :LINE/:(\d+)/,// (LINE,COLUMN)/\((\d+),(\d+)\)/,// (LINE)/\((\d+)\)/,]
Const TEST_PATHS
TEST_PATHS: string[] = [`.yarn/$$virtual/@yarnpkg-plugin-npm-virtual-e1403461d9/1/packages/plugin-npm/sources/npmHttpUtils.ts`,`.yarn/$$virtual/@yarnpkg-plugin-npm-virtual-e1403461d9/1/packages/plugin-npm/sources/npmHttpUtils.ts:10`,`.yarn/$$virtual/@yarnpkg-plugin-npm-virtual-e1403461d9/1/packages/plugin-npm/sources/npmHttpUtils.ts:10:10`,`.yarn/$$virtual/@yarnpkg-plugin-npm-virtual-e1403461d9/1/packages/plugin-npm/sources/npmHttpUtils.ts(10,10)`,`.yarn/$$virtual/@yarnpkg-plugin-npm-virtual-e1403461d9/1/packages/plugin-npm/sources/npmHttpUtils.ts(40)`,`.yarn/__virtual__/@yarnpkg-plugin-npm-virtual-e1403461d9/1/packages/plugin-npm/sources/npmHttpUtils.ts`,`.yarn/__virtual__/@yarnpkg-plugin-npm-virtual-e1403461d9/1/packages/plugin-npm/sources/npmHttpUtils.ts:10`,`.yarn/__virtual__/@yarnpkg-plugin-npm-virtual-e1403461d9/1/packages/plugin-npm/sources/npmHttpUtils.ts:10:10`,`.yarn/__virtual__/@yarnpkg-plugin-npm-virtual-e1403461d9/1/packages/plugin-npm/sources/npmHttpUtils.ts(10,10)`,`.yarn/__virtual__/@yarnpkg-plugin-npm-virtual-e1403461d9/1/packages/plugin-npm/sources/npmHttpUtils.ts(40)`,`.yarn/cache/@algolia-cache-browser-local-storage-npm-4.2.0-ce650cb25f-654f9bc1af.zip/node_modules/@algolia/cache-browser-local-storage/package.json:10:10`,]
Const mode
mode: string = process.env.NODE_ENV || `production`
Const path
path: PlatformPath = require(`path`)
ZipFS
This extension adds support into VSCode to read files directly from zip archives. It's maintained as part of the Yarn toolchain. Using this extension together with the Yarn SDK will allow you to seamlessly open & edit files from your cache.
New protocol:
zip:
Paths starting with the
zip:
protocol (e.g.zip:/foo/bar.zip/index.js
) will be resolved, the zip archive being extracted and opened as if it was a folder.