mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
remove some diffs from vscode (#6780)
This commit is contained in:
@@ -5,6 +5,7 @@ set ELECTRON_RUN_AS_NODE=
|
|||||||
|
|
||||||
pushd %~dp0\..
|
pushd %~dp0\..
|
||||||
|
|
||||||
|
:: Get Code.exe location
|
||||||
for /f "tokens=2 delims=:," %%a in ('findstr /R /C:"\"nameShort\":.*" product.json') do set NAMESHORT=%%~a
|
for /f "tokens=2 delims=:," %%a in ('findstr /R /C:"\"nameShort\":.*" product.json') do set NAMESHORT=%%~a
|
||||||
set NAMESHORT=%NAMESHORT: "=%
|
set NAMESHORT=%NAMESHORT: "=%
|
||||||
set NAMESHORT=%NAMESHORT:"=%.exe
|
set NAMESHORT=%NAMESHORT:"=%.exe
|
||||||
@@ -15,23 +16,14 @@ node build\lib\electron.js
|
|||||||
if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron
|
if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron
|
||||||
|
|
||||||
:: Run tests
|
:: Run tests
|
||||||
rem TFS Builds
|
|
||||||
if not "%BUILD_BUILDID%" == "" (
|
|
||||||
if not "%ADD_REPORTER%" == "" (
|
|
||||||
%CODE% .\test\electron\index.js --reporter mocha-junit-reporter %*
|
|
||||||
)
|
|
||||||
|
|
||||||
if "%ADD_REPORTER%" == "" (
|
|
||||||
:: Run tests
|
|
||||||
%CODE% .\test\electron\index.js %*
|
%CODE% .\test\electron\index.js %*
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
rem Otherwise
|
|
||||||
if "%BUILD_BUILDID%" == "" (
|
|
||||||
%CODE% .\test\electron\index.js %*
|
|
||||||
)
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
endlocal
|
endlocal
|
||||||
|
:: app.exit(0) is exiting with code 255 in Electron 1.7.4.
|
||||||
|
:: See https://github.com/Microsoft/vscode/issues/28582
|
||||||
|
echo errorlevel: %errorlevel%
|
||||||
|
if %errorlevel% == 255 set errorlevel=0
|
||||||
exit /b %errorlevel%
|
exit /b %errorlevel%
|
||||||
|
|||||||
@@ -647,7 +647,6 @@ export class MouseController<T> implements IDisposable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const newSelection = disjunction(rangeSelection, relativeComplement(selection, contiguousRange));
|
const newSelection = disjunction(rangeSelection, relativeComplement(selection, contiguousRange));
|
||||||
this.list.setFocus([focus]);
|
|
||||||
this.list.setSelection(newSelection, e.browserEvent);
|
this.list.setSelection(newSelection, e.browserEvent);
|
||||||
|
|
||||||
} else if (this.isSelectionSingleChangeEvent(e)) {
|
} else if (this.isSelectionSingleChangeEvent(e)) {
|
||||||
|
|||||||
@@ -3,33 +3,22 @@
|
|||||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import { Emitter, Event } from 'vs/base/common/event';
|
import { IAccessibilityService, AccessibilitySupport } from 'vs/platform/accessibility/common/accessibility';
|
||||||
import { IAccessibilityService, AccessibilitySupport, CONTEXT_ACCESSIBILITY_MODE_ENABLED } from 'vs/platform/accessibility/common/accessibility';
|
import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
|
||||||
import { Disposable } from 'vs/base/common/lifecycle';
|
|
||||||
import { IContextKeyService, IContextKey } from 'vs/platform/contextkey/common/contextkey';
|
|
||||||
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
|
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
|
||||||
|
import { AbstractAccessibilityService } from 'vs/platform/accessibility/common/abstractAccessibilityService';
|
||||||
|
|
||||||
export class BrowserAccessibilityService extends Disposable implements IAccessibilityService {
|
export class BrowserAccessibilityService extends AbstractAccessibilityService implements IAccessibilityService {
|
||||||
|
|
||||||
_serviceBrand: any;
|
_serviceBrand: any;
|
||||||
|
|
||||||
private _accessibilitySupport = AccessibilitySupport.Unknown;
|
private _accessibilitySupport = AccessibilitySupport.Unknown;
|
||||||
private _accessibilityModeEnabledContext: IContextKey<boolean>;
|
|
||||||
private readonly _onDidChangeAccessibilitySupport = new Emitter<void>();
|
|
||||||
readonly onDidChangeAccessibilitySupport: Event<void> = this._onDidChangeAccessibilitySupport.event;
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@IContextKeyService private readonly _contextKeyService: IContextKeyService,
|
@IContextKeyService readonly contextKeyService: IContextKeyService,
|
||||||
@IConfigurationService private readonly _configurationService: IConfigurationService,
|
@IConfigurationService readonly configurationService: IConfigurationService,
|
||||||
) {
|
) {
|
||||||
super();
|
super(contextKeyService, configurationService);
|
||||||
this._accessibilityModeEnabledContext = CONTEXT_ACCESSIBILITY_MODE_ENABLED.bindTo(this._contextKeyService);
|
|
||||||
this._register(this._configurationService.onDidChangeConfiguration(e => {
|
|
||||||
if (e.affectsConfiguration('editor.accessibilitySupport')) {
|
|
||||||
this._updateContextKey();
|
|
||||||
}
|
|
||||||
}));
|
|
||||||
this._updateContextKey();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
alwaysUnderlineAccessKeys(): Promise<boolean> {
|
alwaysUnderlineAccessKeys(): Promise<boolean> {
|
||||||
@@ -43,16 +32,9 @@ export class BrowserAccessibilityService extends Disposable implements IAccessib
|
|||||||
|
|
||||||
this._accessibilitySupport = accessibilitySupport;
|
this._accessibilitySupport = accessibilitySupport;
|
||||||
this._onDidChangeAccessibilitySupport.fire();
|
this._onDidChangeAccessibilitySupport.fire();
|
||||||
this._updateContextKey();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getAccessibilitySupport(): AccessibilitySupport {
|
getAccessibilitySupport(): AccessibilitySupport {
|
||||||
return this._accessibilitySupport;
|
return this._accessibilitySupport;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _updateContextKey(): void {
|
|
||||||
const detected = this.getAccessibilitySupport() === AccessibilitySupport.Enabled;
|
|
||||||
const config = this._configurationService.getValue('editor.accessibilitySupport');
|
|
||||||
this._accessibilityModeEnabledContext.set(config === 'on' || (config === 'auto' && detected));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,8 @@ export class TelemetryAppenderClient implements ITelemetryAppender {
|
|||||||
return Promise.resolve(null);
|
return Promise.resolve(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
flush(): any {
|
flush(): Promise<void> {
|
||||||
// TODO
|
// TODO
|
||||||
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export class WebTelemetryAppender implements ITelemetryAppender {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
flush(): Promise<any> | undefined {
|
flush(): Promise<void> {
|
||||||
if (this._aiClient) {
|
if (this._aiClient) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
this._aiClient!.flush();
|
this._aiClient!.flush();
|
||||||
@@ -60,7 +60,7 @@ export class WebTelemetryAppender implements ITelemetryAppender {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return undefined;
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user