@@ -230,7 +230,7 @@ func testManifest(t *testing.T, factory storageFactory) {
230230 name : "MissingVersion" ,
231231 error : fs .ErrNotExist ,
232232 extension : testutil .Extensions [0 ],
233- version : "some-nonexistent- version" ,
233+ version : "some-nonexistent@ version" ,
234234 },
235235 {
236236 name : "MissingExtension" ,
@@ -275,7 +275,7 @@ func testManifest(t *testing.T, factory storageFactory) {
275275 // manifest since it is not on the actual manifest on disk.
276276 expected .Assets .Asset = append (expected .Assets .Asset , storage.VSIXAsset {
277277 Type : storage .VSIXAssetType ,
278- Path : fmt .Sprintf ("%s.%s- %s.vsix" , test .extension .Publisher , test .extension .Name , version ),
278+ Path : fmt .Sprintf ("%s.%s@ %s.vsix" , test .extension .Publisher , test .extension .Name , version ),
279279 Addressable : "true" ,
280280 })
281281 require .NoError (t , err )
@@ -335,7 +335,7 @@ func testWalkExtensions(t *testing.T, factory storageFactory) {
335335 // manifest since it is not on the actual manifest on disk.
336336 manifest .Assets .Asset = append (manifest .Assets .Asset , storage.VSIXAsset {
337337 Type : storage .VSIXAssetType ,
338- Path : fmt .Sprintf ("%s.%s- %s.vsix" , ext .Publisher , ext .Name , ext .LatestVersion ),
338+ Path : fmt .Sprintf ("%s.%s@ %s.vsix" , ext .Publisher , ext .Name , ext .LatestVersion ),
339339 Addressable : "true" ,
340340 })
341341 expected = append (expected , extension {
@@ -734,7 +734,7 @@ func testAddExtension(t *testing.T, factory storageFactory) {
734734 // Put a directory in the way of the vsix.
735735 f := factory (t )
736736 ext := testutil .Extensions [3 ]
737- vsixName := fmt .Sprintf ("%s.%s- %s.vsix" , ext .Publisher , ext .Name , ext .LatestVersion )
737+ vsixName := fmt .Sprintf ("%s.%s@ %s.vsix" , ext .Publisher , ext .Name , ext .LatestVersion )
738738 f .write ([]byte ("foo" ), ext .Publisher , ext .Name , ext .LatestVersion , vsixName , "foo" )
739739
740740 for _ , test := range tests {
@@ -909,7 +909,7 @@ func TestExtensionID(t *testing.T) {
909909 }{
910910 {
911911 name : "OK" ,
912- expected : "foo.bar- test" ,
912+ expected : "foo.bar@ test" ,
913913 manifest : & storage.VSIXManifest {
914914 Metadata : storage.VSIXMetadata {
915915 Identity : storage.VSIXIdentity {
@@ -948,12 +948,12 @@ func TestParseExtensionID(t *testing.T) {
948948 {
949949 name : "OK" ,
950950 expected : []string {"foo" , "bar" , "test" },
951- id : "foo.bar- test" ,
951+ id : "foo.bar@ test" ,
952952 },
953953 {
954954 name : "VersionWithDots" ,
955955 expected : []string {"foo" , "bar" , "test.test" },
956- id : "foo.bar- test.test" ,
956+ id : "foo.bar@ test.test" ,
957957 },
958958 {
959959 name : "EmptyID" ,
@@ -963,12 +963,12 @@ func TestParseExtensionID(t *testing.T) {
963963 {
964964 name : "MissingPublisher" ,
965965 error : true ,
966- id : ".qux- bar" ,
966+ id : ".qux@ bar" ,
967967 },
968968 {
969969 name : "MissingExtension" ,
970970 error : true ,
971- id : "foo.- baz" ,
971+ id : "foo.@ baz" ,
972972 },
973973 {
974974 name : "MissingExtensionAndVersion" ,
@@ -983,7 +983,7 @@ func TestParseExtensionID(t *testing.T) {
983983 {
984984 name : "InvalidID" ,
985985 error : true ,
986- id : "publisher- version" ,
986+ id : "publisher@ version" ,
987987 },
988988 }
989989
0 commit comments