Skip to content

Commit

Permalink
Using Webpack for extension bundling (#105)
Browse files Browse the repository at this point in the history
* Added Webview view type support

* Further correction in view detection

* Added cleartool executable configuration date
* vscode-clearcase.cleartoolExecutable

* Added configuration for WebView
- boolean: useWebview
- string: username
- string: server address

* Use Login command

* Fixed cleartool executable constructor

* Minor fixes in login

* More debug information

* Changes in extension initialization

* Added return Promise in init method

* try - catch on init

* Next release version

* merged remote cleartool feature

* Revert "merged remote cleartool feature"

This reverts commit 989537e.

* Added context menu items

(cherry picked from commit 06e6ecc)

* Fixed codefactor issues

* Bumped to version 4.0.0

* Bumped to version 4.0.1

* Bumped to version 4.0.1

* Added Webpack for faster startup

* Bump to version 4.1.0

Co-authored-by: Frank <[email protected]>
  • Loading branch information
fr43nk and Frank authored Jul 29, 2022
1 parent 044a227 commit 784d7da
Show file tree
Hide file tree
Showing 7 changed files with 2,180 additions and 294 deletions.
38 changes: 38 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.241.1/containers/typescript-node
{
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"args": {
"VARIANT": "16-bullseye"
}
},

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint"
]
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sudo chown -R node:node /workspaces && git config --global user.name \"Fr43nk\" && git config --global user.email \"[email protected]\" ",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node",
"features": {
"git": "latest",
"git-lfs": "latest"
}
}
29 changes: 27 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,22 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Extension (webpack)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: webpack"
},
{
"name": "Run Extension",
"type": "legacy-extensionHost",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
Expand All @@ -19,7 +32,7 @@
},
{
"name": "Extension Tests",
"type": "legacy-extensionHost",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
Expand All @@ -29,6 +42,18 @@
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
},
{
"name": "Extension Tests (webpack)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
"preLaunchTask": "npm: test-compile"
}
]
}
6 changes: 6 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ vsc-extension-quickstart.md
**/.eslintrc.json
**/*.map
**/*.ts
.vscode
node_modules
out/
src/
tsconfig.json
webpack.config.js
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Release Notes

### 4.1.0
* Usage of Webpack for packaging, which results in faster startup time.

### 4.0.1
* fixed syntax highlighting in configspec file (thanks to @jsinger67)
* fixed typo in package.json
Expand Down
Loading

0 comments on commit 784d7da

Please sign in to comment.