@@ -91,7 +91,6 @@ export async function commonRunTestsHandler(controller: vscode.TestController, r
91
91
true
92
92
) ;
93
93
let authority = mapInstance [ 0 ] ;
94
- let query = "" ;
95
94
const mapTestClasses = mapInstance [ 1 ] ;
96
95
const firstClassTestItem = Array . from ( mapTestClasses . values ( ) ) [ 0 ] ;
97
96
const oneUri = firstClassTestItem . uri ;
@@ -132,14 +131,10 @@ export async function commonRunTestsHandler(controller: vscode.TestController, r
132
131
133
132
// When client-side mode is using 'objectscript.conn.docker-compose the first piece of 'authority' is blank,
134
133
if ( authority . startsWith ( ":" ) ) {
135
- const namespace = authority . slice ( 1 ) . toUpperCase ( ) ;
136
- // Arguably this should be `encodeURIComponent(namespace)` but vscode-objectscript extension doesn't decode the ns queryparam
137
- // (see https://github.com/intersystems-community/vscode-objectscript/blob/978dcff2bafad6261919a13e0c69f025d6027c61/src/api/index.ts#L109)
138
- // It presumably gets away with this because %-prefixed namespaces are rare, and the common one %SYS can't be mistaken for an encoded one.
139
- query = `ns=${ namespace } ` ;
140
134
authority = folder ?. name || "" ;
141
135
}
142
- const testRoot = vscode . Uri . from ( { scheme : 'isfs' , authority, path : `/.vscode/UnitTestRoot/${ username } ` , query } ) ;
136
+ // No longer rely on ISFS redirection of /.vscode because since ObjectScript v3.0 it no longer works for client-only workspaces.
137
+ const testRoot = vscode . Uri . from ( { scheme : 'isfs' , authority : authority . split ( ":" ) [ 0 ] , path : `/_vscode/${ namespace } /UnitTestRoot/${ username } ` , query : "csp&ns=%SYS" } ) ;
143
138
try {
144
139
// Limitation of the Atelier API means this can only delete the files, not the folders
145
140
// but zombie folders shouldn't cause problems.
0 commit comments