forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update prettier to latest version (#10838)
* Update prettier * News entry * Revert changes
- Loading branch information
1 parent
c10a89d
commit 61b179b
Showing
751 changed files
with
43,037 additions
and
43,023 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,61 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
'use strict'; | ||
|
||
const glob = require('glob'); | ||
const path = require('path'); | ||
const webpack_bundle_analyzer = require('webpack-bundle-analyzer'); | ||
const constants = require('../constants'); | ||
exports.nodeModulesToExternalize = [ | ||
'unicode/category/Lu', | ||
'unicode/category/Ll', | ||
'unicode/category/Lt', | ||
'unicode/category/Lo', | ||
'unicode/category/Lm', | ||
'unicode/category/Nl', | ||
'unicode/category/Mn', | ||
'unicode/category/Mc', | ||
'unicode/category/Nd', | ||
'unicode/category/Pc', | ||
'@jupyterlab/services', | ||
'azure-storage', | ||
'request', | ||
'request-progress', | ||
'source-map-support', | ||
'diff-match-patch', | ||
'sudo-prompt', | ||
'node-stream-zip', | ||
'xml2js', | ||
'vsls/vscode', | ||
'pdfkit', | ||
'crypto-js', | ||
'fontkit', | ||
'linebreak', | ||
'png-js', | ||
'@koa/cors', | ||
'koa', | ||
'koa-compress', | ||
'koa-logger', | ||
'zeromq' | ||
]; | ||
exports.nodeModulesToReplacePaths = [...exports.nodeModulesToExternalize]; | ||
function getDefaultPlugins(name) { | ||
const plugins = []; | ||
plugins.push( | ||
new webpack_bundle_analyzer.BundleAnalyzerPlugin({ | ||
analyzerMode: 'static', | ||
reportFilename: `${name}.analyzer.html`, | ||
generateStatsFile: true, | ||
statsFilename: `${name}.stats.json`, | ||
openAnalyzer: false // Open file manually if you want to see it :) | ||
}) | ||
); | ||
return plugins; | ||
} | ||
exports.getDefaultPlugins = getDefaultPlugins; | ||
function getListOfExistingModulesInOutDir() { | ||
const outDir = path.join(constants.ExtensionRootDir, 'out', 'client'); | ||
const files = glob.sync('**/*.js', { sync: true, cwd: outDir }); | ||
return files.map(filePath => `./${filePath.slice(0, -3)}`); | ||
} | ||
exports.getListOfExistingModulesInOutDir = getListOfExistingModulesInOutDir; | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
'use strict'; | ||
|
||
const glob = require('glob'); | ||
const path = require('path'); | ||
const webpack_bundle_analyzer = require('webpack-bundle-analyzer'); | ||
const constants = require('../constants'); | ||
exports.nodeModulesToExternalize = [ | ||
'unicode/category/Lu', | ||
'unicode/category/Ll', | ||
'unicode/category/Lt', | ||
'unicode/category/Lo', | ||
'unicode/category/Lm', | ||
'unicode/category/Nl', | ||
'unicode/category/Mn', | ||
'unicode/category/Mc', | ||
'unicode/category/Nd', | ||
'unicode/category/Pc', | ||
'@jupyterlab/services', | ||
'azure-storage', | ||
'request', | ||
'request-progress', | ||
'source-map-support', | ||
'diff-match-patch', | ||
'sudo-prompt', | ||
'node-stream-zip', | ||
'xml2js', | ||
'vsls/vscode', | ||
'pdfkit', | ||
'crypto-js', | ||
'fontkit', | ||
'linebreak', | ||
'png-js', | ||
'@koa/cors', | ||
'koa', | ||
'koa-compress', | ||
'koa-logger', | ||
'zeromq' | ||
]; | ||
exports.nodeModulesToReplacePaths = [...exports.nodeModulesToExternalize]; | ||
function getDefaultPlugins(name) { | ||
const plugins = []; | ||
plugins.push( | ||
new webpack_bundle_analyzer.BundleAnalyzerPlugin({ | ||
analyzerMode: 'static', | ||
reportFilename: `${name}.analyzer.html`, | ||
generateStatsFile: true, | ||
statsFilename: `${name}.stats.json`, | ||
openAnalyzer: false // Open file manually if you want to see it :) | ||
}) | ||
); | ||
return plugins; | ||
} | ||
exports.getDefaultPlugins = getDefaultPlugins; | ||
function getListOfExistingModulesInOutDir() { | ||
const outDir = path.join(constants.ExtensionRootDir, 'out', 'client'); | ||
const files = glob.sync('**/*.js', { sync: true, cwd: outDir }); | ||
return files.map((filePath) => `./${filePath.slice(0, -3)}`); | ||
} | ||
exports.getListOfExistingModulesInOutDir = getListOfExistingModulesInOutDir; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
const common = require('../common'); | ||
function replaceModule(contents, moduleName, quotes) { | ||
const stringToSearch = `${quotes}${moduleName}${quotes}`; | ||
const stringToReplaceWith = `${quotes}./node_modules/${moduleName}${quotes}`; | ||
return contents.replace(new RegExp(stringToSearch, 'gm'), stringToReplaceWith); | ||
} | ||
// tslint:disable:no-default-export no-invalid-this | ||
function default_1(source) { | ||
common.nodeModulesToReplacePaths.forEach(moduleName => { | ||
if (source.indexOf(moduleName) > 0) { | ||
source = replaceModule(source, moduleName, '"'); | ||
source = replaceModule(source, moduleName, "'"); | ||
} | ||
}); | ||
return source; | ||
} | ||
exports.default = default_1; | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
const common = require('../common'); | ||
function replaceModule(contents, moduleName, quotes) { | ||
const stringToSearch = `${quotes}${moduleName}${quotes}`; | ||
const stringToReplaceWith = `${quotes}./node_modules/${moduleName}${quotes}`; | ||
return contents.replace(new RegExp(stringToSearch, 'gm'), stringToReplaceWith); | ||
} | ||
// tslint:disable:no-default-export no-invalid-this | ||
function default_1(source) { | ||
common.nodeModulesToReplacePaths.forEach((moduleName) => { | ||
if (source.indexOf(moduleName) > 0) { | ||
source = replaceModule(source, moduleName, '"'); | ||
source = replaceModule(source, moduleName, "'"); | ||
} | ||
}); | ||
return source; | ||
} | ||
exports.default = default_1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.