Skip to content

Commit 8883fcd

Browse files
committed
Leading whitespace fixes
1 parent f4d81bc commit 8883fcd

84 files changed

Lines changed: 691 additions & 678 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build/lib/style.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ module.exports = function (opts) {
1515

1616
if (opts.whitespace) {
1717
var lines = contents.split(/\r\n|\r|\n/);
18-
var hadErrorLineNumber = 0;
1918
for (var i = 0, len = lines.length; i < len; i++) {
2019
var line = lines[i];
2120
if (line.length === 0) {
@@ -33,15 +32,9 @@ module.exports = function (opts) {
3332
// empty line
3433
continue;
3534
} else {
36-
// console.log(file.path + '(' + hadErrorLineNumber + ',1): Mixed whitespace indentation');
37-
hadErrorLineNumber = i + 1;
38-
break;
35+
console.log(file.path + '(' + (i + 1) + ',1): Mixed whitespace indentation');
3936
}
4037
}
41-
42-
if (hadErrorLineNumber) {
43-
console.log(file.path + '(' + hadErrorLineNumber + ',1): Mixed whitespace indentation');
44-
}
4538
}
4639
} else {
4740
var lines = contents.split(/\r\n|\r|\n/);

extensions/csharp-o/src/omnisharpServer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ export abstract class OmnisharpServer {
188188
ret = Promise.resolve(undefined);
189189

190190
} else if (/^win/.test(process.platform)) {
191-
// when killing a process in windows its child
192-
// processes are *not* killed but become root
193-
// processes. Therefore we use TASKKILL.EXE
191+
// when killing a process in windows its child
192+
// processes are *not* killed but become root
193+
// processes. Therefore we use TASKKILL.EXE
194194
ret = new Promise<OmnisharpServer>((resolve, reject) => {
195195
var killer = exec(`taskkill /F /T /PID ${this._serverProcess.pid}`, function (err, stdout, stderr) {
196196
if (err) {

extensions/csharp-o/src/omnisharpServerLauncher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function launch(cwd: string, args: string[]):Promise < { process:
3535
} catch (err) {
3636
reject(err);
3737
}
38-
});
38+
});
3939
}
4040

4141
function launchWindows(cwd: string, args: string[]): Promise<{ process: ChildProcess, command: string }> {

extensions/typescript/src/features/bufferSyncSupport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
* ------------------------------------------------------------------------------------------ */
5-
'use strict';
5+
'use strict';
66

77
import { workspace, TextDocument, TextDocumentChangeEvent, TextDocumentContentChangeEvent, Disposable } from 'vscode';
88
import * as Proto from '../protocol';

extensions/typescript/src/features/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
* ------------------------------------------------------------------------------------------ */
5-
'use strict';
5+
'use strict';
66

77
import { workspace } from 'vscode';
88

extensions/typescript/src/features/definitionProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
* ------------------------------------------------------------------------------------------ */
5-
'use strict';
5+
'use strict';
66

77
import { workspace, DefinitionProvider, TextDocument, Position, Range, CancellationToken, Location } from 'vscode';
88

extensions/typescript/src/features/documentHighlightProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
* ------------------------------------------------------------------------------------------ */
5-
'use strict';
5+
'use strict';
66

77
import { workspace, DocumentHighlightProvider, DocumentHighlight, DocumentHighlightKind, TextDocument, Position, Range, CancellationToken } from 'vscode';
88

extensions/typescript/src/features/documentSymbolProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
* ------------------------------------------------------------------------------------------ */
5-
'use strict';
5+
'use strict';
66

77
import { workspace, DocumentSymbolProvider, SymbolInformation, SymbolKind, TextDocument, Position, Range, CancellationToken } from 'vscode';
88

extensions/typescript/src/features/formattingProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
* ------------------------------------------------------------------------------------------ */
5-
'use strict';
5+
'use strict';
66

77
import { workspace, DocumentRangeFormattingEditProvider, OnTypeFormattingEditProvider, FormattingOptions, TextDocument, Position, Range, CancellationToken, TextEdit } from 'vscode';
88

extensions/typescript/src/features/hoverProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) Microsoft Corporation. All rights reserved.
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
* ------------------------------------------------------------------------------------------ */
5-
'use strict';
5+
'use strict';
66

77
import { workspace, HoverProvider, Hover, TextDocument, Position, Range, CancellationToken } from 'vscode';
88

0 commit comments

Comments
 (0)