Skip to content

Commit

Permalink
refactor(language-service): remove unnecessary await
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Mar 7, 2025
1 parent 4d8d2a8 commit 4b49cbe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/language-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,31 +109,31 @@ export function getFullLanguageServicePlugins(ts: typeof import('typescript')) {
};
return {
async collectExtractProps(...args) {
return await collectExtractProps.apply(requestContext, args);
return collectExtractProps.apply(requestContext, args);
},
async getPropertiesAtLocation(...args) {
return await getPropertiesAtLocation.apply(requestContext, args);
return getPropertiesAtLocation.apply(requestContext, args);
},
async getImportPathForFile(...args) {
return await getImportPathForFile.apply(requestContext, args);
return getImportPathForFile.apply(requestContext, args);
},
async getComponentEvents(...args) {
return await getComponentEvents.apply(requestContext, args);
return getComponentEvents.apply(requestContext, args);
},
async getComponentDirectives(...args) {
return await getComponentDirectives.apply(requestContext, args);
return getComponentDirectives.apply(requestContext, args);
},
async getComponentNames(...args) {
return await getComponentNames.apply(requestContext, args);
return getComponentNames.apply(requestContext, args);
},
async getComponentProps(...args) {
return await getComponentProps.apply(requestContext, args);
return getComponentProps.apply(requestContext, args);
},
async getElementAttrs(...args) {
return await getElementAttrs.apply(requestContext, args);
return getElementAttrs.apply(requestContext, args);
},
async getElementNames(...args) {
return await getElementNames.apply(requestContext, args);
return getElementNames.apply(requestContext, args);
},
async getQuickInfoAtPosition(fileName, position) {
const languageService = context.getLanguageService();
Expand Down

0 comments on commit 4b49cbe

Please sign in to comment.