Skip to content
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
merged 64 commits into from
Jul 30, 2020
Merged
Show file tree
Hide file tree
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
Jul 16, 2020
04458e4
removed unnecessary imports
Jul 16, 2020
2e46016
removed unnecessary field
Jul 16, 2020
b3077cc
minor refactoring changes
Jul 17, 2020
f68e4e3
minor refactoring changes
Jul 17, 2020
6f28dc5
change tokenize to non async
Jul 17, 2020
d960ac7
rename handler
Jul 17, 2020
2853580
refactoring + copyright
Jul 17, 2020
a55108c
renamed handler file
Jul 17, 2020
75b6386
Delete log20200713.txt
justinytchen Jul 17, 2020
01bde39
moved/refactored handler
Jul 17, 2020
ea0fab2
added e2e tets
Jul 17, 2020
ccf1028
Merge branch 'semantic-token' of https://github.com/justinytchen/Powe…
Jul 17, 2020
170fb6b
updated test
Jul 20, 2020
4764d2e
remove pragma
Jul 20, 2020
5572a16
removed extra spacing
Jul 21, 2020
f8411cc
added testing for converting from PS token to semantic tokens
Jul 21, 2020
4b7db57
refactored the functions related to converting between tokens
Jul 21, 2020
a20241b
refactored ConvertSemanticToken
Jul 21, 2020
bebc507
fixed tests
Jul 22, 2020
5550780
added more test cases
Jul 22, 2020
3fb9abe
fixed spacing
Jul 23, 2020
73bda8d
added enum test
Jul 23, 2020
4703804
fixed spacing issues
Jul 23, 2020
c013b1d
fixed spacing, added note about token array representation
Jul 23, 2020
5ab13c4
changed name to PsesSemanticTokensHandler
Jul 23, 2020
62566a8
reformatted fields
Jul 24, 2020
bafff92
renamed file
Jul 24, 2020
5a631dd
used Assert.Collection instead of Assert.Single
Jul 24, 2020
7df4e67
modified yml file to fix build
Jul 27, 2020
b2e43b1
undo changes in yml file
Jul 28, 2020
4a6955f
addressed issues in PR
Jul 30, 2020
f4562c0
added basic semantic token support
Jul 16, 2020
6264c0b
removed unnecessary imports
Jul 16, 2020
ae5a498
removed unnecessary field
Jul 16, 2020
9ae83aa
minor refactoring changes
Jul 17, 2020
b4d558c
minor refactoring changes
Jul 17, 2020
874db6e
change tokenize to non async
Jul 17, 2020
bec8bd6
rename handler
Jul 17, 2020
9848c71
refactoring + copyright
Jul 17, 2020
855790c
renamed handler file
Jul 17, 2020
514012c
moved/refactored handler
Jul 17, 2020
5294cf4
added e2e tets
Jul 17, 2020
9aed66b
Delete log20200713.txt
justinytchen Jul 17, 2020
b4024e7
updated test
Jul 20, 2020
4908752
remove pragma
Jul 20, 2020
2e4f098
removed extra spacing
Jul 21, 2020
8f5db93
added testing for converting from PS token to semantic tokens
Jul 21, 2020
42714b5
refactored the functions related to converting between tokens
Jul 21, 2020
1657fdf
refactored ConvertSemanticToken
Jul 21, 2020
ebae357
fixed tests
Jul 22, 2020
f109d71
added more test cases
Jul 22, 2020
c9b858d
fixed spacing
Jul 23, 2020
d8f0a36
added enum test
Jul 23, 2020
3fba85f
fixed spacing issues
Jul 23, 2020
8592540
fixed spacing, added note about token array representation
Jul 23, 2020
d4a86ac
changed name to PsesSemanticTokensHandler
Jul 23, 2020
e86c5b8
reformatted fields
Jul 24, 2020
6c21195
renamed file
Jul 24, 2020
09d632c
used Assert.Collection instead of Assert.Single
Jul 24, 2020
7c4b3b7
addressed issues in PR
Jul 30, 2020
99c1c0b
Merge branch 'semantic-token' of https://github.com/justinytchen/Powe…
Jul 30, 2020
725e8eb
remove unused using
Jul 30, 2020
1aedd88
Delete Untitled-1.json
justinytchen Jul 30, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
using Xunit;
using Xunit.Abstractions;
using Range = OmniSharp.Extensions.LanguageServer.Protocol.Models.Range;
using OmniSharp.Extensions.LanguageServer.Protocol.Document.Proposals;
using Microsoft.PowerShell.EditorServices.Utility;

namespace PowerShellEditorServices.Test.E2E
{
Expand Down
201 changes: 201 additions & 0 deletions test/PowerShellEditorServices.Test/Language/Untitled-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
[
Copy link
Member

Choose a reason for hiding this comment

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

What's this?

{
"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
}
]