Skip to content

Commit

Permalink
fix: disable completion & relax required yaml fields (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-jeffery authored Nov 2, 2023
1 parent 8253304 commit 1ef998a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## v0.2.8

### [0.2.8](https://github.com/openfga/vscode-ext/compare/v0.2.7...v0.2.8) (2023-11-02)

- fix: addressed issues with enforced fields in yaml
- fix: disabled unimplemented completion

## v0.2.7

### [0.2.7](https://github.com/openfga/vscode-ext/compare/v0.2.6...v0.2.7) (2023-11-01)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"zanzibar"
],
"license": "Apache-2.0",
"version": "0.2.7",
"version": "0.2.8",
"repository": {
"type": "git",
"url": "https://github.com/openfga/vscode-ext"
Expand Down
1 change: 0 additions & 1 deletion server/src/openfga-yaml-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export const OPENFGA_YAML_SCHEMA = {
items: {
type: "object",
additionalProperties: false,
required: ["name", "check", "list_objects"],
properties: {
name: {
type: "string",
Expand Down
5 changes: 0 additions & 5 deletions server/src/server.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ export function startServer(connection: _Connection) {
const result: InitializeResult = {
capabilities: {
textDocumentSync: TextDocumentSyncKind.Incremental,
// Tell the client that this server supports code completion.
completionProvider: {
resolveProvider: false,
},
hoverProvider: true,
codeActionProvider: true,
},
Expand Down Expand Up @@ -186,7 +182,6 @@ export function startServer(connection: _Connection) {
// If no diagnostics, continue parsing.
if (!diagnostics.length && !schemaValidator(yamlDoc.toJSON())) {
schemaValidator.errors?.forEach((e: ErrorObject) => {
console.error(JSON.stringify(e as ErrorObject, null, 2));

let start = { line: 0, character: 0 };
let end = { line: 0, character: 0 };
Expand Down

0 comments on commit 1ef998a

Please sign in to comment.