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

Remove unneeded promise constructors #351

Merged
merged 1 commit into from
Nov 12, 2020
Merged

Conversation

JPinkney
Copy link
Contributor

Signed-off-by: Josh Pinkney [email protected]

What does this PR do?

This PR removes promise constructors since they aren't actually used anywhere. We've always just used Promise and never passed anything different in

What issues does this PR fix or reference?

Is it tested? How?

npm run test

@coveralls
Copy link

coveralls commented Nov 12, 2020

Coverage Status

Coverage decreased (-0.009%) to 78.67% when pulling 90598e3 on remove-promise-constructors into 35e3358 on master.

@JPinkney JPinkney merged commit 1db6287 into master Nov 12, 2020
@JPinkney JPinkney deleted the remove-promise-constructors branch November 12, 2020 15:11
@@ -5,7 +5,7 @@
*--------------------------------------------------------------------------------------------*/
'use strict';

import { PromiseConstructor, Thenable } from 'vscode-json-languageservice';
import { Thenable } from 'vscode-json-languageservice';
Copy link
Member

Choose a reason for hiding this comment

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

I don't think you need Thenable either.

@@ -10,7 +10,7 @@ import { ASTNode, ObjectASTNode, PropertyASTNode } from '../jsonASTTypes';
import { parse as parseYAML } from '../parser/yamlParser07';
import { YAMLSchemaService } from './yamlSchemaService';
import { JSONSchema, JSONSchemaRef } from '../jsonSchema';
import { PromiseConstructor, Thenable, JSONWorkerContribution, CompletionsCollector } from 'vscode-json-languageservice';
import { Thenable, CompletionsCollector } from 'vscode-json-languageservice';
Copy link
Member

Choose a reason for hiding this comment

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

Don't need Thenable here either.

@joshuawilson
Copy link
Member

I guess I can stop reviewing this. :-)

@JPinkney
Copy link
Contributor Author

I'm going to make another PR that switches all Thenable to Promise 😄

@joshuawilson
Copy link
Member

You promise?

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.

4 participants