Update packages & vscode engine
Remove (old) tests Update some methods to new version
This commit is contained in:
parent
fbf02a0119
commit
f398c17c60
2882
package-lock.json
generated
2882
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
20
package.json
20
package.json
@ -5,7 +5,7 @@
|
|||||||
"publisher": "IJustDev",
|
"publisher": "IJustDev",
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.32.0"
|
"vscode": "^1.70.0"
|
||||||
},
|
},
|
||||||
"categories": [
|
"categories": [
|
||||||
"Other"
|
"Other"
|
||||||
@ -107,19 +107,19 @@
|
|||||||
"vscode:prepublish": "npm run compile",
|
"vscode:prepublish": "npm run compile",
|
||||||
"compile": "tsc -p ./",
|
"compile": "tsc -p ./",
|
||||||
"watch": "tsc -watch -p ./",
|
"watch": "tsc -watch -p ./",
|
||||||
"postinstall": "node ./node_modules/vscode/bin/install",
|
"pretest": "npm run compile && npm run lint",
|
||||||
"test": "npm run compile && node ./node_modules/vscode/bin/test"
|
"lint": "eslint src --ext ts",
|
||||||
|
"test": "node ./out/test/runTest.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/axios": "^0.14.0",
|
"@types/vscode": "^1.70.0",
|
||||||
"@types/mocha": "^2.2.42",
|
"@types/mocha": "^9.1.1",
|
||||||
"@types/node": "^10.12.21",
|
"@types/node": "16.x",
|
||||||
"tslint": "^5.12.1",
|
"eslint": "^8.20.0",
|
||||||
"typescript": "^3.3.1",
|
"typescript": "^4.7.4"
|
||||||
"vscode": "^1.1.28"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.18.1"
|
"axios": "^0.27.2"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "github",
|
"type": "github",
|
||||||
|
@ -20,11 +20,9 @@ export class Issue extends TreeItem {
|
|||||||
public command?: Command
|
public command?: Command
|
||||||
) {
|
) {
|
||||||
super(label, collapsibleState);
|
super(label, collapsibleState);
|
||||||
|
this.tooltip = this.label + ' - ' + this.assignee;
|
||||||
}
|
}
|
||||||
|
|
||||||
get tooltip() {
|
|
||||||
return this.label + ' - ' + this.assignee;
|
|
||||||
}
|
|
||||||
|
|
||||||
labelDependentIcon(dark: boolean = false): Uri {
|
labelDependentIcon(dark: boolean = false): Uri {
|
||||||
if (this.labels.length === 0) {
|
if (this.labels.length === 0) {
|
||||||
|
@ -5,9 +5,9 @@ import { Config } from './config';
|
|||||||
import { GiteaConnector } from './giteaConnector';
|
import { GiteaConnector } from './giteaConnector';
|
||||||
|
|
||||||
export class IssueProvider implements vscode.TreeDataProvider<Issue> {
|
export class IssueProvider implements vscode.TreeDataProvider<Issue> {
|
||||||
private _onDidChangeTreeData: vscode.EventEmitter<Issue | undefined> = new vscode.EventEmitter<Issue | undefined>();
|
private _onDidChangeTreeData: vscode.EventEmitter<Issue | undefined | null | void> = new vscode.EventEmitter<Issue | undefined | null | void>();
|
||||||
|
|
||||||
readonly onDidChangeTreeData: vscode.Event<Issue | undefined> = this._onDidChangeTreeData.event;
|
readonly onDidChangeTreeData: vscode.Event<Issue | undefined | null | void> = this._onDidChangeTreeData.event;
|
||||||
|
|
||||||
private state: string;
|
private state: string;
|
||||||
private issueList: Issue[] = [];
|
private issueList: Issue[] = [];
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
//
|
|
||||||
// Note: This example test is leveraging the Mocha test framework.
|
|
||||||
// Please refer to their documentation on https://mochajs.org/ for help.
|
|
||||||
//
|
|
||||||
|
|
||||||
// The module 'assert' provides assertion methods from node
|
|
||||||
//import * as assert from 'assert';
|
|
||||||
|
|
||||||
// You can import and use all API from the 'vscode' module
|
|
||||||
// as well as import your extension to test it
|
|
||||||
// import * as vscode from 'vscode';
|
|
||||||
// import * as myExtension from '../extension';
|
|
||||||
|
|
||||||
// Defines a Mocha test suite to group tests of similar kind together
|
|
||||||
suite("Extension Tests", function () {
|
|
||||||
|
|
||||||
});
|
|
@ -1,23 +0,0 @@
|
|||||||
//
|
|
||||||
// PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING
|
|
||||||
//
|
|
||||||
// This file is providing the test runner to use when running extension tests.
|
|
||||||
// By default the test runner in use is Mocha based.
|
|
||||||
//
|
|
||||||
// You can provide your own test runner if you want to override it by exporting
|
|
||||||
// a function run(testsRoot: string, clb: (error: Error, failures?: number) => void): void
|
|
||||||
// that the extension host can call to run the tests. The test runner is expected to use console.log
|
|
||||||
// to report the results back to the caller. When the tests are finished, return
|
|
||||||
// a possible error to the callback or null if none.
|
|
||||||
|
|
||||||
import * as testRunner from 'vscode/lib/testrunner';
|
|
||||||
|
|
||||||
// You can directly control Mocha options by configuring the test runner below
|
|
||||||
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options
|
|
||||||
// for more info
|
|
||||||
testRunner.configure({
|
|
||||||
ui: 'tdd', // the TDD UI is being used in extension.test.ts (suite, test, etc.)
|
|
||||||
useColors: true // colored output from test results
|
|
||||||
});
|
|
||||||
|
|
||||||
module.exports = testRunner;
|
|
Loading…
Reference in New Issue
Block a user