Skip to content

Commit 16357c2

Browse files
1 parent 1c8c71a commit 16357c2

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

Source/Configuration/ESBuild/Cocoon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Export: Clean, On
77
*/
88

9-
import type { BuildOption } from "esbuild";
9+
import type { BuildOptions } from "esbuild";
1010

1111
export const On =
1212
process.env["NODE_ENV"] === "development" ||
@@ -66,6 +66,6 @@ export default {
6666
},
6767
],
6868
outbase: "Source/Configuration",
69-
} satisfies BuildOption as BuildOption;
69+
} satisfies BuildOptions as BuildOptions;
7070

7171
export const { sep, posix } = await import("node:path");

Source/Configuration/ESBuild/Target.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
//
3434
//--------------------------------------------------------------------------------------------*/
3535

36-
import type { BuildOption } from "esbuild";
36+
import type { BuildOptions } from "esbuild";
3737

3838
// Import the global API function name constant from the compiled interceptor module.
3939
// This ensures the build configuration uses the exact same string that the interceptor expects.
@@ -56,7 +56,7 @@ export const On = (await import("./Cocoon.js")).On;
5656
* @param Current - The current BuildOption, potentially passed from a preceding build step or CLI.
5757
* @returns A Promise resolving to the configured BuildOption for esbuild.
5858
*/
59-
export default async (Current: BuildOption): Promise<BuildOption> => {
59+
export default async (Current: BuildOptions): Promise<BuildOptions> => {
6060
// Asynchronously import dependencies for the configuration logic.
6161
const [deepmergeMod, cocoonMod, ulidMod, playformBuildEntryMod] =
6262
await Promise.all([
@@ -76,20 +76,20 @@ export default async (Current: BuildOption): Promise<BuildOption> => {
7676
const { deepmerge } = deepmergeMod;
7777

7878
// Base configuration
79-
const CocoonDefaultConfig = cocoonMod.default as BuildOption;
79+
const CocoonDefaultConfig = cocoonMod.default as BuildOptions;
8080

8181
const { ulid } = ulidMod;
8282

8383
const getEntryPoints = playformBuildEntryMod.default as (
84-
current: BuildOption,
84+
current: BuildOptions,
8585

8686
patterns: string[],
8787

8888
// Type assertion for clarity
8989
) => string[] | Record<string, string>;
9090

9191
// Merge the base configuration with specific overrides and additions.
92-
return deepmerge<[BuildOption, BuildOption]>(CocoonDefaultConfig, {
92+
return deepmerge<[BuildOptions, BuildOptions]>(CocoonDefaultConfig, {
9393
// Specifies the output directory for compiled files.
9494
outdir: "Target",
9595

Source/Service/LanguageFeature/RPCHandlers/ProvideHover.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function ProvideHover(
7070
{} as any,
7171
() => undefined,
7272
);
73-
return TypeConverter.Hover.fromAPI(result as Hover, commandConverter);
73+
return TypeConverter.Hover.FromAPI(result as Hover, commandConverter);
7474
}).pipe(
7575
Effect.scoped, // Ensures the cancellation token's scope is properly handled
7676
Effect.catchAll(() => Effect.succeed(undefined)), // Return undefined on any failure

Source/Service/LanguageFeature/RegisterProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function RegisterProvider<T>(
4747
);
4848

4949
const selectorDTO =
50-
TypeConverter.Main.DocumentSelector.fromAPI(Selector);
50+
TypeConverter.Main.DocumentSelector.FromAPI(Selector);
5151

5252
IPCService.SendNotification(`$register${ProviderType}Provider`, [
5353
Handle,

Source/Service/Task/Definition.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ export const Definition = Effect.gen(function* (_) {
6767
FetchTasks: (Filter) =>
6868
IPCService.SendRequest<any[]>("$fetchTasks", [Filter]).pipe(
6969
Effect.map((dtos) =>
70-
dtos.map((dto) => TypeConverter.Task.toAPI(dto)),
70+
dtos.map((dto) => TypeConverter.Task.ToAPI(dto)),
7171
),
7272
),
7373

7474
ExecuteTask: (TaskToExecute, Extension) =>
7575
IPCService.SendRequest<any>("$executeTask", [
76-
TypeConverter.Task.fromAPI(TaskToExecute, Extension),
76+
TypeConverter.Task.FromAPI(TaskToExecute, Extension),
7777
]).pipe(
7878
Effect.map((dto) =>
79-
TypeConverter.Task.Execution.toAPI(dto, TaskToExecute),
79+
TypeConverter.Task.Execution.ToAPI(dto, TaskToExecute),
8080
),
8181
),
8282
};

Source/Service/Task/RPCHandlers/ProvideTasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function ProvideTasks(
4848
}
4949

5050
return Tasks.map((task) =>
51-
TypeConverter.Task.fromAPI(task, Entry.extension),
51+
TypeConverter.Task.FromAPI(task, Entry.extension),
5252
);
5353
}).pipe(
5454
Effect.scoped, // Ensures cancellation token scope is handled

Source/Service/WorkSpace/Definition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export const Definition = Effect.gen(function* (_) {
149149
getConfiguration: ConfigurationService.GetConfiguration,
150150
applyEdit: (edit) =>
151151
IPCService.SendRequest<boolean>("$applyWorkspaceEdit", [
152-
TypeConverter.WorkSpaceEdit.fromAPI(edit),
152+
TypeConverter.WorkSpaceEdit.FromAPI(edit),
153153
]).pipe(Effect.runPromise),
154154

155155
// --- Delegated Properties & Events ---

Source/TypeConverter/Main/URI.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { URI as VSCodeURI } from "../../Type/ExtHostTypes.js";
1313
* @param uri The `vscode.URI` instance to convert.
1414
* @returns The `UriComponents` DTO.
1515
*/
16-
export function fromAPI(uri: VSCodeURI): UriComponents {
16+
export function FromAPI(uri: VSCodeURI): UriComponents {
1717
return uri.toJSON();
1818
}
1919

@@ -23,6 +23,6 @@ export function fromAPI(uri: VSCodeURI): UriComponents {
2323
* @param dto The `UriComponents` DTO to revive.
2424
* @returns A new `vscode.URI` instance.
2525
*/
26-
export function toAPI(dto: UriComponents): VSCodeURI {
26+
export function ToAPI(dto: UriComponents): VSCodeURI {
2727
return VSCodeURI.revive(dto);
2828
}

0 commit comments

Comments
 (0)