-
Notifications
You must be signed in to change notification settings - Fork 222
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
Added Handler for Semantic Tokenization #1328
Merged
TylerLeonhardt
merged 64 commits into
PowerShell:master
from
justinytchen:semantic-token
Jul 30, 2020
Merged
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
2790655
added basic semantic token support
04458e4
removed unnecessary imports
2e46016
removed unnecessary field
b3077cc
minor refactoring changes
f68e4e3
minor refactoring changes
6f28dc5
change tokenize to non async
d960ac7
rename handler
2853580
refactoring + copyright
a55108c
renamed handler file
75b6386
Delete log20200713.txt
justinytchen 01bde39
moved/refactored handler
ea0fab2
added e2e tets
ccf1028
Merge branch 'semantic-token' of https://github.com/justinytchen/Powe…
170fb6b
updated test
4764d2e
remove pragma
5572a16
removed extra spacing
f8411cc
added testing for converting from PS token to semantic tokens
4b7db57
refactored the functions related to converting between tokens
a20241b
refactored ConvertSemanticToken
bebc507
fixed tests
5550780
added more test cases
3fb9abe
fixed spacing
73bda8d
added enum test
4703804
fixed spacing issues
c013b1d
fixed spacing, added note about token array representation
5ab13c4
changed name to PsesSemanticTokensHandler
62566a8
reformatted fields
bafff92
renamed file
5a631dd
used Assert.Collection instead of Assert.Single
7df4e67
modified yml file to fix build
b2e43b1
undo changes in yml file
4a6955f
addressed issues in PR
f4562c0
added basic semantic token support
6264c0b
removed unnecessary imports
ae5a498
removed unnecessary field
9ae83aa
minor refactoring changes
b4d558c
minor refactoring changes
874db6e
change tokenize to non async
bec8bd6
rename handler
9848c71
refactoring + copyright
855790c
renamed handler file
514012c
moved/refactored handler
5294cf4
added e2e tets
9aed66b
Delete log20200713.txt
justinytchen b4024e7
updated test
4908752
remove pragma
2e4f098
removed extra spacing
8f5db93
added testing for converting from PS token to semantic tokens
42714b5
refactored the functions related to converting between tokens
1657fdf
refactored ConvertSemanticToken
ebae357
fixed tests
f109d71
added more test cases
c9b858d
fixed spacing
d8f0a36
added enum test
3fba85f
fixed spacing issues
8592540
fixed spacing, added note about token array representation
d4a86ac
changed name to PsesSemanticTokensHandler
e86c5b8
reformatted fields
6c21195
renamed file
09d632c
used Assert.Collection instead of Assert.Single
7c4b3b7
addressed issues in PR
99c1c0b
Merge branch 'semantic-token' of https://github.com/justinytchen/Powe…
725e8eb
remove unused using
1aedd88
Delete Untitled-1.json
justinytchen 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 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
201 changes: 201 additions & 0 deletions
201
test/PowerShellEditorServices.Test/Language/Untitled-1.json
This file contains 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 |
---|---|---|
@@ -0,0 +1,201 @@ | ||
[ | ||
{ | ||
"id": "33", | ||
"top": "Adam Joseph Copeland", | ||
"right": "El Capitan's home", | ||
"bottom": "Lumberjack's warning call", | ||
"left": "Syzygium aromaticum", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "88", | ||
"top": "Laundry liquid with stuffed bear mascot", | ||
"right": "Wicked; unrefined; vulgar", | ||
"bottom": "Execute perfectly", | ||
"left": "NYC's Times ______", | ||
"rotate": 3 | ||
}, | ||
{ | ||
"id": "621", | ||
"top": "Score a market coup", | ||
"right": "Novosibirsk dweller", | ||
"bottom": "Vehicle end protector", | ||
"left": "Where Hollywood meets Vine, e.g.", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "688", | ||
"top": "\"The only man to have a knot named after him\"", | ||
"right": "Napoleon's tongue", | ||
"bottom": "____ of Tomorrow movie", | ||
"left": "Clear Eyes' Ben ______", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "952", | ||
"top": "Safety restraint for zip line", | ||
"right": "Bovine", | ||
"bottom": "Husky type", | ||
"left": "Microsoft web browser", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "1170", | ||
"top": "The Hindenburg, for one", | ||
"right": "Conical spinning children's toy", | ||
"bottom": "Item with two aglets", | ||
"left": "April Dumaka of DC Comics", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "1452", | ||
"top": "Poseidon's weapon", | ||
"right": "Silly Putty container", | ||
"bottom": "Ice skating pattern", | ||
"left": "Don't have a ___, man!", | ||
"rotate": 3 | ||
}, | ||
{ | ||
"id": "1545", | ||
"top": "MacOS 10.10", | ||
"right": "Trim grass along a sidewalk", | ||
"bottom": "Kind of toast", | ||
"left": "Girl Scout emblem", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "1600", | ||
"top": "Siren's victim", | ||
"right": "Naughty Pupil's Place", | ||
"bottom": "1916 Western starring Fawcett and Mack", | ||
"left": "Garlic unit", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "1657", | ||
"top": "No-cal drink", | ||
"right": "NGC6334 Nebula", | ||
"bottom": "Prop for Sherlock", | ||
"left": "Secret LucasArts island", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "1910", | ||
"top": "Small neighborhood retail shop location", | ||
"right": "Four _______s (CO, UT, AZ and NM)", | ||
"bottom": "My Little Pony magic equivalent", | ||
"left": "Oktoberfest vessel", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "1957", | ||
"top": "Top Delta elite status", | ||
"right": "CBS logo", | ||
"bottom": "Wetzel's product", | ||
"left": "Banana aficionado" | ||
}, | ||
{ | ||
"id": "2195", | ||
"top": "Relationship of mutual affection", | ||
"right": "Military installation", | ||
"bottom": "Get close and cozy", | ||
"left": "Climber", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "2262", | ||
"top": "Clover shape", | ||
"right": "Cassette ____", | ||
"bottom": "Songwriter Neil", | ||
"left": "Sovereign's headpiece", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "2311", | ||
"top": "Tied over a tongue", | ||
"right": "Ringling Bros' Big ___", | ||
"bottom": "Rum brand Jerry", | ||
"left": "Woody's occupation", | ||
"rotate": 3 | ||
}, | ||
{ | ||
"id": "2603", | ||
"top": "Rook's starting location", | ||
"right": "Your safe place in a boxing ring", | ||
"bottom": "Ann _____, Michigan", | ||
"left": "Dressing, leather and sausage type", | ||
"rotate": 0 | ||
}, | ||
{ | ||
"id": "2694", | ||
"top": "Olive Garden cuisine", | ||
"right": "Coral formation", | ||
"bottom": "Wife of Osiris", | ||
"left": "Cutting surface of a blade", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "2971", | ||
"top": "Sandal brand", | ||
"right": "McClellan's partner at CLD", | ||
"bottom": "Type of bed", | ||
"left": "______ Smith Apple", | ||
"rotate": 2 | ||
}, | ||
{ | ||
"id": "2995", | ||
"top": "Hammer's target", | ||
"right": "Acid neutralizer", | ||
"bottom": "Amusement park car type", | ||
"left": "Infinity symbol", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "3088", | ||
"top": "Early bird?", | ||
"right": "Storm center", | ||
"bottom": "Corner to corner measure", | ||
"left": "Type of mathematical root", | ||
"rotate": 2 | ||
}, | ||
{ | ||
"id": "3533", | ||
"top": "Mario's green Warp ____", | ||
"right": "Dallas player", | ||
"bottom": "Pitbull/Ke$ha collaboration", | ||
"left": "Dental restoration", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "3592", | ||
"top": "Seattle Slew achievement", | ||
"right": "It hitches a horse to a cart", | ||
"bottom": "Slight competitive advantage", | ||
"left": "Egyptian goddess of fertility and magic", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "3637", | ||
"top": "TV measurement direction", | ||
"right": "Package sealer", | ||
"bottom": "@sleepdiplomat", | ||
"left": "WVU mascot", | ||
"rotate": 3 | ||
}, | ||
{ | ||
"id": "4270", | ||
"top": "Hale telescope site", | ||
"right": "_____ Day tree celebration", | ||
"bottom": "Away team part of baseball inning", | ||
"left": "Rock's Led", | ||
"rotate": 1 | ||
}, | ||
{ | ||
"id": "4616", | ||
"top": "Knot for Human Consumption?", | ||
"right": "Orbit competitor", | ||
"bottom": "Miguel Cabrera batting honor in 2012", | ||
"left": "Mom's mom", | ||
"rotate": 0 | ||
} | ||
] |
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.
What's this?