Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add use of queryTranslationUnitSource to determine if custom configuration can be skipped#3393

Merged
Colengms merged 6 commits into
mastermicrosoft/vscode-cpptools:masterfrom
dev/coleng/QueryTranslationUnitSourceRequestmicrosoft/vscode-cpptools:dev/coleng/QueryTranslationUnitSourceRequestCopy head branch name to clipboard
Apr 3, 2019
Merged

Add use of queryTranslationUnitSource to determine if custom configuration can be skipped#3393
Colengms merged 6 commits into
mastermicrosoft/vscode-cpptools:masterfrom
dev/coleng/QueryTranslationUnitSourceRequestmicrosoft/vscode-cpptools:dev/coleng/QueryTranslationUnitSourceRequestCopy head branch name to clipboard

Conversation

@Colengms

@Colengms Colengms commented Apr 2, 2019

Copy link
Copy Markdown
Contributor

Add call in provideCustomConfiguration to new QueryTranslationUnitSourceRequest. If a system header or there is already a TU loaded, skip custom configuration.

@Colengms Colengms requested a review from a team April 2, 2019 01:08
@bobbrow

bobbrow commented Apr 2, 2019

Copy link
Copy Markdown
Member
                this.sendCustomConfigurations(configs, true);

in the header case, we should send the configs for both header and source files.


Refers to: Extension/src/LanguageServer/client.ts:666 in e5a3c39. [](commit_id = e5a3c39, deletion_comment = False)

Comment thread Extension/src/LanguageServer/client.ts Outdated
Comment thread Extension/src/LanguageServer/client.ts Outdated
@Colengms Colengms requested a review from bobbrow April 3, 2019 00:44

@bobbrow bobbrow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should wait until the language server change is ready before we commit this, but this change is basically ready to go.

Comment thread Extension/src/LanguageServer/client.ts Outdated
}

public async provideCustomConfiguration(document: vscode.TextDocument): Promise<void> {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: remove empty newline here

@Colengms Colengms merged commit 9f842ac into master Apr 3, 2019
@Colengms Colengms deleted the dev/coleng/QueryTranslationUnitSourceRequest branch April 4, 2019 21:13
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.