summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-03 23:50:50 -0500
committerpommicket <pommicket@gmail.com>2023-01-03 23:50:50 -0500
commit3756a3e47221c3b0133724a482341a9010076a9e (patch)
tree7ad68fd0b76bd0e132fd86cd5044c3e08d581d22 /lsp.c
parent4e73c6a204383667aad6ce3905e16aee2a172fb6 (diff)
read workspace/symbols containerName
Diffstat (limited to 'lsp.c')
-rw-r--r--lsp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lsp.c b/lsp.c
index 583c822..0b3b44b 100644
--- a/lsp.c
+++ b/lsp.c
@@ -439,6 +439,8 @@ const char *lsp_document_path(LSP *lsp, LSPDocumentID document) {
assert(0);
return "";
}
+ // it's okay to keep a pointer to this around without the mutex locked
+ // we'll never change the path of a document ID.
const char *path = lsp->document_data[document].path;
SDL_UnlockMutex(lsp->document_mutex);
return path;