File tree Expand file tree Collapse file tree
packages/schema/src/language-server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export class ZModelWorkspaceManager extends DefaultWorkspaceManager {
2424 // in the project's node_modules
2525 let installedStdlibPath : string | undefined ;
2626 for ( const folder of _folders ) {
27- const folderPath = URI . parse ( folder . uri ) . fsPath ;
27+ const folderPath = this . getRootFolder ( folder ) . fsPath ;
2828 try {
2929 // Try to resolve zenstack from the workspace folder
3030 const languagePackagePath = require . resolve ( 'zenstack/package.json' , {
@@ -41,7 +41,6 @@ export class ZModelWorkspaceManager extends DefaultWorkspaceManager {
4141 }
4242 } catch ( error ) {
4343 // Package not found or other error, continue to next folder
44- console . error ( `error happen when trying to find stdlib in folder ${ folder . uri } :` , error ) ;
4544 continue ;
4645 }
4746 }
You can’t perform that action at this time.
0 commit comments