pickier-vscode 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "pickier-vscode",
4
4
  "displayName": "Pickier",
5
5
  "type": "module",
6
- "version": "0.1.8",
6
+ "version": "0.1.10",
7
7
  "description": "Format, lint and more in a fraction of seconds with Pickier",
8
8
  "license": "MIT",
9
9
  "homepage": "https://github.com/stacksjs/pickier#readme",
@@ -216,11 +216,10 @@
216
216
  "pretest": "bun run compile && bun run lint",
217
217
  "lint": "eslint src --ext ts",
218
218
  "test": "bun test",
219
- "package": "vsce package --no-dependencies",
220
- "publish": "vsce publish --no-dependencies"
219
+ "package": "bunx @vscode/vsce package --no-dependencies"
221
220
  },
222
221
  "dependencies": {
223
- "pickier": "0.1.8"
222
+ "pickier": "0.1.10"
224
223
  },
225
224
  "devDependencies": {
226
225
  "@types/bun": "1.2.20",
@@ -171,7 +171,7 @@ export class PickierCodeActionProvider implements vscode.CodeActionProvider {
171
171
  private createDisableRuleForLineAction(
172
172
  document: vscode.TextDocument,
173
173
  diagnostic: vscode.Diagnostic,
174
- range: vscode.Range | vscode.Selection,
174
+ _range: vscode.Range | vscode.Selection,
175
175
  ): vscode.CodeAction | undefined {
176
176
  const ruleId = diagnostic.code?.toString()
177
177
  if (!ruleId) {
package/src/codelens.ts CHANGED
@@ -49,7 +49,7 @@ export class PickierCodeLensProvider implements vscode.CodeLensProvider {
49
49
  return codeLenses
50
50
  }
51
51
 
52
- private createNoIssuesLens(document: vscode.TextDocument): vscode.CodeLens {
52
+ private createNoIssuesLens(_document: vscode.TextDocument): vscode.CodeLens {
53
53
  const range = new vscode.Range(0, 0, 0, 0)
54
54
  const lens = new vscode.CodeLens(range)
55
55
 
@@ -110,7 +110,7 @@ export class PickierCodeLensProvider implements vscode.CodeLensProvider {
110
110
  return lens
111
111
  }
112
112
 
113
- private createOrganizeImportsLens(document: vscode.TextDocument): vscode.CodeLens {
113
+ private createOrganizeImportsLens(_document: vscode.TextDocument): vscode.CodeLens {
114
114
  const range = new vscode.Range(0, 0, 0, 0)
115
115
  const lens = new vscode.CodeLens(range)
116
116
 
package/src/extension.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as vscode from 'vscode'
2
+ import { PickierCodeLensProvider } from './codelens'
2
3
  import { organizeImports, restartExtension, showOutputChannel } from './commands'
3
4
  import { clearConfigCache, disposeConfigWatcher, getPickierConfig, watchConfigFile } from './config'
4
5
  import { lintPathsToDiagnostics, PickierDiagnosticProvider } from './diagnostics'
5
6
  import { PickierFormattingProvider } from './formatter'
6
- import { PickierStatusBar } from './status-bar'
7
7
  import { PickierHoverProvider } from './hover'
8
- import { PickierCodeLensProvider } from './codelens'
8
+ import { PickierStatusBar } from './status-bar'
9
9
 
10
10
  let diagnosticCollection: vscode.DiagnosticCollection
11
11
  let statusBarItem: PickierStatusBar
@@ -8,6 +8,7 @@ export function createPickierMock(overrides: Partial<any> = {}) {
8
8
  formatCode: (text: string) => text,
9
9
  lintText: async () => [],
10
10
  runLintProgrammatic: async () => ({ errors: 0, warnings: 0, issues: [] }),
11
+ // eslint-disable-next-line no-console
11
12
  runLint: async () => { console.log(JSON.stringify({ errors: 0, warnings: 0, issues: [] })) },
12
13
  ...overrides,
13
14
  }