Skip to content

Commit

Permalink
Merge branch 'feature/v1'
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyutkarsh committed Oct 21, 2019
2 parents 0e086b8 + e96b53c commit a355037
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 16 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

All notable changes to the "VSIX Viewer" extension will be documented in this file.

## [0.0.1]
## [#{Release.ReleaseName}#]

- Initial release
- Initial release
- Minor changes to telemetry
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# VSIX Viewer

A simple extension to view files within a VSIX files inside Visual Studio Code.
A simple viewer for VSIX files, which lets you see the contents of VSIX files within Visual Studio Code.


![viewer](marketplace/demo.gif)

Expand All @@ -23,4 +24,8 @@ See Change Log [here](CHANGELOG.md)

## Issues

If you find any bug or have any suggestion/feature request, please submit the issues to the GitHub repo.
If you find any bug or have any suggestion/feature request, please submit the issues to the GitHub repo.

## Credits

Some icons comes from the brilliant [vscode-icons](https://github.com/robertohuertasm/vscode-icons) extension for Visual Studio Code.
11 changes: 10 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"keywords": [
"vsix",
"viewer",
"explorer"
"explorer",
"extension"
],
"license": "MIT",
"activationEvents": [
Expand Down Expand Up @@ -93,6 +94,7 @@
"mocha": "^6.1.4",
"ts-loader": "~6.2.0",
"tslint": "^5.20.0",
"tslint-webpack-plugin": "~2.1.0",
"typescript": "^3.6.3",
"vsce": "~1.68.0",
"webpack": "~4.41.2",
Expand Down
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as vscode from 'vscode';
import { VsixOutlineProvider } from './vsixOutlineProvider';
import * as vscode from "vscode";
import { VsixOutlineProvider } from "./vsixOutlineProvider";
import Util from "./util";
import TelemetryClient from './telemetryClient';
import TelemetryClient from "./telemetryClient";

export function activate(context: vscode.ExtensionContext) {

Expand Down
2 changes: 0 additions & 2 deletions src/telemetryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export default class TelemetryClient {
}
if (this._enabled && this._reporter) {
let properties: { [key: string]: string } = {};
properties["os"] = process.env.os || "??";
error.stack = this.anonymizePaths(error.stack);
this._reporter.sendTelemetryException(error, properties);
this._lastStackTrackTrace = error.stack;
Expand All @@ -64,7 +63,6 @@ export default class TelemetryClient {

dispose() {
let properties: { [key: string]: string } = {};
properties["os"] = process.env.os || "??";
properties["totalExtensionActiveTime"] = ((Date.now() - startTime) / 1000).toString();
TelemetryClient.instance.sendEvent("extensionEnded", properties);

Expand Down
16 changes: 11 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,34 @@
'use strict';

const path = require('path');
const TSLintPlugin = require('tslint-webpack-plugin');

/**@type {import('webpack').Configuration}*/
const config = {
target: 'node', // vscode extensions run in a Node.js-context πŸ“– -> https://webpack.js.org/configuration/node/
target: 'node',

entry: './src/extension.ts', // the entry point of this extension, πŸ“– -> https://webpack.js.org/configuration/entry-context/
entry: './src/extension.ts',
output: {
// the bundle is stored in the 'dist' folder (check package.json), πŸ“– -> https://webpack.js.org/configuration/output/
path: path.resolve(__dirname, 'dist'),
filename: 'extension.js',
libraryTarget: 'commonjs2',
devtoolModuleFilenameTemplate: '../[resource-path]'
},
devtool: 'source-map',
externals: {
vscode: 'commonjs vscode', // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, πŸ“– -> https://webpack.js.org/configuration/externals/
vscode: 'commonjs vscode',
'applicationinsights-native-metrics': 'applicationinsights-native-metrics'
},
resolve: {
// support reading TypeScript and JavaScript files, πŸ“– -> https://github.com/TypeStrong/ts-loader
extensions: ['.ts', '.js']
},
plugins: [
new TSLintPlugin({
files: ['./src/**/*.ts'],
config: './tslint.json',
waitForLinting: true
})
],
module: {
rules: [
{
Expand Down

0 comments on commit a355037

Please sign in to comment.