File tree Expand file tree Collapse file tree
src/main/kotlin/com/insyncwithfoo/pyright Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ private fun Project.getWorkspaceFolders(type: WorkspaceFolders): Collection<Virt
2626
2727internal fun Project.getPyrightWorkspaceFolders (): Collection <VirtualFile > {
2828 val configRoot = resolveConfigurationFileWorkspaceRoot()
29+
2930 if (configRoot != null ) {
3031 LocalFileSystem .getInstance().findFileByNioFile(configRoot)?.let { return listOf (it) }
3132 }
32-
33+
3334 return getWorkspaceFolders(pyrightConfigurations.workspaceFolders)
3435}
3536
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ import org.eclipse.lsp4j.InitializeParams
77import org.eclipse.lsp4j.WorkspaceFolder
88
99
10+ @Suppress(" UnstableApiUsage" )
1011internal class PyrightClientFeatures : LSPClientFeatures () {
1112
12- @Suppress(" DEPRECATION" )
1313 override fun initializeParams (params : InitializeParams ) {
1414 val workspaceRoots = project.getPyrightWorkspaceFolders()
1515 val workspaceFolders = workspaceRoots.map { folder ->
You can’t perform that action at this time.
0 commit comments