Skip to content

Commit

Permalink
fix(package): installation
Browse files Browse the repository at this point in the history
  • Loading branch information
tomandco-rafalwolak committed Aug 16, 2019
1 parent 4302453 commit bf0a394
Show file tree
Hide file tree
Showing 15 changed files with 151 additions and 197 deletions.
6 changes: 6 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@
out/test/**
test/**
src/**
node_modules/**/test/**
node_modules
**/*.map
*.log
*.lock
*.vsix
.gitignore
tsconfig.json
tslint.json
vsc-extension-quickstart.md
*.yml
gulpfile.js
webpack.config.js
91 changes: 0 additions & 91 deletions gulpfile.js

This file was deleted.

89 changes: 39 additions & 50 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,28 @@
"manager",
"switch"
],
"main": "./out/extension.js",
"main": "./out/extension",
"scripts": {
"vscode:prepublish": "yarn run compile",
"publish": "gulp publish",
"package": "gulp package",
"clean": "gulp clean",
"compile": "tsc -b",
"watch": "tsc -b -w",
"vscode:prepublish": "yarn run clean && yarn run compile",
"publish": "npx vsce publish --yarn",
"package": "npx vsce package --yarn",
"clean": "rimraf out/** && rimraf package.nls.*.json && rimraf workspace-manager-*.vsix",
"compile": "webpack --mode production",
"watch": "webpack --mode none --watch",
"commit": "commit",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "yarn run compile",
"test:compile": "yarn run compile",
"release": "./node_modules/.bin/semantic-release"
"test": "yarn run test:compile && node node_modules/vscode/bin/test",
"test:compile": "tsc -p ./ && yarn run compile",
"release": "npx semantic-release"
},
"dependencies": {
"applicationinsights": "^1.4.0",
"fast-glob": "^3.0.4",
"lodash": "^4.17.15",
"mkdirp": "^0.5.1",
"path-dirname": "^1.0.2",
"semver": "^6.3.0",
"to-regex": "^3.0.2",
"uuid": "^3.3.2",
"verror": "^1.10.0",
"vscode-nls": "^4.1.1"
"applicationinsights": "1.4.1",
"fast-glob": "3.0.4",
"lodash": "4.17.15",
"mkdirp": "0.5.1",
"uuid": "3.3.2",
"verror": "1.10.0",
"vscode-nls": "4.1.1"
},
"devDependencies": {
"@commitlint/cli": "^8.1.0",
Expand All @@ -63,25 +60,17 @@
"@types/node": "12.6.2",
"@types/uuid": "^3.4.5",
"@types/verror": "^1.10.3",
"decache": "^4.5.1",
"del": "^5.0.0",
"event-stream": "^4.0.1",
"gulp": "^4.0.2",
"gulp-filter": "^6.0.0",
"gulp-sourcemaps": "^2.6.5",
"gulp-typescript": "^5.0.1",
"husky": "^2.4.1",
"minimist": "^1.2.0",
"prettier": "^1.18.2",
"rimraf": "^2.6.3",
"semantic-release": "^15.13.16",
"semantic-release-vsce": "^2.2.8",
"tslint": "^5.12.1",
"tslint-plugin-prettier": "^2.0.1",
"ts-loader": "^6.0.4",
"typescript": "^3.3.1",
"vsce": "^1.66.0",
"vscode": "^1.1.35",
"vscode-nls-dev": "^3.3.1"
"vscode": "^1.1.36",
"vscode-nls-dev": "^3.3.1",
"webpack": "^4.39.2",
"webpack-cli": "^3.3.6"
},
"husky": {
"hooks": {
Expand All @@ -94,97 +83,97 @@
"contributes": {
"configuration": {
"type": "object",
"title": "%configuration.title%",
"title": "Workspace Manager",
"properties": {
"workspace-manager.includeGlobPattern": {
"type": "array",
"default": [
"~/**/*"
],
"description": "%configuration.includeGlobPattern%"
"description": "Paths of directories when `.code-workspace` files can be saved and then read from"
},
"workspace-manager.excludeGlobPattern": {
"type": "array",
"default": [],
"description": "%configuration.excludeGlobPattern%"
"description": "A glob pattern that defines files and folders to exclude"
},
"workspace-manager.codeExecutable": {
"type": "string",
"default": "code",
"description": "%configuration.codeExecutable%"
"description": "Path to the executable file for VS Code"
},
"workspace-manager.codeInsidersExecutable": {
"type": "string",
"default": "code-insiders",
"description": "%configuration.codeInsidersExecutable%"
"description": "Path to the executable file for VS Code Insiders"
},
"workspace-manager.showInActivityBar": {
"type": "boolean",
"default": true,
"description": "%configuration.showInActivityBar%"
"description": "Whether or not to show the activity bar tree view container"
},
"workspace-manager.showInExplorer": {
"type": "boolean",
"default": true,
"description": "%configuration.showInExplorer%"
"description": "Whether or not to show the list of workspaces in the explorer tree view container"
}
}
},
"commands": [
{
"command": "workspaceManager.saveWorkspace",
"title": "%command.saveWorkspace.title%",
"title": "Workspace Manager: Save Workspace",
"icon": {
"light": "resources/light/save.svg",
"dark": "resources/dark/save.svg"
}
},
{
"command": "workspaceManager.switchWorkspace",
"title": "%command.switchWorkspace.title%"
"title": "Workspace Manager: Switch Workspace"
},
{
"command": "workspaceManager.switchWorkspaceInNewWindow",
"title": "%command.switchWorkspaceInNewWindow.title%",
"title": "Workspace Manager: Switch Workspace in New Window",
"icon": {
"light": "resources/light/new-window.svg",
"dark": "resources/dark/new-window.svg"
}
},
{
"command": "workspaceManager.deleteWorkspace",
"title": "%command.deleteWorkspace.title%",
"title": "Workspace Manager: Delete Workspace",
"icon": {
"light": "resources/light/delete.svg",
"dark": "resources/dark/delete.svg"
}
},
{
"command": "workspaceManager.refreshTreeData",
"title": "%command.refreshTreeData.title%",
"title": "Workspace Manager: Reload Workspaces",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "workspaceManager.closeWorkspace",
"title": "%command.closeWorkspace.title%",
"title": "Workspace Manager: Close Workspace",
"icon": {
"light": "resources/light/close.svg",
"dark": "resources/dark/close.svg"
}
},
{
"command": "workspaceManager.cacheWorkspace",
"title": "%command.cacheWorkspace.title%"
"title": "Workspace Manager: Cache Workspace"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "workspaceManager",
"title": "%viewsContainers.activitybar.title%",
"title": "Workspace Manager",
"icon": "media/workspace.svg",
"when": "workspace-manager:enabled && !workspace-manager:empty"
}
Expand All @@ -194,14 +183,14 @@
"workspaceManager": [
{
"id": "workspaceManager.views.workspaceManager",
"name": "%views.workspaceManager.title%",
"name": "Workspaces",
"when": "workspace-manager:enabled && workspace-manager:viewInActivityBarShow && !workspace-manager:empty"
}
],
"explorer": [
{
"id": "workspaceManager.views.explorer",
"name": "%views.explorer.title%",
"name": "Workspaces",
"when": "workspace-manager:enabled && workspace-manager:viewInExplorerShow && !workspace-manager:empty"
}
]
Expand Down
19 changes: 0 additions & 19 deletions package.nls.pl.json

This file was deleted.

6 changes: 3 additions & 3 deletions src/commands/common/refreshTreeData.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use strict';

import { Command, Commands } from '../common';
import { AbstractCommand } from '../abstractCommand';
import { commands } from 'vscode';
import { cacheWorkspace } from '../../cache/cacheWorkspace';
import { ViewsCommands } from '../../views/common';
import { commands } from 'vscode';
import { AbstractCommand } from '../abstractCommand';
import { Command, Commands } from '../common';

@Command()
export class RefreshTreeData extends AbstractCommand {
Expand Down
14 changes: 7 additions & 7 deletions src/commands/workspace/deleteWorkspace.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
'use strict';

import * as nls from 'vscode-nls';
// import * as nls from 'vscode-nls';
import { getWorkspaceEntries } from '../../util/getWorkspaceEntries';
import { window, QuickPickItem, QuickPickOptions } from 'vscode';
import { deleteWorkspace } from '../../util/deleteWorkspace';
import { Command, Commands } from '../common';
import { AbstractCommand } from '../abstractCommand';
import { WorkspaceEntry } from '../../model/workspace';

const localize = nls.loadMessageBundle();
// const localize = nls.loadMessageBundle();

@Command()
export class DeleteWorkspaceCommand extends AbstractCommand {
Expand All @@ -20,12 +20,12 @@ export class DeleteWorkspaceCommand extends AbstractCommand {
let workspaceEntries = await getWorkspaceEntries();

if (!workspaceEntries || !workspaceEntries.length) {
const noWorkspacesFoundText = localize(
'noWorkspacesFound.text',
'No workspaces entries found'
);
// const noWorkspacesFoundText = localize(
// 'noWorkspacesFound.text',
// 'No workspaces entries found'
// );

window.showInformationMessage(noWorkspacesFoundText);
window.showInformationMessage('No workspaces entries found');

return;
}
Expand Down
Loading

0 comments on commit bf0a394

Please sign in to comment.