diff --git a/CHANGELOG.md b/CHANGELOG.md index a72cdbe..6c621ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,20 +1,24 @@ +## [1.3.1] - July 2023 + +- Fix the "Clear all lint message" command + ## [1.3.0] - July 2023 - Moved hosting to https://we.phorge.it/ and update the brand - `arc lint` will now limit the number of concurrent subprocesses. Waiting calls will be collected to a joint invocation. - Will no longer trigger `arc lint` when switching between open editors. ## [1.2.0] - November 2020 - New feature: Hovercards for object mentions ## [1.1.0] - November 2020 - New feature: Browse in Diffusion - Some lints will show better squiggle. ## [1.0.0] - August 2020 - Initial release - Shows lint in editor diff --git a/package.json b/package.json index afb19df..b368fa4 100644 --- a/package.json +++ b/package.json @@ -1,118 +1,118 @@ { "name": "arcanist", "displayName": "Arcanist", "description": "Phorge/Arcanist support for VSCode", "publisher": "avive", - "version": "1.3.0", + "version": "1.3.1", "engines": { "vscode": "^1.80.0" }, "categories": [ "Other" ], "keywords": [ "Phorge", "Phabricator" ], "extensionKind": ["workspace"], "license": "MIT", "activationEvents": [ "workspaceContains:**/.arclint", "workspaceContains:**/.arcconfig" ], "main": "./out/extension.js", "contributes": { "menus": { "editor/title/context": [ { "command": "arc-vscode.browseFile" } ], "editor/title": [ { "command": "arc-vscode.browseFile" } ], "explorer/context": [ { "command": "arc-vscode.browseFile" } ] }, "commands": [ { "command": "arc-vscode.browseFile", "title": "Browse in Diffusion", "category": "arc", "icon": "$(account)" }, { "command": "arc-vscode.clearLint", "title": "Clear all arc-lint messages", "category": "arc" }, { "command": "arc-vscode.lintEverything", "title": "arc lint --everything", "category": "arc" } ], "configuration": { "title": "Arcanist", "properties": { "arc-vscode.lint.maxDiagnosticsLevel": { "type": "string", "default": "error", "enum": [ "error", "warning", "info", "hint" ], "description": "The maximum level a lint can appear at." } } }, "languages": [ { "id": "json", "extensions": [ ".arcconfig", ".arclint", ".arcrc", ".arcunit" ] } ] }, "homepage": "https://we.phorge.it/tag/arc-vscode/", "repository": { "type": "git", "url": "https://we.phorge.it/source/arc-vscode.git" }, "scripts": { "vscode:prepublish": "npm run compile", "compile": "tsc -p ./", "lint": "eslint src --ext ts", "watch": "tsc -watch -p ./", "pretest": "npm run compile && npm run lint", "test": "node ./out/test/runTest.js" }, "devDependencies": { "@types/glob": "^7.1.1", "@types/mocha": "^7.0.2", "@types/node": "^13.11.0", "@types/vscode": "^1.80.0", "@typescript-eslint/eslint-plugin": "^2.30.0", "@typescript-eslint/parser": "^2.30.0", "eslint": "^6.8.0", "glob": "^7.1.6", "mocha": "^7.1.2", "typescript": "^5.1.3", "@vscode/vsce": "^2.19.0", "vscode-test": "^1.3.0" }, "dependencies": { "execa": "^4.0.2" } } diff --git a/src/extension.ts b/src/extension.ts index c9831ad..facc3b8 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1,50 +1,50 @@ import * as vscode from 'vscode'; import * as lint from './arc_lint'; import * as browse from './arc_browse'; import * as hovercard from './hovercard'; export function activate(context: vscode.ExtensionContext) { const log = vscode.window.createOutputChannel("arcanist"); const diagnostics = vscode.languages.createDiagnosticCollection('arc lint'); lint.setup(log, diagnostics); browse.setup(log); function d(disposable: vscode.Disposable) { context.subscriptions.push(disposable); } d(diagnostics); d(log); d(hovercard.register()); d(vscode.commands.registerCommand("arc-vscode.browseFile", browse.browseFile)); - d(vscode.commands.registerCommand('arc-vscode.clearLint', diagnostics.clear)); + d(vscode.commands.registerCommand('arc-vscode.clearLint', () => diagnostics.clear())); d(vscode.commands.registerCommand('arc-vscode.lintEverything', lint.lintEverything)); d(vscode.workspace.onDidSaveTextDocument(onTextDocumentEvent)); d(vscode.workspace.onDidOpenTextDocument(onTextDocumentEvent)); d(vscode.workspace.onDidChangeConfiguration(onChangeConfig)); if (vscode.window.activeTextEditor) { lint.lintFile(vscode.window.activeTextEditor.document); } d(vscode.workspace.onDidCloseTextDocument(document => diagnostics.delete(document.uri))); function onTextDocumentEvent(document: vscode.TextDocument) { lint.lintFile(document); } } export function deactivate() { } function onChangeConfig(e: vscode.ConfigurationChangeEvent) { if (!e.affectsConfiguration('arc-vscode.lint')) { return; } lint.updateLintSeverityMap(); }