@daiyam/artifact-vsx-ts 0.9.2 → 0.9.3

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.
@@ -24,6 +24,11 @@
24
24
  "release-it": "^19.2.4",
25
25
  "tsc-watch": "^6.3.0"
26
26
  },
27
+ "overrides": {
28
+ "release-it": {
29
+ "undici": "^6.24.1"
30
+ }
31
+ },
27
32
  "activationEvents": [
28
33
  "onStartupFinished"
29
34
  ],
@@ -1,4 +1,4 @@
1
- import { getDebugChannel } from '../settings.js';
1
+ import { getDebugChannel } from '../utils/settings.js';
2
2
 
3
3
  export async function hello(): Promise<void> {
4
4
  const channel = getDebugChannel(true)!;
@@ -1,6 +1,6 @@
1
1
  import * as vscode from 'vscode';
2
2
  import { Disposable } from './utils/disposable.js';
3
- import { CONFIG_KEY, getDebugChannel } from './settings.js';
3
+ import { CONFIG_KEY, getDebugChannel } from './utils/settings.js';
4
4
 
5
5
  export class DocumentManager implements vscode.Disposable {
6
6
  private readonly disposable: Disposable = new Disposable();
@@ -1,7 +1,7 @@
1
1
  import vscode from 'vscode';
2
2
  import pkg from '../package.json';
3
3
  import { DocumentManager } from './document-manager.js';
4
- import { CONFIG_KEY, setupSettings } from './settings.js';
4
+ import { CONFIG_KEY, setupSettings } from './utils/settings.js';
5
5
  import { hello } from './commands/hello.js';
6
6
 
7
7
  const VERSION_KEY = 'version';
@@ -1,16 +1,14 @@
1
1
  import { inspect } from 'node:util';
2
2
  import { isPrimitive } from '@zokugun/is-it-type';
3
3
  import vscode, { window } from 'vscode';
4
- import { CONFIG_KEY } from '../settings.js';
4
+ import { CONFIG_KEY, EXTENSION_NAME } from './settings.js';
5
5
 
6
6
  let $channel: vscode.OutputChannel | null = null;
7
7
 
8
8
  // eslint-disable-next-line @typescript-eslint/naming-convention
9
9
  export const Logger = {
10
10
  debug(...args: unknown[]): void {
11
- if($channel) {
12
- $channel.appendLine(`[debug] ${args.map(toString).join(' ')}`);
13
- }
11
+ $channel?.appendLine(`[debug] ${args.map(toString).join(' ')}`);
14
12
  },
15
13
  error(...args: unknown[]): void {
16
14
  const config = vscode.workspace.getConfiguration(CONFIG_KEY);
@@ -19,26 +17,22 @@ export const Logger = {
19
17
  if(Boolean($channel) || showErrorAlert) {
20
18
  const output = args.map(toString).join(' ');
21
19
 
22
- if($channel) {
23
- $channel.appendLine(`[error] ${output}`);
24
- }
20
+ $channel?.appendLine(`[error] ${output}`);
25
21
 
26
22
  if(showErrorAlert) {
27
- void window.showErrorMessage(`VSIX Manager: ${output}`);
23
+ void window.showErrorMessage(`${EXTENSION_NAME}: ${output}`);
28
24
  }
29
25
  }
30
26
  },
31
27
  info(...args: unknown[]): void {
32
- if($channel) {
33
- $channel.appendLine(`[info] ${args.map(toString).join(' ')}`);
34
- }
28
+ $channel?.appendLine(`[info] ${args.map(toString).join(' ')}`);
35
29
  },
36
30
  setup(show: boolean = false): void {
37
31
  const config = vscode.workspace.getConfiguration(CONFIG_KEY);
38
32
  const debug = config.get<boolean>('debug') ?? false;
39
33
 
40
34
  if(debug) {
41
- $channel ||= vscode.window.createOutputChannel('VSIX Manager');
35
+ $channel ||= vscode.window.createOutputChannel(EXTENSION_NAME);
42
36
  }
43
37
 
44
38
  if(show) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daiyam/artifact-vsx-ts",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "The configuration to create Visual Studio extensions and publish them on Visual Studio Marketplace and Open VSX Registry.",
5
5
  "author": {
6
6
  "name": "Baptiste Augrain",
@@ -31,5 +31,5 @@
31
31
  "project-template",
32
32
  "scaffold"
33
33
  ],
34
- "gitHead": "b74a369771e8f7f9661ff03d4ee6f927c8a147cf"
34
+ "gitHead": "0e08b728d3788009c0c81f21b0e06d8682964c82"
35
35
  }
File without changes