Skip to content

review 3.15 spec#833

Closed
aeschli wants to merge 3 commits into
gh-pagesfrom
aeschli/review-3-15
Closed

review 3.15 spec#833
aeschli wants to merge 3 commits into
gh-pagesfrom
aeschli/review-3-15

Conversation

@aeschli

@aeschli aeschli commented Oct 1, 2019

Copy link
Copy Markdown
Contributor

Testing microsoft/vscode#81631

There are several TODO that are open questions (don't merge...)

@dbaeumer

dbaeumer commented Oct 2, 2019

Copy link
Copy Markdown
Member

@aeschli thanks. Ping me when ready to merge.

@dbaeumer

Copy link
Copy Markdown
Member

@aeschli I can't find any todos in the PR :-). Any pointer?

* partial result: `DocumentSymbol[]` \| `SymbolInformation[]`
* error: code and message set in case an exception happens during the document symbol request.

TODO: can partial result be a mix of SymbolInformation and DocumentSymbol ? IMO we could limit it to SymbolInformation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbaeumer Here is one.

* information about the error. Can be omitted.
*/
data?: D;
data?: string | number | boolean | number | array | object | null;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, number is there twice.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the LSP is JSON, the valid types must be JSON data types. any is more than that.
Maybe we can define:

type LSPAny = LSPObject | LSPArray | string | number | boolean | null;
type LSPObject = { [key:string]:LSPAny };
type LSPArray = LSPAny[];

and use it where needed.

* The notification's params.
*/
params?: Array<any> | object;
params?: array | object;

@h-michael h-michael Oct 15, 2019

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above comment

* an error squiggle.
*/
export const Unnecessary: 1;
export const Unnecessary = 1;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be export const Unnecessary: 1 = 1;

* Clients are allowed to rendered diagnostics with this tag strike through.
*/
export const Deprecated: 2;
export const Deprecated = 2;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@razzeee

razzeee commented Nov 6, 2019

Copy link
Copy Markdown
Contributor

Are there any concrete plans on when this is targeted for release? Last release was also in December, so will we get a new version every December then? Or how are you deciding when to release?

@dbaeumer

dbaeumer commented Dec 2, 2019

Copy link
Copy Markdown
Member

Merged the changes and addressed the open ToDos

@dbaeumer dbaeumer closed this Dec 2, 2019
@KamasamaK KamasamaK mentioned this pull request Mar 31, 2021
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

Successfully merging this pull request may close these issues.

6 participants