Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Add library filesystem commands #461

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/interfaces/ClientCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export const ClientCommands = {
* Move the cursor focus to the provided location.
*/
GotoLocation: "metals-goto-location",
/**
* Notify the client that the library filesystem is ready for navigation
*/
LibraryFilesystemReady: "metals-library-filesystem-ready",
/** Open a specific folder either in the same or new window */
OpenFolder: "metals-open-folder",
/**
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/MetalsInitializationOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface MetalsInitializationOptions {
icons?: "vscode" | "octicons" | "atom" | "unicode";
inputBoxProvider?: boolean;
isVirtualDocumentSupported?: boolean;
isLibraryFileSystemSupported?: boolean;
isExitOnShutdown?: boolean;
isHttpEnabled?: boolean;
openFilesOnRenameProvider?: boolean;
Expand Down
6 changes: 6 additions & 0 deletions src/interfaces/ServerCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ export const ServerCommands = {
DecodeFile: "file-decode",
/** Retrieve a list of all build targets */
ListBuildTargets: "list-build-targets",
/** Retrieve file system information on the uri passed e.g. isFile, isDirectory */
FileSystemStat: "filesystem-stat",
/** Retrieve file directory contents */
FileSystemReadDirectory: "filesystem-read-directory",
/** Retrieve file contents */
FileSystemReadFile: "filesystem-read-file",
/**
* Detect the build tool for a workspace and generate the bsp config for the
* build tool. If there are multiple build tools for a workspace ,the user
Expand Down