-
Notifications
You must be signed in to change notification settings - Fork 2
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
Templates editing updates #168
Changes from all commits
86122d3
a0df2b6
c655636
5b221df
1dab80e
dfa8b1d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
import { getLocation, JSONPath, Location } from 'jsonc-parser'; | ||
import { posix as path } from 'path'; | ||
import * as vscode from 'vscode'; | ||
import { locationMatches } from './jsoncUtils'; | ||
import { isValidRelpath } from './utils'; | ||
|
||
/** Base class for providing definition support on fields in a json file. */ | ||
|
@@ -76,7 +77,7 @@ export class JsonAttributeRelFilePathDefinitionProvider extends JsonAttributeDef | |
location.previousNode && | ||
location.previousNode.type === 'string' && | ||
location.previousNode.value && | ||
this.patterns.some(location.matches) | ||
this.patterns.some(p => locationMatches(location, p)) | ||
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. Should you pass in 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. Nope, I want the new exact match behavior here (like in almost all the places), since it's the correct thing. |
||
); | ||
} | ||
} |
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.
See the change in jsoncUtils.ts down below for what all these
locationMatches()
changes are about.