-
-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add support for Coder.com (#714) Checks for extension `coder.coder` to tell if the IDE is Coder + VS Code or just a regular VS Code installation. * add webpack bundling for faster startup * use tsc to compile tests * make tests run * v3.2.3 release * v3.2.4 * Always use VSCODE_PORTABLE env when portable Mac will no longer use Application Support while in portable mode * Token error on HTTP 401 - Display token error on 401, as the current method was displaying generic error for me. Also opens GitHub tokens page on error > Doesn’t listen for 403 errors as this shouldn’t ever happen with current setup, but we could add later - Use error.status instead of error.code to avoid depreciation logging * Fix loading language bundles and add missing dependencies (#736) * add webpack bundling for faster startup * use tsc to compile tests * make tests run * rebase on v3.2.3 * fix loading language bundles
- Loading branch information
1 parent
3646117
commit b6c9f4c
Showing
8 changed files
with
99 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
//@ts-check | ||
/** @typedef {import('webpack').Configuration} WebpackOptions **/ | ||
|
||
"use strict"; | ||
|
||
const path = require("path"); | ||
const CleanWebpackPlugin = require("clean-webpack-plugin"); | ||
|
||
/** @type WebpackOptions */ | ||
const config = { | ||
mode: "none", | ||
target: "node", | ||
entry: "./src/extension.ts", | ||
output: { | ||
filename: "extension.js", | ||
path: path.resolve(__dirname, "out"), | ||
libraryTarget: "commonjs2", | ||
devtoolModuleFilenameTemplate: "file:///[absolute-resource-path]" | ||
}, | ||
resolve: { | ||
extensions: [".ts", ".js"], | ||
alias: { | ||
deepmerge$: path.resolve(__dirname, "node_modules/deepmerge/dist/umd.js") | ||
} | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.ts$/, | ||
exclude: /node_modules/, | ||
loader: "ts-loader" | ||
} | ||
] | ||
}, | ||
externals: { | ||
vscode: "commonjs vscode", | ||
fsevents: "commonjs fsevents", | ||
"original-fs": "commonjs original-fs" | ||
}, | ||
devtool: "source-map", | ||
plugins: [new CleanWebpackPlugin(["out"])] | ||
}; | ||
|
||
module.exports = config; |