Skip to content

Commit

Permalink
feat(msg): add truncate option to avoid hit-enter (#32)
Browse files Browse the repository at this point in the history
* feat(msg): add truncate option to avoid hit-enter

* feat(msg): append to output channel instead
  • Loading branch information
iamcco committed Dec 7, 2020
1 parent 06f53ed commit 5759680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export async function activate(context: ExtensionContext): Promise<void> {
let doc = workspace.getDocument(bufnr)
if (!doc) return
let msg = fileSchemaErrors.get(doc.uri)
if (msg) workspace.showMessage(`Schema error: ${msg}`, 'warning')
if (msg) client.outputChannel.appendLine(`Schema error: ${msg}`)
}, null, subscriptions)

let serverOptions: ServerOptions = {
Expand Down Expand Up @@ -117,7 +117,7 @@ export async function activate(context: ExtensionContext): Promise<void> {
fileSchemaErrors.set(uri.toString(), schemaResolveDiagnostic.message)
let doc = workspace.getDocument(uri)
if (doc && doc.uri == uri) {
workspace.showMessage(`Schema error: ${schemaResolveDiagnostic.message}`, 'warning')
client.outputChannel.appendLine(`Schema error: ${schemaResolveDiagnostic.message}`)
}
next(uri, diagnostics as any)
},
Expand Down

0 comments on commit 5759680

Please sign in to comment.