Skip to content

Commit 453aef5

Browse files
authored
chore: upgrade reactive-vscode to v1.0.1 (#6019)
1 parent a7092ed commit 453aef5

4 files changed

Lines changed: 18 additions & 20 deletions

File tree

extensions/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@
490490
"@vue/language-server": "workspace:*",
491491
"@vue/typescript-plugin": "workspace:*",
492492
"laplacenoma": "latest",
493-
"reactive-vscode": "^0.4.1",
493+
"reactive-vscode": "^1.0.1",
494494
"rolldown": "latest",
495495
"vscode-ext-gen": "latest",
496496
"vscode-tmlanguage-snapshot": "latest"

extensions/vscode/src/config.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import { defineConfigObject } from 'reactive-vscode';
1+
import { defineConfig } from 'reactive-vscode';
22
import { type NestedScopedConfigs, scopedConfigs } from './generated-meta';
33

4-
export const config = defineConfigObject<NestedScopedConfigs>(
5-
scopedConfigs.scope,
6-
scopedConfigs.defaults,
7-
);
4+
export const config = defineConfig<NestedScopedConfigs>(scopedConfigs.scope);

extensions/vscode/src/extension.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ import * as fs from 'node:fs';
44
import * as path from 'node:path';
55
import {
66
defineExtension,
7-
executeCommand,
7+
defineLogger,
88
extensionContext,
99
nextTick,
1010
onDeactivate,
1111
useActiveTextEditor,
1212
useCommand,
13-
useOutputChannel,
1413
useVisibleTextEditors,
1514
watch,
1615
} from 'reactive-vscode';
@@ -44,6 +43,8 @@ for (
4443
}
4544
}
4645

46+
const logger = defineLogger('Vue Language Server');
47+
4748
export = defineExtension(() => {
4849
let client: lsp.BaseLanguageClient | undefined;
4950

@@ -87,7 +88,7 @@ export = defineExtension(() => {
8788
'Restart Extension Host',
8889
);
8990
if (reload) {
90-
executeCommand('workbench.action.restartExtensionHost');
91+
vscode.commands.executeCommand('workbench.action.restartExtensionHost');
9192
}
9293
});
9394

@@ -138,7 +139,7 @@ export = defineExtension(() => {
138139

139140
useCommand('vue.welcome', () => welcome.execute(context));
140141
useCommand('vue.action.restartServer', async () => {
141-
await executeCommand('typescript.restartTsServer');
142+
await vscode.commands.executeCommand('typescript.restartTsServer');
142143
await client?.stop();
143144
client?.outputChannel.clear();
144145
await client?.start();
@@ -208,7 +209,7 @@ function launch(serverPath: string, tsdk: string) {
208209
isTrusted: true,
209210
supportHtml: true,
210211
},
211-
outputChannel: useOutputChannel('Vue Language Server'),
212+
outputChannel: logger.logger.value!,
212213
},
213214
);
214215

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)