Use shared config for css language features

This commit is contained in:
Matt Bierner
2018-10-02 00:12:15 -07:00
parent 60287ebe51
commit ef5bd4810a
4 changed files with 5 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ export function formatError(message: string, err: any): string {
}
export function runSafe<T, E>(func: () => T, errorVal: T, errorMessage: string, token: CancellationToken): Thenable<T | ResponseError<E>> {
return new Promise<T | ResponseError<E>>((resolve, reject) => {
return new Promise<T | ResponseError<E>>((resolve) => {
setImmediate(() => {
if (token.isCancellationRequested) {
resolve(cancelValue());