Lines Matching +full:cancel +full:- +full:in +full:- +full:progress

1 //===--- Protocol.h - Language Server Protocol Implementation ---*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 // https://github.com/Microsoft/language-server-protocol/blob/main/protocol.md
19 // tests, and is not generally machine-readable.
21 //===----------------------------------------------------------------------===//
40 // from the LLVM coding standard. To avoid the clang-tidy warnings, we're
42 // NOLINTBEGIN(readability-identifier-naming)
49 ParseError = -32700,
50 InvalidRequest = -32600,
51 MethodNotFound = -32601,
52 InvalidParams = -32602,
53 InternalError = -32603,
55 ServerNotInitialized = -32002,
56 UnknownErrorCode = -32001,
59 RequestCancelled = -32800,
60 ContentModified = -32801,
83 // URI in "file" scheme for a file.
89 /// File paths in URIForFile can come from index or local AST. Path from
94 /// Files can be referred to by several paths (e.g. in the presence of links).
142 /// in the editor (the server has not received an open notification before)
157 /// Line position in a document (zero-based).
160 /// Character offset on a line in a document (zero-based).
161 /// WARNING: this is in UTF-16 codepoints, not bytes or characters!
162 /// Use the functions in SourceCode.h to construct/interpret Positions.
234 /// clangd extension: contains the name of the function or class in which the
265 /// A human-readable string describing the actual change. The string
266 /// is rendered prominent in the user interface.
273 /// A human-readable string which is rendered less prominent in
419 // https://github.com/Microsoft/language-server-protocol/issues/344
422 // Determines the encoding used to measure offsets and lengths of source in LSP.
426 // Length counts code units of UTF-16 encoded text. (Standard LSP behavior).
428 // Length counts bytes of UTF-8 encoded text. (Clangd extension).
430 // Length counts codepoints in unicode text. (Clangd extension).
437 // Describes the content type that a client supports in various result literals
492 /// properties in a FoldingRange.
522 /// We support the textDocument/semanticTokens request in any case.
526 /// https://github.com/microsoft/vscode-languageserver-node/pull/367
542 /// The client supports progress notifications.
546 /// The client supports implicit $/progress work-done progress streams,
552 /// Whether the client claims to cancel stale requests.
553 /// general.staleRequestSupport.cancel
574 /// Clangd extension that's used in the 'compilationDatabaseChanges' in
575 /// workspace/didChangeConfiguration to record updates to the in-memory
588 // Changes to the in-memory compilation database.
603 // Additional flags to be included in the "fallback command" used when
624 /// @deprecated in favour of rootUri.
643 /// User-provided initialization options.
649 /// The token to be used to report progress.
655 /// The progress token provided by the client or server.
658 /// The progress data.
664 /// To start progress reporting a $/progress notification with the following
667 /// Mandatory title of the progress operation. Used to briefly inform about
673 /// Controls if a cancel button should show to allow the user to cancel the
674 /// long-running operation. Clients that don't support cancellation are
678 /// Optional progress percentage to display (value 100 is considered 100%).
679 /// If not provided infinite progress is assumed and clients are allowed
680 /// to ignore the `percentage` value in subsequent in report notifications.
685 /// Clangd implementation note: we only send nonzero percentages in
691 /// Reporting progress is done using the following payload.
693 /// Mandatory title of the progress operation. Used to briefly inform about
699 /// Controls enablement state of a cancel button. This property is only valid
700 /// if a cancel button got requested in the `WorkDoneProgressStart` payload.
706 /// Optional, more detailed associated progress message. Contains
710 /// If unset, the previous progress message (if any) is still valid.
713 /// Optional progress percentage to display (value 100 is considered 100%).
714 /// If not provided infinite progress is assumed and clients are allowed
715 /// to ignore the `percentage` value in subsequent in report notifications.
723 /// Signals the end of progress reporting.
744 /// client to display a particular message in the user interface.
844 // In general, we use a clang-format style detected from common mechanisms
845 // (.clang-format files and the -fallback-style flag).
847 // - the protocol makes FormatOptions mandatory, so many clients set them to
849 // - we also format in other places, where FormatOptions aren't available.
882 // The text document to find symbols in.
890 /// diagnostics, e.g when duplicating a symbol in a scope.
934 /// A human-readable string describing the source of this
944 /// An array of related diagnostic information, e.g. when symbol-names within
999 /// The document in which the command was invoked.
1023 /// A map of change annotations that can be referenced in
1049 // This is `arguments?: []any` in LSP.
1061 /// A code action represents a change that can be performed in code, e.g. to fix
1067 /// A short, human-readable, title for this code action.
1097 /// that appear in a document. Document symbols can be hierarchical and they
1115 /// determine if the clients cursor is inside the symbol to reveal in the
1116 /// symbol in the UI.
1145 /// This excludes the fuzzy-matching score between `name` and the query.
1146 /// (Specifically, the last ::-separated component).
1147 /// This can be used to re-rank results as the user types, using client-side
1148 /// fuzzy-matching (that score should be multiplied with this one).
1164 /// Unlike SymbolID, it is variable-length and somewhat human-readable.
1221 /// Completion was re-triggered as the current completion list is incomplete.
1259 /// Defines whether the insert text in a completion item should be interpreted
1270 /// typing in one will update others too.
1303 /// A human-readable string with additional information about this item, like
1307 /// A human-readable string that represents a doc-comment.
1342 /// This excludes the fuzzy-match between `filterText` and the partial word.
1343 /// This can be used to re-rank results as the user types, using client-side
1344 /// fuzzy-matching (that score should be multiplied with this one).
1353 // data?: any - A data entry field that is preserved on a completion item
1365 /// Represents a collection of completion items to be presented in the editor.
1367 /// The list is not complete. Further typing should result in recomputing the
1384 /// Offsets are computed by lspLength(), which counts UTF-16 code units by
1423 /// ^-argListStart ^-cursor
1424 /// This is a clangd-specific extension, it is only available via C++ API and
1446 /// Placeholder text to use in the editor if non-empty.
1527 /// type hierarchy in the server, helping improve the performance on resolving
1571 /// in the context of call hierarchy.
1598 /// hierarchy item in an incomingCalls or outgoingCalls request.
1641 /// A parameter literal used in inlay hint requests.
1658 /// An example of a type hint is a hint in this position:
1665 /// An example of a parameter hint is a hint in this position:
1680 /// An example of a decl name hint in this position:
1683 /// Uses comment-like syntax like "// func".
1699 /// in a chain of function calls.
1757 /// The kind of this hint. Can be omitted in which case the client should fall
1800 /// Clangd extension: indicates the current state of the file in clangd,
1805 /// The human-readable string presents the current state of the file, can be
1806 /// shown in the UI (e.g. status bar).
1812 /// Specifies a single semantic token in the document.
1823 /// will be looked up in `SemanticTokensLegend.tokenTypes`
1825 /// each set bit will be looked up in `SemanticTokensLegend.tokenModifiers`
1833 // the client will include the result id in the next semantic token request.
1852 /// Requests the changes in semantic tokens since a previous response.
1884 /// Parameters for the inactive regions (server-side) push notification.
1925 /// A range in a text document that links to an internal or external resource,
1937 // data?: any - A data entry field that is preserved on a document link
1952 // per-line-folding editors.
1974 /// for memory usage of whole subtree or only that specific node in bytes. All
2001 /// The highest-level node that entirely contains the range will be returned.
2020 /// A one-line dump of detailed information about the node.
2022 /// It is similar to the output from `clang -Xclang -ast-dump`.
2042 static clang::clangd::Position Tomb{-1, -1};
2047 static clang::clangd::Position Tomb{-2, -2};
2069 // NOLINTEND(readability-identifier-naming)