Skip to content

Class methods list parsing issue #7646

@MKras

Description

@MKras

Bug type: Language Service

Describe the bug

  • OS and Version: Windows 10
  • VS Code Version: 1.56.2
  • C/C++ Extension Version: 1.4.0
    Sometimes with some cpp files OUTLINE sub-item displays 'Loading document symbols for '. Forever.
    At the same time I get
[exthost] [error] Canceled: Canceled
	at FoldingRangeProvider.<anonymous> (......\.vscode\extensions\ms-vscode.cpptools-1.4.0\dist\main.js:35700:23)
	at Generator.next (<anonymous>)
	at fulfilled (........\.vscode\extensions\ms-vscode.cpptools-1.4.0\dist\main.js:35674:58)
	at runMicrotasks (<anonymous>)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at processImmediate (internal/timers.js:434:9)

The mentioned line number leads to the throw:

    provideFoldingRanges(document, context, token) {
        return __awaiter(this, void 0, void 0, function* () {
            const id = ++client_1.DefaultClient.abortRequestId;
            const params = {
                id: id,
                uri: document.uri.toString()
            };
            yield this.client.awaitUntilLanguageClientReady();
            token.onCancellationRequested(e => this.client.abortRequest(id));
            const ranges = yield this.client.languageClient.sendRequest(client_1.GetFoldingRangesRequest, params);
            if (ranges.canceled) {
                throw new vscode.CancellationError();
            }
exports.GetFoldingRangesRequest = new vscode_languageclient_1.RequestType('cpptools/getFoldingRanges');

Is It a bug or should/can I increase the FoldingRanges any where?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions