mirror of https://github.com/sbt/sbt.git
Prevent Output panel from stealing focus
Fixes https://github.com/sbt/sbt/issues/4247 Ref https://github.com/Microsoft/vscode/issues/31474
This commit is contained in:
parent
e18e9f7c3e
commit
e1cc81fbd6
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "vscode-sbt-scala",
|
"name": "vscode-sbt-scala",
|
||||||
"version": "0.1.0",
|
"version": "0.2.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "vscode-sbt-scala",
|
"name": "vscode-sbt-scala",
|
||||||
"displayName": "Scala (sbt)",
|
"displayName": "Scala (sbt)",
|
||||||
"version": "0.2.0",
|
"version": "0.2.2",
|
||||||
"author": "Lightbend, Inc.",
|
"author": "Lightbend, Inc.",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"publisher": "lightbend",
|
"publisher": "lightbend",
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,13 @@ let fs = require('fs'),
|
||||||
os = require('os');
|
os = require('os');
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import { ExtensionContext, workspace } from 'vscode'; // workspace,
|
import { ExtensionContext, workspace } from 'vscode'; // workspace,
|
||||||
import { LanguageClient, LanguageClientOptions, ServerOptions, TransportKind } from 'vscode-languageclient';
|
import {
|
||||||
|
LanguageClient,
|
||||||
|
LanguageClientOptions,
|
||||||
|
RevealOutputChannelOn,
|
||||||
|
ServerOptions,
|
||||||
|
TransportKind
|
||||||
|
} from 'vscode-languageclient';
|
||||||
|
|
||||||
let terminal: vscode.Terminal = null;
|
let terminal: vscode.Terminal = null;
|
||||||
|
|
||||||
|
|
@ -53,6 +59,7 @@ export async function activate(context: ExtensionContext) {
|
||||||
// Options to control the language client
|
// Options to control the language client
|
||||||
let clientOptions: LanguageClientOptions = {
|
let clientOptions: LanguageClientOptions = {
|
||||||
documentSelector: [{ language: 'scala', scheme: 'file' }, { language: 'java', scheme: 'file' }],
|
documentSelector: [{ language: 'scala', scheme: 'file' }, { language: 'java', scheme: 'file' }],
|
||||||
|
revealOutputChannelOn: RevealOutputChannelOn.Never,
|
||||||
initializationOptions: () => {
|
initializationOptions: () => {
|
||||||
return discoverToken();
|
return discoverToken();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue