Skip to content

Commit

Permalink
refactor(language-service): relocate name casing script
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Mar 6, 2025
1 parent 61b3418 commit f256f36
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/language-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export * from '@volar/language-service';
export * from '@vue/language-core';
export * from './lib/ideFeatures/nameCasing';
export * from './lib/nameCasing';
export * from './lib/types';

import type { LanguageServiceContext, LanguageServicePlugin } from '@volar/language-service';
Expand Down Expand Up @@ -42,7 +42,7 @@ import { getImportPathForFile } from '@vue/typescript-plugin/lib/requests/getImp
import { getPropertiesAtLocation } from '@vue/typescript-plugin/lib/requests/getPropertiesAtLocation';
import type { RequestContext } from '@vue/typescript-plugin/lib/requests/types';
import { URI } from 'vscode-uri';
import { convertAttrName, convertTagName, detect } from './lib/ideFeatures/nameCasing';
import { convertAttrName, convertTagName, detect } from './lib/nameCasing';

declare module '@volar/language-service' {
export interface ProjectContext {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { forEachElementNode, hyphenateAttr, hyphenateTag, VueVirtualCode } from
import { computed } from 'alien-signals';
import type * as vscode from 'vscode-languageserver-protocol';
import type { URI } from 'vscode-uri';
import { AttrNameCasing, TagNameCasing } from '../types';
import { AttrNameCasing, TagNameCasing } from './types';

export async function convertTagName(
context: LanguageServiceContext,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as html from 'vscode-html-languageservice';
import type * as vscode from 'vscode-languageserver-protocol';
import type { TextDocument } from 'vscode-languageserver-textdocument';
import { URI } from 'vscode-uri';
import { getNameCasing } from '../ideFeatures/nameCasing';
import { getNameCasing } from '../nameCasing';
import { AttrNameCasing, LanguageServicePlugin } from '../types';

export function create(
Expand Down
2 changes: 1 addition & 1 deletion packages/language-service/lib/plugins/vue-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as html from 'vscode-html-languageservice';
import type * as vscode from 'vscode-languageserver-protocol';
import type { TextDocument } from 'vscode-languageserver-textdocument';
import { URI, Utils } from 'vscode-uri';
import { getNameCasing } from '../ideFeatures/nameCasing';
import { getNameCasing } from '../nameCasing';
import { AttrNameCasing, LanguageServicePlugin, TagNameCasing } from '../types';
import { loadModelModifiersData, loadTemplateData } from './data';

Expand Down

0 comments on commit f256f36

Please sign in to comment.