2 /* --------------------------------------------------------------------------------------------
3 * Copyright (c) Microsoft Corporation. All rights reserved.
4 * Licensed under the MIT License. See License.txt in the project root for license information.
5 * ------------------------------------------------------------------------------------------ */
6 Object.defineProperty(exports, "__esModule", { value: true });
7 exports.WillDeleteFilesRequest = exports.DidDeleteFilesNotification = exports.DidRenameFilesNotification = exports.WillRenameFilesRequest = exports.DidCreateFilesNotification = exports.WillCreateFilesRequest = exports.FileOperationPatternKind = void 0;
8 const messages_1 = require("./messages");
10 * A pattern kind describing if a glob pattern matches a file a folder or
15 var FileOperationPatternKind;
16 (function (FileOperationPatternKind) {
18 * The pattern matches a file only.
20 FileOperationPatternKind.file = 'file';
22 * The pattern matches a folder only.
24 FileOperationPatternKind.folder = 'folder';
25 })(FileOperationPatternKind = exports.FileOperationPatternKind || (exports.FileOperationPatternKind = {}));
27 * The will create files request is sent from the client to the server before files are actually
28 * created as long as the creation is triggered from within the client.
32 var WillCreateFilesRequest;
33 (function (WillCreateFilesRequest) {
34 WillCreateFilesRequest.method = 'workspace/willCreateFiles';
35 WillCreateFilesRequest.type = new messages_1.ProtocolRequestType(WillCreateFilesRequest.method);
36 })(WillCreateFilesRequest = exports.WillCreateFilesRequest || (exports.WillCreateFilesRequest = {}));
38 * The did create files notification is sent from the client to the server when
39 * files were created from within the client.
43 var DidCreateFilesNotification;
44 (function (DidCreateFilesNotification) {
45 DidCreateFilesNotification.method = 'workspace/didCreateFiles';
46 DidCreateFilesNotification.type = new messages_1.ProtocolNotificationType(DidCreateFilesNotification.method);
47 })(DidCreateFilesNotification = exports.DidCreateFilesNotification || (exports.DidCreateFilesNotification = {}));
49 * The will rename files request is sent from the client to the server before files are actually
50 * renamed as long as the rename is triggered from within the client.
54 var WillRenameFilesRequest;
55 (function (WillRenameFilesRequest) {
56 WillRenameFilesRequest.method = 'workspace/willRenameFiles';
57 WillRenameFilesRequest.type = new messages_1.ProtocolRequestType(WillRenameFilesRequest.method);
58 })(WillRenameFilesRequest = exports.WillRenameFilesRequest || (exports.WillRenameFilesRequest = {}));
60 * The did rename files notification is sent from the client to the server when
61 * files were renamed from within the client.
65 var DidRenameFilesNotification;
66 (function (DidRenameFilesNotification) {
67 DidRenameFilesNotification.method = 'workspace/didRenameFiles';
68 DidRenameFilesNotification.type = new messages_1.ProtocolNotificationType(DidRenameFilesNotification.method);
69 })(DidRenameFilesNotification = exports.DidRenameFilesNotification || (exports.DidRenameFilesNotification = {}));
71 * The will delete files request is sent from the client to the server before files are actually
72 * deleted as long as the deletion is triggered from within the client.
76 var DidDeleteFilesNotification;
77 (function (DidDeleteFilesNotification) {
78 DidDeleteFilesNotification.method = 'workspace/didDeleteFiles';
79 DidDeleteFilesNotification.type = new messages_1.ProtocolNotificationType(DidDeleteFilesNotification.method);
80 })(DidDeleteFilesNotification = exports.DidDeleteFilesNotification || (exports.DidDeleteFilesNotification = {}));
82 * The did delete files notification is sent from the client to the server when
83 * files were deleted from within the client.
87 var WillDeleteFilesRequest;
88 (function (WillDeleteFilesRequest) {
89 WillDeleteFilesRequest.method = 'workspace/willDeleteFiles';
90 WillDeleteFilesRequest.type = new messages_1.ProtocolRequestType(WillDeleteFilesRequest.method);
91 })(WillDeleteFilesRequest = exports.WillDeleteFilesRequest || (exports.WillDeleteFilesRequest = {}));
92 //# sourceMappingURL=protocol.fileOperations.js.map