Skip to content

Add propertybag to parsed tsconfig.json file.#8469

Merged
paulvanbrenk merged 4 commits into
masterfrom
tsconfigParsingImprovements
May 6, 2016
Merged

Add propertybag to parsed tsconfig.json file.#8469
paulvanbrenk merged 4 commits into
masterfrom
tsconfigParsingImprovements

Conversation

@paulvanbrenk

Copy link
Copy Markdown
Contributor

No description provided.

This allows consumers of the LS to read properties added to the tsconfig.json
without having to worry about dealing with comments.
@mhegazy

mhegazy commented May 4, 2016

Copy link
Copy Markdown
Contributor

so what is the context for this change? and can we do the same for typingsOptions as well?

Comment thread src/compiler/commandLineParser.ts Outdated
const knownProperties = ["compilerOptions", "typingOptions", "files", "exclude"];

for (const prop in json) {
if (knownProperties.indexOf(prop) >= 0) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ts.indexOf

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@paulvanbrenk

paulvanbrenk commented May 4, 2016

Copy link
Copy Markdown
Contributor Author

@mhegazy This is to make the handling of compileOnSave more reliable in VS. I assume we wanted to make typingOptions a first class citizen in the VS code, since those settings would have to be send back to the language service?

@mhegazy

mhegazy commented May 5, 2016

Copy link
Copy Markdown
Contributor

how about "raw" instead of other, and that has a copy of the tsconfig.json parsed content?

Comment thread src/compiler/types.ts
options: CompilerOptions;
typingOptions?: TypingOptions;
fileNames: string[];
raw?: any;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why it is optional if you always set it?

@paulvanbrenk paulvanbrenk May 6, 2016

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

not set in commandLineParser.parseStrings

@vladima

vladima commented May 6, 2016

Copy link
Copy Markdown
Contributor

👍 after comments are addressed

@mhegazy

mhegazy commented May 6, 2016

Copy link
Copy Markdown
Contributor

👍

@paulvanbrenk paulvanbrenk merged commit fad2574 into master May 6, 2016
@paulvanbrenk paulvanbrenk deleted the tsconfigParsingImprovements branch May 6, 2016 20:33
paulvanbrenk pushed a commit that referenced this pull request Jun 7, 2016
And fix tslint and typescript compiler versions
paulvanbrenk added a commit that referenced this pull request Jun 7, 2016
Merge pull request #8469 from Microsoft/tsconfigParsingImprovements
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
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.

4 participants