Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit 3c957c1

Browse files
committed
add todo for future work
1 parent 6a580eb commit 3c957c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ function whenOpeningTextDocument(
108108
let _sortedWorkspaceFolders: string[] | undefined;
109109

110110
function sortedWorkspaceFolders(): string[] {
111+
// TODO: decouple the global state such that it can be moved to workspace_util
111112
if (!_sortedWorkspaceFolders && workspace.workspaceFolders) {
112113
_sortedWorkspaceFolders = workspace.workspaceFolders
113114
.map(folder => {
@@ -126,6 +127,7 @@ function sortedWorkspaceFolders(): string[] {
126127

127128

128129
function getOuterMostWorkspaceFolder(folder: WorkspaceFolder): WorkspaceFolder {
130+
// TODO: decouple the global state such that it can be moved to workspace_util
129131
const sorted = sortedWorkspaceFolders();
130132
for (const element of sorted) {
131133
let uri = folder.uri.toString();

0 commit comments

Comments
 (0)