Skip to content

Commit 8aa68b8

Browse files
ci(lint): auto-fix
1 parent d2acd7b commit 8aa68b8

32 files changed

+54
-54
lines changed

packages/eslint/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function createProcessor(
2525
'yaml': '.yaml',
2626
'markdown': '.md',
2727
},
28-
supportsAutofix = true,
28+
supportsAutofix = true
2929
): Linter.Processor {
3030
const language = createLanguage<string>(languagePlugins, new FileMap(caseSensitive), () => { });
3131
const documents = new FileMap<{

packages/kit/lib/createChecker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { TypeScriptProjectHost, createLanguageServiceHost, resolveFileLanguageId
1010
export function createTypeScriptChecker(
1111
languagePlugins: LanguagePlugin<URI>[],
1212
languageServicePlugins: LanguageServicePlugin[],
13-
tsconfig: string,
13+
tsconfig: string
1414
) {
1515
const tsconfigPath = asPosix(tsconfig);
1616
return createTypeScriptCheckerWorker(languagePlugins, languageServicePlugins, tsconfigPath, env => {
@@ -56,7 +56,7 @@ function createTypeScriptCheckerWorker(
5656
languagePlugins: LanguagePlugin<URI>[],
5757
languageServicePlugins: LanguageServicePlugin[],
5858
configFileName: string | undefined,
59-
getProjectHost: (env: LanguageServiceEnvironment) => TypeScriptProjectHost,
59+
getProjectHost: (env: LanguageServiceEnvironment) => TypeScriptProjectHost
6060
) {
6161

6262
let settings = {};
@@ -241,7 +241,7 @@ function createTypeScriptCheckerWorker(
241241

242242
function createTypeScriptProjectHost(
243243
env: LanguageServiceEnvironment,
244-
createParsedCommandLine: () => Pick<ts.ParsedCommandLine, 'options' | 'fileNames'>,
244+
createParsedCommandLine: () => Pick<ts.ParsedCommandLine, 'options' | 'fileNames'>
245245
) {
246246
let scriptSnapshotsCache: Map<string, ts.IScriptSnapshot | undefined> = new Map();
247247
let parsedCommandLine = createParsedCommandLine();

packages/language-core/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { CodeInformation, Language, LanguagePlugin, SourceScript, VirtualCo
1212
export function createLanguage<T>(
1313
plugins: LanguagePlugin<T>[],
1414
scriptRegistry: Map<T, SourceScript<T>>,
15-
sync: (id: T) => void,
15+
sync: (id: T) => void
1616
): Language<T> {
1717
const virtualCodeToSourceFileMap = new WeakMap<VirtualCode, SourceScript<T>>();
1818
const virtualCodeToMaps = new WeakMap<ts.IScriptSnapshot, Map<T, [ts.IScriptSnapshot, SourceMap<CodeInformation>]>>();
@@ -156,7 +156,7 @@ export function createLanguage<T>(
156156
export function updateVirtualCodeMapOfMap<T>(
157157
virtualCode: VirtualCode,
158158
mapOfMap: Map<T, [ts.IScriptSnapshot, SourceMap<CodeInformation>]>,
159-
getSourceSnapshot: (source: string | undefined) => [T, ts.IScriptSnapshot] | undefined,
159+
getSourceSnapshot: (source: string | undefined) => [T, ts.IScriptSnapshot] | undefined
160160
) {
161161
const sources = new Set<string | undefined>();
162162
if (!virtualCode.mappings.length) {

packages/language-server/lib/project/typescriptProject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function createTypeScriptProject(
1616
getLanguagePlugins: (
1717
serviceEnv: LanguageServiceEnvironment,
1818
projectContext: ProjectExposeContext
19-
) => ProviderResult<LanguagePlugin<URI>[]>,
19+
) => ProviderResult<LanguagePlugin<URI>[]>
2020
) {
2121
let initialized = false;
2222

packages/language-server/lib/project/typescriptProjectLs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export async function createTypeScriptLS(
4141
}: {
4242
asUri(fileName: string): URI;
4343
asFileName(uri: URI): string;
44-
},
44+
}
4545
): Promise<TypeScriptLS> {
4646

4747
let parsedCommandLine: ts.ParsedCommandLine;
@@ -201,7 +201,7 @@ async function createParsedCommandLine(
201201
sys: ReturnType<typeof createSys>,
202202
workspacePath: string,
203203
tsconfig: string | ts.CompilerOptions,
204-
extraFileExtensions: ts.FileExtensionInfo[],
204+
extraFileExtensions: ts.FileExtensionInfo[]
205205
): Promise<ts.ParsedCommandLine> {
206206
let content: ts.ParsedCommandLine = {
207207
errors: [],

packages/language-server/lib/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export * from '@volar/snapshot-document';
1111

1212
export function createServerBase(
1313
connection: vscode.Connection,
14-
fs: FileSystem,
14+
fs: FileSystem
1515
) {
1616
let semanticTokensReq = 0;
1717
let documentUpdatedReq = 0;
@@ -75,7 +75,7 @@ export function createServerBase(
7575
languageServices: Project,
7676
options?: {
7777
pullModelDiagnostics?: boolean;
78-
},
78+
}
7979
) {
8080
status.initializeParams = initializeParams;
8181
status.languageServicePlugins = languageServicePlugins;

packages/language-service/lib/features/provideCompletionItems.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function register(context: LanguageServiceContext) {
3030
uri: URI,
3131
position: vscode.Position,
3232
completionContext: vscode.CompletionContext = { triggerKind: 1 satisfies typeof vscode.CompletionTriggerKind.Invoked, },
33-
token = NoneCancellationToken,
33+
token = NoneCancellationToken
3434
) => {
3535
const sourceScript = context.language.scripts.get(uri);
3636
if (!sourceScript) {
@@ -146,7 +146,7 @@ export function register(context: LanguageServiceContext) {
146146
document: TextDocument,
147147
position: vscode.Position,
148148
map?: SourceMapWithDocuments,
149-
codeInfo?: CodeInformation | undefined,
149+
codeInfo?: CodeInformation | undefined
150150
) => {
151151

152152
for (const plugin of sortedPlugins) {

packages/language-service/lib/features/provideDiagnostics.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function updateRange(
1616
change: {
1717
range: vscode.Range,
1818
newEnd: vscode.Position;
19-
},
19+
}
2020
) {
2121
if (!updatePosition(range.start, change, false)) {
2222
return;
@@ -36,7 +36,7 @@ function updatePosition(
3636
range: vscode.Range,
3737
newEnd: vscode.Position;
3838
},
39-
isEnd: boolean,
39+
isEnd: boolean
4040
) {
4141
if (change.range.end.line > position.line) {
4242
if (change.newEnd.line > position.line) {
@@ -150,7 +150,7 @@ export function register(context: LanguageServiceContext) {
150150
return async (
151151
uri: URI,
152152
token = NoneCancellationToken,
153-
response?: (result: vscode.Diagnostic[]) => void,
153+
response?: (result: vscode.Diagnostic[]) => void
154154
) => {
155155
const sourceScript = context.language.scripts.get(uri);
156156
if (!sourceScript) {
@@ -213,7 +213,7 @@ export function register(context: LanguageServiceContext) {
213213
async function worker(
214214
api: 'provideDiagnostics' | 'provideSemanticDiagnostics',
215215
cacheMap: CacheMap,
216-
cache: Cache,
216+
cache: Cache
217217
) {
218218
const result = await documentFeatureWorker(
219219
context,

packages/language-service/lib/features/provideDocumentFormattingEdits.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export function register(context: LanguageServiceContext) {
178178
virtualCode: VirtualCode | undefined,
179179
embeddedLevel: number,
180180
rangeOrPosition: vscode.Range | vscode.Position,
181-
ch?: string,
181+
ch?: string
182182
) {
183183

184184
if (context.disabledEmbeddedDocumentUris.get(URI.parse(document.uri))) {

packages/language-service/lib/features/provideDocumentSemanticTokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function register(context: LanguageServiceContext) {
1414
range: vscode.Range | undefined,
1515
legend: vscode.SemanticTokensLegend,
1616
token = NoneCancellationToken,
17-
_reportProgress?: (tokens: vscode.SemanticTokens) => void, // TODO
17+
_reportProgress?: (tokens: vscode.SemanticTokens) => void // TODO
1818
): Promise<vscode.SemanticTokens | undefined> => {
1919
const sourceScript = context.language.scripts.get(uri);
2020
if (!sourceScript) {

0 commit comments

Comments
 (0)