forked from microsoft/vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into clantz/dev-container
- Loading branch information
Showing
136 changed files
with
6,303 additions
and
1,740 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
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
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
34 changes: 34 additions & 0 deletions
34
extensions/css-language-features/server/extension-browser.webpack.config.js
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
//@ts-check | ||
|
||
'use strict'; | ||
|
||
const withDefaults = require('../../shared.webpack.config'); | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
|
||
const vscodeNlsReplacement = new webpack.NormalModuleReplacementPlugin( | ||
/vscode\-nls[\\/]lib[\\/]main\.js/, | ||
path.join(__dirname, '../client/out/browser/vscodeNlsShim.js') | ||
); | ||
|
||
const serverConfig = withDefaults({ | ||
target: 'webworker', | ||
context: __dirname, | ||
entry: { | ||
extension: './src/browser/cssServerMain.ts', | ||
}, | ||
output: { | ||
filename: 'cssServerMain.js', | ||
path: path.join(__dirname, 'dist', 'browser'), | ||
libraryTarget: 'var' | ||
} | ||
}); | ||
serverConfig.plugins[1] = vscodeNlsReplacement; // replace nls bundler | ||
serverConfig.module.rules[0].use.shift(); // remove nls loader | ||
|
||
module.exports = serverConfig; |
49 changes: 49 additions & 0 deletions
49
extensions/github-authentication/extension-browser.webpack.config.js
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
//@ts-check | ||
|
||
'use strict'; | ||
|
||
const path = require('path'); | ||
const withDefaults = require('../shared.webpack.config'); | ||
|
||
module.exports = withDefaults({ | ||
context: __dirname, | ||
target: 'webworker', | ||
node: false, | ||
entry: { | ||
extension: './src/extension.ts', | ||
}, | ||
externals: { | ||
'keytar': 'commonjs keytar', | ||
}, | ||
// TODO@eamodio Deal with nls properly for the browser | ||
// Specify module here, so we can stop the vscode-nls-dev loader from overwriting nls calls | ||
module: { | ||
rules: [{ | ||
test: /\.ts$/, | ||
exclude: /node_modules/, | ||
use: [{ | ||
// configure TypeScript loader: | ||
// * enable sources maps for end-to-end source maps | ||
loader: 'ts-loader', | ||
options: { | ||
compilerOptions: { | ||
'sourceMap': true, | ||
} | ||
} | ||
}] | ||
}] | ||
}, | ||
resolve: { | ||
alias: { | ||
'node-fetch': path.resolve(__dirname, 'node_modules/node-fetch/browser.js'), | ||
'vscode-extension-telemetry': path.resolve(__dirname, 'polyfills/vscode-extension-telemetry.js'), | ||
'vscode-nls': path.resolve(__dirname, 'polyfills/vscode-nls.js'), | ||
'uuid': path.resolve(__dirname, 'node_modules/uuid/dist/esm-browser/index.js') | ||
}, | ||
} | ||
}); |
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
26 changes: 26 additions & 0 deletions
26
extensions/github-authentication/polyfills/vscode-extension-telemetry.js
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
|
||
let TelemetryReporter = (function () { | ||
function TelemetryReporter(extensionId, extensionVersion, key) { | ||
} | ||
TelemetryReporter.prototype.updateUserOptIn = function (key) { | ||
}; | ||
TelemetryReporter.prototype.createAppInsightsClient = function (key) { | ||
}; | ||
TelemetryReporter.prototype.getCommonProperties = function () { | ||
}; | ||
TelemetryReporter.prototype.sendTelemetryEvent = function (eventName, properties, measurements) { | ||
}; | ||
TelemetryReporter.prototype.dispose = function () { | ||
}; | ||
TelemetryReporter.TELEMETRY_CONFIG_ID = 'telemetry'; | ||
TelemetryReporter.TELEMETRY_CONFIG_ENABLED_ID = 'enableTelemetry'; | ||
return TelemetryReporter; | ||
}()); | ||
exports.default = TelemetryReporter; |
Oops, something went wrong.