Skip to content

Commit d9eaf24

Browse files
committed
Removed copy framing functionality.
1 parent 9068aed commit d9eaf24

28 files changed

+20
-1334
lines changed

CHANGELOG.md

+15-8
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog][Keep a Changelog], and this project adheres to [Semantic Versioning][Semantic Versioning].
66

7-
## [0.0.17] - 2021-07-10
8-
9-
### Changed
10-
11-
- Updated gradle to 7.1.1.
12-
- Updated dependency `org.apiguardian:apiguardian-api` to v1.1.2.
13-
147
## [Unreleased]
158

169
### Added
@@ -25,6 +18,19 @@ The format is based on [Keep a Changelog][Keep a Changelog], and this project ad
2518

2619
### Security
2720

21+
## [0.0.18] - 2021-08-18
22+
23+
### Removed
24+
25+
- Removed copy framing functionality.
26+
27+
## [0.0.17] - 2021-07-10
28+
29+
### Changed
30+
31+
- Updated gradle to 7.1.1.
32+
- Updated dependency `org.apiguardian:apiguardian-api` to v1.1.2.
33+
2834
## [0.0.16] - 2021-06-26
2935

3036
### Changed
@@ -164,7 +170,8 @@ The format is based on [Keep a Changelog][Keep a Changelog], and this project ad
164170
[Semantic Versioning]: https://semver.org/
165171

166172
<!-- Versions -->
167-
[Unreleased]: https://github.com/computer-science-engineering/vscode-cse-framework/compare/v0.0.17..HEAD
173+
[Unreleased]: https://github.com/computer-science-engineering/vscode-cse-framework/compare/v0.0.18..HEAD
174+
[0.0.17]: https://github.com/computer-science-engineering/vscode-cse-framework/compare/v0.0.17..v0.0.18
168175
[0.0.17]: https://github.com/computer-science-engineering/vscode-cse-framework/compare/v0.0.16..v0.0.17
169176
[0.0.16]: https://github.com/computer-science-engineering/vscode-cse-framework/compare/v0.0.15..v0.0.16
170177
[0.0.15]: https://github.com/computer-science-engineering/vscode-cse-framework/compare/v0.0.14..v0.0.15

build/node-extension.webpack.config.js

+3-9
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,8 @@ const config = {
3939
}
4040
]
4141
},
42-
plugins: [
43-
new CleanWebpackPlugin(),
44-
// @ts-ignore
45-
new CopyPlugin({
46-
patterns: [
47-
{ from: "./static-to-copy/", to: "static-to-copy" }
48-
],
49-
}),
42+
plugins: [
43+
new CleanWebpackPlugin()
5044
],
5145
};
52-
module.exports = config;
46+
module.exports = config;

package.json

+2-10
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-cse-framework",
33
"displayName": "cse-framework",
44
"description": "VSCode extension for cse repositories - provides templates, snippets, etc.",
5-
"version": "0.0.17",
5+
"version": "0.0.18",
66
"publisher": "manas-talukdar",
77
"license": "MIT",
88
"repository": {
@@ -19,17 +19,9 @@
1919
"Other",
2020
"Snippets"
2121
],
22-
"activationEvents": [
23-
"onCommand:vscode-cse-framework.copyFramingOverwrite"
24-
],
22+
"activationEvents": [],
2523
"main": "./dist/extension.js",
2624
"contributes": {
27-
"commands": [
28-
{
29-
"command": "vscode-cse-framework.copyFramingOverwrite",
30-
"title": "CSE Framework: Copy Framing - Overwrite"
31-
}
32-
],
3325
"snippets": [
3426
{
3527
"language": "java",

src/extension.ts

-24
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// The module 'vscode' contains the VS Code extensibility API
22
// Import the module and reference it with the alias vscode in your code below
33
import * as vscode from 'vscode';
4-
import * as fse from 'fs-extra'
54

65
// this method is called when your extension is activated
76
// your extension is activated the very first time the command is executed
@@ -10,29 +9,6 @@ export function activate(context: vscode.ExtensionContext) {
109
// Use the console to output diagnostic information (console.log) and errors (console.error)
1110
// This line of code will only be executed once when your extension is activated
1211
console.log('Congratulations, your extension "vscode-cse-framework" is now active!');
13-
14-
// The command has been defined in the package.json file
15-
// Now provide the implementation of the command with registerCommand
16-
// The commandId parameter must match the command field in package.json
17-
let disposable = vscode.commands.registerCommand('vscode-cse-framework.copyFramingOverwrite', () => {
18-
const workspaceFolders = vscode.workspace.workspaceFolders;
19-
if (workspaceFolders != null && workspaceFolders.length > 0) {
20-
const wsPath = workspaceFolders[0].uri.fsPath; // gets the path of the first workspace folder
21-
let sourceDir = __dirname + "/static-to-copy/"
22-
let destDir = wsPath
23-
try {
24-
fse.copySync(sourceDir, destDir, { overwrite: true, recursive: true })
25-
console.log('success!')
26-
} catch (err) {
27-
console.error(err)
28-
}
29-
}
30-
31-
// Display a message box to the user
32-
vscode.window.showInformationMessage('Copied Framing!');
33-
});
34-
35-
context.subscriptions.push(disposable);
3612
}
3713

3814
// this method is called when your extension is deactivated

static-to-copy/.github/CONTRIBUTING.md

-5
This file was deleted.

static-to-copy/.github/ISSUE_TEMPLATE/custom.md

-22
This file was deleted.

static-to-copy/.github/pull_request_template.md

-5
This file was deleted.

static-to-copy/.github/workflows/codeql-analysis.yml

-78
This file was deleted.

static-to-copy/.github/workflows/linter.yml

-52
This file was deleted.

static-to-copy/.github/workflows/main.yml

-62
This file was deleted.

0 commit comments

Comments
 (0)