Skip to content

Commit

Permalink
refactor: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Dec 12, 2024
1 parent c70c3f8 commit 9029ecb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/language-service/lib/plugins/vue-sfc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ export function create(): LanguageServicePlugin {
}
},
create(context) {
const htmlPluginInstance = htmlService.create(context);
const htmlServiceInstance = htmlService.create(context);

return {

...htmlPluginInstance,
...htmlServiceInstance,

provideDocumentLinks: undefined,

Expand Down Expand Up @@ -87,7 +87,7 @@ export function create(): LanguageServicePlugin {
return;
}

const originalResult = await htmlPluginInstance.provideDiagnostics?.(document, token);
const originalResult = await htmlServiceInstance.provideDiagnostics?.(document, token);
const sfcErrors: vscode.Diagnostic[] = [];
const { template } = vueSourceFile._sfc;

Expand Down Expand Up @@ -211,7 +211,7 @@ export function create(): LanguageServicePlugin {
},

async provideCompletionItems(document, position, context, token) {
const result = await htmlPluginInstance.provideCompletionItems?.(document, position, context, token);
const result = await htmlServiceInstance.provideCompletionItems?.(document, position, context, token);
if (!result) {
return;
}
Expand Down

0 comments on commit 9029ecb

Please # to comment.