Merge pull request #43 from MaxenceG2M/feature/update_package

Update packages & vscode engine - fix #40
This commit is contained in:
Alexander Panov 2022-08-25 08:50:44 +02:00 committed by GitHub
commit 4ddea5b9ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 2446 additions and 1058 deletions

3436
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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) {

View File

@ -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[] = [];

View File

@ -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 () {
});

View File

@ -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;