@@ -199,7 +199,7 @@ func TestValidateSettings_Complete(t *testing.T) {
199199 "remote.SSH.serverPickPortsFromRange": {"test-conn": "29500-29505"},
200200 "remote.SSH.remotePlatform": {"test-conn": "linux"},
201201 "remote.SSH.remoteServerListenOnSocket": true,
202- "remote.SSH.defaultExtensions": ["ms-python.python", "ms-toolsai.jupyter"]
202+ "remote.SSH.defaultExtensions": ["ms-python.python", "ms-toolsai.jupyter", "databricks.databricks" ]
203203 }` )
204204
205205 missing := validateSettings (v , "test-conn" )
@@ -213,7 +213,7 @@ func TestValidateSettings_Missing(t *testing.T) {
213213 assert .False (t , missing .isEmpty ())
214214 assert .True (t , missing .portRange )
215215 assert .True (t , missing .platform )
216- assert .Equal (t , []string {"ms-python.python" , "ms-toolsai.jupyter" }, missing .extensions )
216+ assert .Equal (t , []string {"ms-python.python" , "ms-toolsai.jupyter" , "databricks.databricks" }, missing .extensions )
217217}
218218
219219func TestValidateSettings_IncorrectValues (t * testing.T ) {
@@ -227,15 +227,15 @@ func TestValidateSettings_IncorrectValues(t *testing.T) {
227227 assert .False (t , missing .isEmpty ())
228228 assert .True (t , missing .portRange )
229229 assert .True (t , missing .platform )
230- assert .Equal (t , []string {"ms-toolsai.jupyter" }, missing .extensions )
230+ assert .Equal (t , []string {"ms-toolsai.jupyter" , "databricks.databricks" }, missing .extensions )
231231}
232232
233233func TestValidateSettings_DuplicateExtensionsNotReported (t * testing.T ) {
234234 v := parseTestValue (t , `{
235235 "remote.SSH.serverPickPortsFromRange": {"test-conn": "29500-29505"},
236236 "remote.SSH.remotePlatform": {"test-conn": "linux"},
237237 "remote.SSH.remoteServerListenOnSocket": true,
238- "remote.SSH.defaultExtensions": ["ms-python.python", "ms-python.python", "ms-toolsai.jupyter"]
238+ "remote.SSH.defaultExtensions": ["ms-python.python", "ms-python.python", "ms-toolsai.jupyter", "databricks.databricks" ]
239239 }` )
240240
241241 missing := validateSettings (v , "test-conn" )
@@ -246,7 +246,7 @@ func TestValidateSettings_MissingConnection(t *testing.T) {
246246 v := parseTestValue (t , `{
247247 "remote.SSH.serverPickPortsFromRange": {"other-conn": "29500-29505"},
248248 "remote.SSH.remotePlatform": {"other-conn": "linux"},
249- "remote.SSH.defaultExtensions": ["ms-python.python", "ms-toolsai.jupyter"]
249+ "remote.SSH.defaultExtensions": ["ms-python.python", "ms-toolsai.jupyter", "databricks.databricks" ]
250250 }` )
251251
252252 // Validating for a different connection should show port and platform as missing
@@ -273,7 +273,7 @@ func TestUpdateSettings_PreserveExistingConnections(t *testing.T) {
273273 missing := & missingSettings {
274274 portRange : true ,
275275 platform : true ,
276- extensions : []string {"ms-python.python" , "ms-toolsai.jupyter" },
276+ extensions : []string {"ms-python.python" , "ms-toolsai.jupyter" , "databricks.databricks" },
277277 }
278278
279279 err := updateSettings (& v , "conn-c" , missing )
@@ -307,10 +307,11 @@ func TestUpdateSettings_PreserveExistingConnections(t *testing.T) {
307307
308308 // Check that extensions were merged
309309 exts := findStringSlice (t , v , jsonPtr (defaultExtensionsKey ))
310- assert .Len (t , exts , 3 )
310+ assert .Len (t , exts , 4 )
311311 assert .Contains (t , exts , "other.extension" )
312312 assert .Contains (t , exts , "ms-python.python" )
313313 assert .Contains (t , exts , "ms-toolsai.jupyter" )
314+ assert .Contains (t , exts , "databricks.databricks" )
314315}
315316
316317func TestUpdateSettings_NewConnection (t * testing.T ) {
@@ -319,7 +320,7 @@ func TestUpdateSettings_NewConnection(t *testing.T) {
319320 missing := & missingSettings {
320321 portRange : true ,
321322 platform : true ,
322- extensions : []string {"ms-python.python" , "ms-toolsai.jupyter" },
323+ extensions : []string {"ms-python.python" , "ms-toolsai.jupyter" , "databricks.databricks" },
323324 }
324325
325326 err := updateSettings (& v , "new-conn" , missing )
@@ -334,9 +335,10 @@ func TestUpdateSettings_NewConnection(t *testing.T) {
334335 assert .Equal (t , "linux" , val )
335336
336337 exts := findStringSlice (t , v , jsonPtr (defaultExtensionsKey ))
337- assert .Len (t , exts , 2 )
338+ assert .Len (t , exts , 3 )
338339 assert .Contains (t , exts , "ms-python.python" )
339340 assert .Contains (t , exts , "ms-toolsai.jupyter" )
341+ assert .Contains (t , exts , "databricks.databricks" )
340342}
341343
342344func TestUpdateSettings_GlobalExtensions (t * testing.T ) {
@@ -544,6 +546,7 @@ func TestGetManualInstructions_VSCode(t *testing.T) {
544546 assert .Contains (t , instructions , "linux" )
545547 assert .Contains (t , instructions , "ms-python.python" )
546548 assert .Contains (t , instructions , "ms-toolsai.jupyter" )
549+ assert .Contains (t , instructions , "databricks.databricks" )
547550 assert .Contains (t , instructions , "remote.SSH.serverPickPortsFromRange" )
548551 assert .Contains (t , instructions , "remote.SSH.remotePlatform" )
549552 assert .Contains (t , instructions , "remote.SSH.defaultExtensions" )
0 commit comments