Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check Watches panel doesn't do anything #18

Open
wub opened this issue Jul 18, 2024 · 0 comments
Open

Check Watches panel doesn't do anything #18

wub opened this issue Jul 18, 2024 · 0 comments

Comments

@wub
Copy link

wub commented Jul 18, 2024

Hi, thanks for the extension!

When I open the Check Watches panel and add some data, nothing happens. I can't see any lines at all in VS Code's Output, nor in the console logs for spicedb. My schema is called schema.zed - I've also created schema.zed.yaml with test data (wrong filename?).

image

  • VS Code version 1.91.1
  • macOS Sonoma 14.5
  • Spicedb v

This all works perfectly in the online playground. Even some more logs/errors would be handy! Thanks.

VS Code Output below. The "file not found" error is strange - if I cmd + click the path, it loads the file fine (the file exists).

{"level":"info","format":"auto","log_level":"info","provider":"zerolog","async":false,"time":"2024-07-18T13:54:21+12:00","message":"configured logging"}
{"level":"warn","this-version":"v1.33.0","latest-released-version":"v1.34.0","time":"2024-07-18T13:54:22+12:00","message":"this version of SpiceDB is out of date. See: https://github.com/authzed/spicedb/releases/tag/v1.34.0"}
{"level":"info","addr":"-","time":"2024-07-18T13:54:22+12:00","message":"starting LSP server"}
{"level":"info","time":"2024-07-18T13:54:22+12:00","message":"listening for LSP connections on stdin"}
{"level":"info","id":"0","method":"initialize","params":"{\"capabilities\":{\"general\":{\"markdown\":{\"parser\":\"marked\",\"version\":\"1.1.0\"},\"positionEncodings\":[\"utf-16\"],\"regularExpressions\":{\"engine\":\"ECMAScript\",\"version\":\"ES2020\"},\"staleRequestSupport\":{\"cancel\":true,\"retryOnContentModified\":[\"textDocument/semanticTokens/full\",\"textDocument/semanticTokens/range\",\"textDocument/semanticTokens/full/delta\"]}},\"notebookDocument\":{\"synchronization\":{\"dynamicRegistration\":true,\"executionSummarySupport\":true}},\"textDocument\":{\"callHierarchy\":{\"dynamicRegistration\":true},\"codeAction\":{\"codeActionLiteralSupport\":{\"codeActionKind\":{\"valueSet\":[\"\",\"quickfix\",\"refactor\",\"refactor.extract\",\"refactor.inline\",\"refactor.rewrite\",\"source\",\"source.organizeImports\"]}},\"dataSupport\":true,\"disabledSupport\":true,\"dynamicRegistration\":true,\"honorsChangeAnnotations\":true,\"isPreferredSupport\":true,\"resolveSupport\":{\"properties\":[\"edit\"]}},\"codeLens\":{\"dynamicRegistration\":true},\"colorProvider\":{\"dynamicRegistration\":true},\"completion\":{\"completionItem\":{\"commitCharactersSupport\":true,\"deprecatedSupport\":true,\"documentationFormat\":[\"markdown\",\"plaintext\"],\"insertReplaceSupport\":true,\"insertTextModeSupport\":{\"valueSet\":[1,2]},\"labelDetailsSupport\":true,\"preselectSupport\":true,\"resolveSupport\":{\"properties\":[\"documentation\",\"detail\",\"additionalTextEdits\"]},\"snippetSupport\":true,\"tagSupport\":{\"valueSet\":[1]}},\"completionItemKind\":{\"valueSet\":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},\"completionList\":{\"itemDefaults\":[\"commitCharacters\",\"editRange\",\"insertTextFormat\",\"insertTextMode\",\"data\"]},\"contextSupport\":true,\"dynamicRegistration\":true,\"insertTextMode\":2},\"declaration\":{\"dynamicRegistration\":true,\"linkSupport\":true},\"definition\":{\"dynamicRegistration\":true,\"linkSupport\":true},\"diagnostic\":{\"dynamicRegistration\":true,\"relatedDocumentSupport\":false},\"documentHighlight\":{\"dynamicRegistration\":true},\"documentLink\":{\"dynamicRegistration\":true,\"tooltipSupport\":true},\"documentSymbol\":{\"dynamicRegistration\":true,\"hierarchicalDocumentSymbolSupport\":true,\"labelSupport\":true,\"symbolKind\":{\"valueSet\":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},\"tagSupport\":{\"valueSet\":[1]}},\"foldingRange\":{\"dynamicRegistration\":true,\"foldingRange\":{\"collapsedText\":false},\"foldingRangeKind\":{\"valueSet\":[\"comment\",\"imports\",\"region\"]},\"lineFoldingOnly\":true,\"rangeLimit\":5000},\"formatting\":{\"dynamicRegistration\":true},\"hover\":{\"contentFormat\":[\"markdown\",\"plaintext\"],\"dynamicRegistration\":true},\"implementation\":{\"dynamicRegistration\":true,\"linkSupport\":true},\"inlayHint\":{\"dynamicRegistration\":true,\"resolveSupport\":{\"properties\":[\"tooltip\",\"textEdits\",\"label.tooltip\",\"label.location\",\"label.command\"]}},\"inlineValue\":{\"dynamicRegistration\":true},\"linkedEditingRange\":{\"dynamicRegistration\":true},\"onTypeFormatting\":{\"dynamicRegistration\":true},\"publishDiagnostics\":{\"codeDescriptionSupport\":true,\"dataSupport\":true,\"relatedInformation\":true,\"tagSupport\":{\"valueSet\":[1,2]},\"versionSupport\":false},\"rangeFormatting\":{\"dynamicRegistration\":true,\"rangesSupport\":true},\"references\":{\"dynamicRegistration\":true},\"rename\":{\"dynamicRegistration\":true,\"honorsChangeAnnotations\":true,\"prepareSupport\":true,\"prepareSupportDefaultBehavior\":1},\"selectionRange\":{\"dynamicRegistration\":true},\"semanticTokens\":{\"augmentsSyntaxTokens\":true,\"dynamicRegistration\":true,\"formats\":[\"relative\"],\"multilineTokenSupport\":false,\"overlappingTokenSupport\":false,\"requests\":{\"full\":{\"delta\":true},\"range\":true},\"serverCancelSupport\":true,\"tokenModifiers\":[\"declaration\",\"definition\",\"readonly\",\"static\",\"deprecated\",\"abstract\",\"async\",\"modification\",\"documentation\",\"defaultLibrary\"],\"tokenTypes\":[\"namespace\",\"type\",\"class\",\"enum\",\"interface\",\"struct\",\"typeParameter\",\"parameter\",\"variable\",\"property\",\"enumMember\",\"event\",\"function\",\"method\",\"macro\",\"keyword\",\"modifier\",\"comment\",\"string\",\"number\",\"regexp\",\"operator\",\"decorator\"]},\"signatureHelp\":{\"contextSupport\":true,\"dynamicRegistration\":true,\"signatureInformation\":{\"activeParameterSupport\":true,\"documentationFormat\":[\"markdown\",\"plaintext\"],\"parameterInformation\":{\"labelOffsetSupport\":true}}},\"synchronization\":{\"didSave\":true,\"dynamicRegistration\":true,\"willSave\":true,\"willSaveWaitUntil\":true},\"typeDefinition\":{\"dynamicRegistration\":true,\"linkSupport\":true},\"typeHierarchy\":{\"dynamicRegistration\":true}},\"window\":{\"showDocument\":{\"support\":true},\"showMessage\":{\"messageActionItem\":{\"additionalPropertiesSupport\":true}},\"workDoneProgress\":true},\"workspace\":{\"applyEdit\":true,\"codeLens\":{\"refreshSupport\":true},\"configuration\":true,\"diagnostics\":{\"refreshSupport\":true},\"didChangeConfiguration\":{\"dynamicRegistration\":true},\"didChangeWatchedFiles\":{\"dynamicRegistration\":true,\"relativePatternSupport\":true},\"executeCommand\":{\"dynamicRegistration\":true},\"fileOperations\":{\"didCreate\":true,\"didDelete\":true,\"didRename\":true,\"dynamicRegistration\":true,\"willCreate\":true,\"willDelete\":true,\"willRename\":true},\"foldingRange\":{\"refreshSupport\":true},\"inlayHint\":{\"refreshSupport\":true},\"inlineValue\":{\"refreshSupport\":true},\"semanticTokens\":{\"refreshSupport\":true},\"symbol\":{\"dynamicRegistration\":true,\"resolveSupport\":{\"properties\":[\"location.range\"]},\"symbolKind\":{\"valueSet\":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},\"tagSupport\":{\"valueSet\":[1]}},\"workspaceEdit\":{\"changeAnnotationSupport\":{\"groupsOnLabel\":true},\"documentChanges\":true,\"failureHandling\":\"textOnlyTransactional\",\"normalizesLineEndings\":true,\"resourceOperations\":[\"create\",\"rename\",\"delete\"]},\"workspaceFolders\":true}},\"clientInfo\":{\"name\":\"Visual Studio Code\",\"version\":\"1.91.1\"},\"locale\":\"en\",\"processId\":70843,\"rootPath\":\"/Users/foouser/code/foocode\",\"rootUri\":\"file:///Users/foouser/code/foocode\",\"trace\":\"off\",\"workspaceFolders\":[{\"name\":\"foocode\",\"uri\":\"file:///Users/foouser/code/foocode\"}]}","response":{"capabilities":{"textDocumentSync":1,"completionProvider":{"triggerCharacters":["."]},"documentFormattingProvider":true,"diagnosticProvider":{"identifier":"spicedb","interFileDependencies":false,"workspaceDiagnostics":false},"hoverProvider":true}},"time":"2024-07-18T13:54:22+12:00","message":"responded to LSP request"}
{"level":"info","id":"0","method":"initialized","params":"{}","response":null,"time":"2024-07-18T13:54:22+12:00","message":"responded to LSP request"}
{"level":"info","method":"textDocument/diagnostic","uri":"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed","time":"2024-07-18T13:54:22+12:00","message":"textDocDiagnostic"}
{"level":"warn","uri":"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed","time":"2024-07-18T13:54:22+12:00","message":"file not found for diagnostics"}
{"level":"info","id":"1","method":"textDocument/diagnostic","params":"{\"identifier\":\"spicedb\",\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":{"kind":"","items":null},"time":"2024-07-18T13:54:22+12:00","message":"responded to LSP request"}
[Error - 13:54:22] Request textDocument/diagnostic failed.
  Message: file not found
  Code: -32603 
[Error - 13:54:22] Document pull failed for text document file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed
  Message: file not found
  Code: -32603 
{"level":"info","diagnostics":0,"uri":"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed","time":"2024-07-18T13:54:22+12:00","message":"computed diagnostics"}
{"level":"info","id":"0","method":"textDocument/didOpen","params":"{\"textDocument\":{\"languageId\":\"spicedb\",\"text\":\"definition foo/user {}\\n\\ndefinition foo/organization {\\n\\t// Full access - accounts, settings, billing.\\n\\trelation admin: foo/user\\n\\n\\t// Full access to clients but not settings. Can manage account user access/roles etc.\\n\\trelation member: foo/user\\n\\n\\t// Can only view the existence of the organization (shadow role for Account users).\\n\\trelation viewer: foo/user\\n\\tpermission manage = admin\\n\\tpermission manage_accounts = admin + member\\n\\tpermission view = admin + member + viewer\\n}\\n\\ndefinition foo/account {\\n\\t// The organization that owns this account\\n\\trelation organization: foo/organization\\n\\n\\t// (Usually) the person that created this account.\\n\\trelation owner: foo/user\\n\\n\\t// Main user access to this account.\\n\\trelation member: foo/user\\n\\n\\t// Read-only access to this account.\\n\\trelation viewer: foo/user\\n\\n\\t// Helper permission to propagate org-level permissions to things \\\"owned\\\" by this account (like integrations).\\n\\tpermission manage_organization = organization-\\u003emanage\\n\\tpermission manage = manage_organization + owner + member\\n\\tpermission view = manage + viewer\\n}\\n\\ndefinition foo/integration {\\n\\t// The account that owns the integration.\\n\\trelation account: foo/account\\n\\n\\t// Usually the person who has created the integration.\\n\\trelation owner: foo/user\\n\\n\\t// permission manage = owner + account-\\u003emanage_organization\\n\\tpermission manage = owner\\n\\tpermission view = manage + account-\\u003eview\\n}\\n\\n// New definition for budgets\\ndefinition foo/budget {\\n\\t// The account that owns the budget.\\n\\trelation account: foo/account\\n\\tpermission create = account-\\u003emanage\\n\\tpermission view = account-\\u003eview\\n\\tpermission update = account-\\u003emanage\\n\\tpermission delete = account-\\u003emanage\\n}\\n\",\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\",\"version\":1}}","response":null,"time":"2024-07-18T13:54:22+12:00","message":"responded to LSP request"}
{"level":"warn","method":"$/setTrace","time":"2024-07-18T13:54:23+12:00","message":"unsupported LSP method"}
{"level":"info","diagnostics":0,"uri":"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed","time":"2024-07-18T13:55:10+12:00","message":"computed diagnostics"}
{"level":"info","id":"0","method":"textDocument/didSave","params":"{\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":null,"time":"2024-07-18T13:55:10+12:00","message":"responded to LSP request"}
{"level":"info","id":"2","method":"textDocument/hover","params":"{\"position\":{\"character\":16,\"line\":54},\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":null,"time":"2024-07-18T13:55:12+12:00","message":"responded to LSP request"}
{"level":"info","id":"3","method":"textDocument/hover","params":"{\"position\":{\"character\":33,\"line\":54},\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":null,"time":"2024-07-18T13:55:13+12:00","message":"responded to LSP request"}
{"level":"info","id":"4","method":"textDocument/hover","params":"{\"position\":{\"character\":24,\"line\":54},\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":{"contents":{"language":"spicedb","value":"// The account that owns the budget.\nrelation account: foo/account\n"},"range":{"start":{"line":50,"character":10},"end":{"line":50,"character":17}}},"time":"2024-07-18T13:55:15+12:00","message":"responded to LSP request"}
{"level":"info","id":"5","method":"textDocument/hover","params":"{\"position\":{\"character\":24,\"line\":54},\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":{"contents":{"language":"spicedb","value":"// The account that owns the budget.\nrelation account: foo/account\n"},"range":{"start":{"line":50,"character":10},"end":{"line":50,"character":17}}},"time":"2024-07-18T13:55:16+12:00","message":"responded to LSP request"}
{"level":"info","id":"6","method":"textDocument/hover","params":"{\"position\":{\"character\":23,\"line\":54},\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":{"contents":{"language":"spicedb","value":"// The account that owns the budget.\nrelation account: foo/account\n"},"range":{"start":{"line":50,"character":10},"end":{"line":50,"character":17}}},"time":"2024-07-18T13:55:23+12:00","message":"responded to LSP request"}
{"level":"info","id":"7","method":"textDocument/hover","params":"{\"position\":{\"character\":13,\"line\":50},\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":null,"time":"2024-07-18T13:55:24+12:00","message":"responded to LSP request"}
{"level":"info","id":"8","method":"textDocument/hover","params":"{\"position\":{\"character\":23,\"line\":54},\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":{"contents":{"language":"spicedb","value":"// The account that owns the budget.\nrelation account: foo/account\n"},"range":{"start":{"line":50,"character":10},"end":{"line":50,"character":17}}},"time":"2024-07-18T13:55:25+12:00","message":"responded to LSP request"}
{"level":"info","diagnostics":0,"uri":"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed","time":"2024-07-18T13:56:28+12:00","message":"computed diagnostics"}
{"level":"info","id":"0","method":"textDocument/didSave","params":"{\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":null,"time":"2024-07-18T13:56:28+12:00","message":"responded to LSP request"}
{"level":"info","diagnostics":0,"uri":"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed","time":"2024-07-18T13:56:52+12:00","message":"computed diagnostics"}
{"level":"info","id":"0","method":"textDocument/didSave","params":"{\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":null,"time":"2024-07-18T13:56:52+12:00","message":"responded to LSP request"}
{"level":"info","diagnostics":0,"uri":"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed","time":"2024-07-18T13:56:53+12:00","message":"computed diagnostics"}
{"level":"info","id":"0","method":"textDocument/didSave","params":"{\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":null,"time":"2024-07-18T13:56:53+12:00","message":"responded to LSP request"}
{"level":"info","diagnostics":0,"uri":"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed","time":"2024-07-18T13:57:02+12:00","message":"computed diagnostics"}
{"level":"info","id":"0","method":"textDocument/didSave","params":"{\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":null,"time":"2024-07-18T13:57:02+12:00","message":"responded to LSP request"}
{"level":"info","id":"9","method":"textDocument/hover","params":"{\"position\":{\"character\":5,\"line\":29},\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":null,"time":"2024-07-18T13:58:16+12:00","message":"responded to LSP request"}
{"level":"info","id":"10","method":"textDocument/hover","params":"{\"position\":{\"character\":12,\"line\":21},\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":null,"time":"2024-07-18T13:58:22+12:00","message":"responded to LSP request"}
{"level":"info","id":"11","method":"textDocument/hover","params":"{\"position\":{\"character\":22,\"line\":54},\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":{"contents":{"language":"spicedb","value":"// The account that owns the budget.\nrelation account: foo/account\n"},"range":{"start":{"line":50,"character":10},"end":{"line":50,"character":17}}},"time":"2024-07-18T13:58:28+12:00","message":"responded to LSP request"}
{"level":"info","diagnostics":0,"uri":"file:///Users/foouser/code/foocode/spicedb/schema.zed","time":"2024-07-18T13:59:34+12:00","message":"computed diagnostics"}
{"level":"info","id":"0","method":"textDocument/didOpen","params":"{\"textDocument\":{\"languageId\":\"spicedb\",\"text\":\"definition foo/user {}\\n\\ndefinition foo/organization {\\n\\t// Full access - accounts, settings, billing.\\n\\trelation admin: foo/user\\n\\n\\t// Full access to clients but not settings. Can manage account user access/roles etc.\\n\\trelation member: foo/user\\n\\n\\t// Can only view the existence of the organization (shadow role for Account users).\\n\\trelation viewer: foo/user\\n\\tpermission manage = admin\\n\\tpermission manage_accounts = admin + member\\n\\tpermission view = admin + member + viewer\\n}\\n\\ndefinition foo/account {\\n\\t// The organization that owns this account\\n\\trelation organization: foo/organization\\n\\n\\t// (Usually) the person that created this account.\\n\\trelation owner: foo/user\\n\\n\\t// Main user access to this account.\\n\\trelation member: foo/user\\n\\n\\t// Read-only access to this account.\\n\\trelation viewer: foo/user\\n\\n\\t// Helper permission to propagate org-level permissions to things \\\"owned\\\" by this account (like integrations).\\n\\tpermission manage_organization = organization-\\u003emanage\\n\\tpermission manage = manage_organization + owner + member\\n\\tpermission view = manage + viewer\\n}\\n\\ndefinition foo/integration {\\n\\t// The account that owns the integration.\\n\\trelation account: foo/account\\n\\n\\t// Usually the person who has created the integration.\\n\\trelation owner: foo/user\\n\\n\\t// permission manage = owner + account-\\u003emanage_organization\\n\\tpermission manage = owner\\n\\tpermission view = manage + account-\\u003eview\\n}\\n\\n// New definition for budgets\\ndefinition foo/budget {\\n\\t// The account that owns the budget.\\n\\trelation account: foo/account\\n\\tpermission create = account-\\u003emanage\\n\\tpermission view = account-\\u003eview\\n\\tpermission update = account-\\u003emanage\\n\\tpermission delete = account-\\u003emanage\\n}\\n\",\"uri\":\"file:///Users/foouser/code/foocode/spicedb/schema.zed\",\"version\":1}}","response":null,"time":"2024-07-18T13:59:34+12:00","message":"responded to LSP request"}
{"level":"info","method":"textDocument/diagnostic","uri":"file:///Users/foouser/code/foocode/spicedb/schema.zed","time":"2024-07-18T13:59:34+12:00","message":"textDocDiagnostic"}
{"level":"info","diagnostics":0,"uri":"file:///Users/foouser/code/foocode/spicedb/schema.zed","time":"2024-07-18T13:59:34+12:00","message":"computed diagnostics"}
{"level":"info","uri":"file:///Users/foouser/code/foocode/spicedb/schema.zed","diagnostics":0,"time":"2024-07-18T13:59:34+12:00","message":"diagnostics complete"}
{"level":"info","id":"12","method":"textDocument/diagnostic","params":"{\"identifier\":\"spicedb\",\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/spicedb/schema.zed\"}}","response":{"kind":"full","items":[]},"time":"2024-07-18T13:59:34+12:00","message":"responded to LSP request"}
{"level":"info","id":"13","method":"textDocument/hover","params":"{\"position\":{\"character\":29,\"line\":23},\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/spicedb/schema.zed\"}}","response":null,"time":"2024-07-18T13:59:35+12:00","message":"responded to LSP request"}
{"level":"info","id":"0","method":"textDocument/didClose","params":"{\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\"}}","response":null,"time":"2024-07-18T13:59:37+12:00","message":"responded to LSP request"}
{"level":"info","diagnostics":0,"uri":"file:///Users/foouser/code/foocode/spicedb/schema.zed","time":"2024-07-18T13:59:56+12:00","message":"computed diagnostics"}
{"level":"info","id":"0","method":"textDocument/didSave","params":"{\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/spicedb/schema.zed\"}}","response":null,"time":"2024-07-18T13:59:56+12:00","message":"responded to LSP request"}
{"level":"info","diagnostics":0,"uri":"file:///Users/foouser/code/foocode/spicedb/schema.zed","time":"2024-07-18T13:59:57+12:00","message":"computed diagnostics"}
{"level":"info","id":"0","method":"textDocument/didSave","params":"{\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/spicedb/schema.zed\"}}","response":null,"time":"2024-07-18T13:59:57+12:00","message":"responded to LSP request"}
{"level":"warn","method":"$/setTrace","time":"2024-07-18T14:00:36+12:00","message":"unsupported LSP method"}
{"level":"warn","method":"$/setTrace","time":"2024-07-18T14:00:37+12:00","message":"unsupported LSP method"}
{"level":"warn","method":"$/setTrace","time":"2024-07-18T14:00:43+12:00","message":"unsupported LSP method"}
{"level":"info","id":"0","method":"textDocument/didClose","params":"{\"textDocument\":{\"uri\":\"file:///Users/foouser/code/foocode/spicedb/schema.zed\"}}","response":null,"time":"2024-07-18T14:03:01+12:00","message":"responded to LSP request"}
{"level":"info","diagnostics":0,"uri":"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed","time":"2024-07-18T14:03:02+12:00","message":"computed diagnostics"}
{"level":"info","id":"0","method":"textDocument/didOpen","params":"{\"textDocument\":{\"languageId\":\"spicedb\",\"text\":\"definition foo/user {}\\n\\ndefinition foo/organization {\\n\\t// Full access - accounts, settings, billing.\\n\\trelation admin: foo/user\\n\\n\\t// Full access to clients but not settings. Can manage account user access/roles etc.\\n\\trelation member: foo/user\\n\\n\\t// Can only view the existence of the organization (shadow role for Account users).\\n\\trelation viewer: foo/user\\n\\tpermission manage = admin\\n\\tpermission manage_accounts = admin + member\\n\\tpermission view = admin + member + viewer\\n}\\n\\ndefinition foo/account {\\n\\t// The organization that owns this account\\n\\trelation organization: foo/organization\\n\\n\\t// (Usually) the person that created this account.\\n\\trelation owner: foo/user\\n\\n\\t// Main user access to this account.\\n\\trelation member: foo/user\\n\\n\\t// Read-only access to this account.\\n\\trelation viewer: foo/user\\n\\n\\t// Helper permission to propagate org-level permissions to things \\\"owned\\\" by this account (like integrations).\\n\\tpermission manage_organization = organization-\\u003emanage\\n\\tpermission manage = manage_organization + owner + member\\n\\tpermission view = manage + viewer\\n}\\n\\ndefinition foo/integration {\\n\\t// The account that owns the integration.\\n\\trelation account: foo/account\\n\\n\\t// Usually the person who has created the integration.\\n\\trelation owner: foo/user\\n\\n\\t// permission manage = owner + account-\\u003emanage_organization\\n\\tpermission manage = owner\\n\\tpermission view = manage + account-\\u003eview\\n}\\n\\n// New definition for budgets\\ndefinition foo/budget {\\n\\t// The account that owns the budget.\\n\\trelation account: foo/account\\n\\tpermission create = account-\\u003emanage\\n\\tpermission view = account-\\u003eview\\n\\tpermission update = account-\\u003emanage\\n\\tpermission delete = account-\\u003emanage\\n}\\n\",\"uri\":\"file:///Users/foouser/code/foocode/server/src/Foo.HttpApi.Host/schema.zed\",\"version\":1}}","response":null,"time":"2024-07-18T14:03:02+12:00","message":"responded to LSP request"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant