File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export class CobolResolveSubroutineFeature extends ExtensionFeature {
13
13
activate ( context : vscode . ExtensionContext , capabilities : ServerCapabilities , documentSelector : DocumentSelector ) : void {
14
14
context . subscriptions . push ( this . languageClient . onRequest ( ResolveCobolSubroutineRequestType , ( routineName : string ) : string | undefined => {
15
15
const constantRoutinePaths : Partial < Record < string , string > > = {
16
- 'assert-equals' : `file:${ vscode . workspace . rootPath ?? '/tmp/project' } /deps/assert-equals.cbl`
16
+ 'assert-equals' : `file:${ vscode . workspace . workspaceFolders ?. [ 0 ] ?. uri . fsPath ?? '/tmp/project' } /deps/assert-equals.cbl`
17
17
}
18
18
const contantRoutinePath = constantRoutinePaths [ routineName . toLowerCase ( ) ]
19
19
if ( contantRoutinePath != null ) {
Original file line number Diff line number Diff line change 1
1
import * as vscode from 'vscode'
2
- import * as monaco from 'monaco-editor'
3
2
import { Middleware } from 'monaco-languageclient'
4
3
import type { LanguageClientOptions } from './languageClientOptions'
5
4
@@ -256,9 +255,7 @@ const staticOptions = asLanguageClientOptionsById({
256
255
} ,
257
256
initializationOptions : ( ) => ( {
258
257
configuration : {
259
- uris : [
260
- monaco . Uri . file ( vscode . workspace . rootPath ! ) . toString ( )
261
- ] ,
258
+ uris : vscode . workspace . workspaceFolders ?. map ( folder => folder . uri . toString ( ) ) ,
262
259
phpVersion : 7.3 ,
263
260
fileExtensions : [
264
261
'php'
You can’t perform that action at this time.
0 commit comments