@biomejs/backend-jsonrpc 1.3.2 → 1.3.3-nightly.8475169

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/workspace.ts +11 -0
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/backend-jsonrpc","version":"1.3.2","main":"dist/index.js","scripts":{"test":"vitest","test:ci":"pnpm build && vitest --run","tsc":"tsc --noEmit","build":"tsc"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"npm/backend-jsonrpc"},"author":"Biome Developers and Contributors","bugs":"https://github.com/biomejs/biome/issues","description":"Bindings to the JSON-RPC Workspace API of the Biome daemon","keywords":["JavaScript","TypeScript","format","lint","toolchain"],"engines":{"node":">=14.*"},"license":"MIT","devDependencies":{"@types/node":"^18.7.2","typescript":"^4.8.2","vite":"^3.0.8","vitest":"^0.22.0"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.3.2","@biomejs/cli-win32-arm64":"1.3.2","@biomejs/cli-darwin-x64":"1.3.2","@biomejs/cli-darwin-arm64":"1.3.2","@biomejs/cli-linux-x64":"1.3.2","@biomejs/cli-linux-arm64":"1.3.2"}}
1
+ {"name":"@biomejs/backend-jsonrpc","version":"1.3.3-nightly.8475169","main":"dist/index.js","scripts":{"test":"vitest","test:ci":"pnpm build && vitest --run","tsc":"tsc --noEmit","build":"tsc"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"npm/backend-jsonrpc"},"author":"Biome Developers and Contributors","bugs":"https://github.com/biomejs/biome/issues","description":"Bindings to the JSON-RPC Workspace API of the Biome daemon","keywords":["JavaScript","TypeScript","format","lint","toolchain"],"engines":{"node":">=14.*"},"license":"MIT","devDependencies":{"@types/node":"^18.7.2","typescript":"^4.8.2","vite":"^3.0.8","vitest":"^0.22.0"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.3.3-nightly.8475169","@biomejs/cli-win32-arm64":"1.3.3-nightly.8475169","@biomejs/cli-darwin-x64":"1.3.3-nightly.8475169","@biomejs/cli-darwin-arm64":"1.3.3-nightly.8475169","@biomejs/cli-linux-x64":"1.3.3-nightly.8475169","@biomejs/cli-linux-arm64":"1.3.3-nightly.8475169"}}
package/src/workspace.ts CHANGED
@@ -1267,6 +1267,10 @@ export interface Hooks {
1267
1267
  * Supported cases for TypeScript `enum` member names.
1268
1268
  */
1269
1269
  export type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase";
1270
+ export interface ProjectFeaturesParams {
1271
+ manifest_path: RomePath;
1272
+ }
1273
+ export interface ProjectFeaturesResult {}
1270
1274
  export interface OpenFileParams {
1271
1275
  content: string;
1272
1276
  language_hint?: Language;
@@ -1529,6 +1533,7 @@ export type Category =
1529
1533
  | "organizeImports"
1530
1534
  | "migrate"
1531
1535
  | "deserialize"
1536
+ | "project"
1532
1537
  | "internalError/io"
1533
1538
  | "internalError/fs"
1534
1539
  | "internalError/panic"
@@ -1779,6 +1784,9 @@ export interface RenameResult {
1779
1784
  export interface Workspace {
1780
1785
  fileFeatures(params: SupportsFeatureParams): Promise<SupportsFeatureResult>;
1781
1786
  updateSettings(params: UpdateSettingsParams): Promise<void>;
1787
+ projectFeatures(
1788
+ params: ProjectFeaturesParams,
1789
+ ): Promise<ProjectFeaturesResult>;
1782
1790
  openFile(params: OpenFileParams): Promise<void>;
1783
1791
  changeFile(params: ChangeFileParams): Promise<void>;
1784
1792
  closeFile(params: CloseFileParams): Promise<void>;
@@ -1808,6 +1816,9 @@ export function createWorkspace(transport: Transport): Workspace {
1808
1816
  updateSettings(params) {
1809
1817
  return transport.request("biome/update_settings", params);
1810
1818
  },
1819
+ projectFeatures(params) {
1820
+ return transport.request("biome/project_features", params);
1821
+ },
1811
1822
  openFile(params) {
1812
1823
  return transport.request("biome/open_file", params);
1813
1824
  },