@@ -112,54 +112,6 @@ suite("Debugger", () => {
112
112
context . subscriptions . forEach ( ( subscription ) => subscription . dispose ( ) ) ;
113
113
} ) ;
114
114
115
- test ( "Resolve configuration injects BUNDLE_GEMFILE if there's a custom bundle" , async ( ) => {
116
- const tmpPath = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , "ruby-lsp-test-" ) ) ;
117
- fs . mkdirSync ( path . join ( tmpPath , ".ruby-lsp" ) ) ;
118
- fs . writeFileSync ( path . join ( tmpPath , ".ruby-lsp" , "Gemfile" ) , "hello!" ) ;
119
-
120
- const context = { subscriptions : [ ] } as unknown as vscode . ExtensionContext ;
121
- const ruby = { env : { bogus : "hello!" } } as unknown as Ruby ;
122
- const workspaceFolder = {
123
- name : "fake" ,
124
- uri : vscode . Uri . file ( tmpPath ) ,
125
- index : 0 ,
126
- } ;
127
- const debug = new Debugger ( context , ( ) => {
128
- return {
129
- ruby,
130
- workspaceFolder,
131
- } as Workspace ;
132
- } ) ;
133
- const configs : any = await debug . resolveDebugConfiguration ! (
134
- workspaceFolder ,
135
- {
136
- type : "ruby_lsp" ,
137
- name : "Debug" ,
138
- request : "launch" ,
139
- // eslint-disable-next-line no-template-curly-in-string
140
- program : "ruby ${file}" ,
141
- env : { parallel : "1" } ,
142
- } ,
143
- ) ;
144
-
145
- assert . deepEqual (
146
- {
147
- parallel : "1" ,
148
- ...ruby . env ,
149
- BUNDLE_GEMFILE : vscode . Uri . joinPath (
150
- vscode . Uri . file ( tmpPath ) ,
151
- ".ruby-lsp" ,
152
- "Gemfile" ,
153
- ) . fsPath ,
154
- } ,
155
- configs . env ,
156
- ) ;
157
-
158
- debug . dispose ( ) ;
159
- context . subscriptions . forEach ( ( subscription ) => subscription . dispose ( ) ) ;
160
- fs . rmSync ( tmpPath , { recursive : true , force : true } ) ;
161
- } ) ;
162
-
163
115
test ( "Launching the debugger" , async ( ) => {
164
116
// eslint-disable-next-line no-process-env
165
117
const manager = process . env . CI
0 commit comments