@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.
package/configs/package.json
CHANGED
|
@@ -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();
|
package/configs/src/extension.ts
CHANGED
|
@@ -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 '
|
|
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
|
-
|
|
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
|
-
|
|
23
|
-
$channel.appendLine(`[error] ${output}`);
|
|
24
|
-
}
|
|
20
|
+
$channel?.appendLine(`[error] ${output}`);
|
|
25
21
|
|
|
26
22
|
if(showErrorAlert) {
|
|
27
|
-
void window.showErrorMessage(
|
|
23
|
+
void window.showErrorMessage(`${EXTENSION_NAME}: ${output}`);
|
|
28
24
|
}
|
|
29
25
|
}
|
|
30
26
|
},
|
|
31
27
|
info(...args: unknown[]): void {
|
|
32
|
-
|
|
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(
|
|
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.
|
|
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": "
|
|
34
|
+
"gitHead": "0e08b728d3788009c0c81f21b0e06d8682964c82"
|
|
35
35
|
}
|
|
File without changes
|