From 6f599afbc7fd63c79cf36364d6bf52337c57e6cb Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 31 Mar 2022 09:51:48 -0700 Subject: [PATCH] update cleaned-up API baseline --- tests/baselines/reference/api/tsserverlibrary.d.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 6438dd8f44b..f6e0db1c405 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -8282,7 +8282,6 @@ declare namespace ts.server.protocol { } /** * Request to synchronize list of open files with the client - * TODO: Lots of unit tests refer to this too, a good starting point for UpdateFileSystemRequest */ interface UpdateOpenRequest extends Request { command: CommandTypes.UpdateOpen; @@ -8309,14 +8308,17 @@ declare namespace ts.server.protocol { command: CommandTypes.UpdateFileSystem; arguments: UpdateFileSystemRequestArgs; } + /** + * Arguments to UpdateFileSystemRequest. Tracks changes to non-opened files. + */ interface UpdateFileSystemRequestArgs { /** For now, only 'memfs', initially for exclusive in-memory operation, but it could be other in-memory names later */ fileSystem: string; - /** For now, a list of newly created or newly available files. Probably need to ADD mocked file watchers */ + /** List of newly created or newly available files. */ created: FileSystemRequestArgs[]; - /** Just-deleted files. Also needs to trigger and then remove file watchers (I think) */ + /** Names of just-deleted files. */ deleted: string[]; - /** Needs to replace what file watchers would normally listen to */ + /** List of updated files. */ updated: FileSystemRequestArgs[]; } interface FileSystemRequestArgs extends FileRequestArgs { @@ -8328,7 +8330,6 @@ declare namespace ts.server.protocol { /** * Used to specify the script kind of the file explicitly. It could be one of the following: * "TS", "JS", "TSX", "JSX" - * TODO: Not 100% sure this is needed. */ scriptKindName?: ScriptKindName; }