-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(typescript-estree): fix persisted parse for relative paths #1424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
967114b
fix(typescript-estree): fix persisted parse for vue files
armano2 72f7542
Merge branch 'master' into 1303-fix
armano2 8bb0ee3
Merge remote-tracking branch 'upstream/master' into 1303-fix
armano2 1ff7eb2
test(typescript-estree): relative path and persisted parse
armano2 6544f0b
fix(typescript-estree): relative path and persisted parse
armano2 8edb8b8
fix(typescript-estree): ensure that passed path in parser is absolute
armano2 c245a20
chore(typescript-estree): lint fix
armano2 2568b9f
Merge branch 'master' into 1303-fix
armano2 b182332
test(typescript-estree): correct code in parseFile
armano2 d4704e5
fix(typescript-estree): correct vscode issue for custom extensions
armano2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ import { createSourceFile } from './create-program/createSourceFile'; | |
import { Extra, TSESTreeOptions, ParserServices } from './parser-options'; | ||
import { getFirstSemanticOrSyntacticError } from './semantic-or-syntactic-errors'; | ||
import { TSESTree } from './ts-estree'; | ||
import { ensureAbsolutePath } from './create-program/shared'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i don't like this, maybe i should move it somewhere else |
||
|
||
/** | ||
* This needs to be kept in sync with the top-level README.md in the | ||
|
@@ -145,6 +146,7 @@ function applyParserOptionsToExtra(options: TSESTreeOptions): void { | |
} else { | ||
extra.filePath = getFileName(extra); | ||
} | ||
extra.filePath = ensureAbsolutePath(extra.filePath, extra); | ||
|
||
/** | ||
* The JSX AST changed the node type for string literals | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removal of his line fixes issue with vscode, but i'm unable to test this