Skip to content

Commit ff95705

Browse files
committed
Remove use strict in extensions (part 2)
We compile using alwaysStrict so this directive is not needed
1 parent d4edb9a commit ff95705

49 files changed

Lines changed: 98 additions & 49 deletions

Some content is hidden

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

extensions/configuration-editing/src/extension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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+
6+
67

78
import * as nls from 'vscode-nls';
89
const localize = nls.loadMessageBundle();

extensions/css-language-features/client/src/cssMain.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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+
6+
67
import * as path from 'path';
78
import * as fs from 'fs';
89

extensions/css-language-features/server/src/cssServerMain.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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+
6+
67

78
import {
89
createConnection, IConnection, TextDocuments, InitializeParams, InitializeResult, ServerCapabilities, ConfigurationRequest, WorkspaceFolder

extensions/css-language-features/server/src/languageModelCache.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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+
6+
67

78
import { TextDocument } from 'vscode-languageserver';
89

extensions/css-language-features/server/src/pathCompletion.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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+
6+
67

78
import * as path from 'path';
89
import * as fs from 'fs';

extensions/css-language-features/server/src/utils/documentContext.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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+
6+
67

78
import { DocumentContext } from 'vscode-css-languageservice';
89
import { endsWith, startsWith } from '../utils/strings';

extensions/css-language-features/server/src/utils/runner.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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+
6+
67

78
import { ResponseError, ErrorCodes, CancellationToken } from 'vscode-languageserver';
89

extensions/css-language-features/server/src/utils/strings.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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+
6+
67

78
export function startsWith(haystack: string, needle: string): boolean {
89
if (haystack.length < needle.length) {

extensions/emmet/src/locateFile.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
// Based on @sergeche's work on the emmet plugin for atom
77
// TODO: Move to https://github.com/emmetio/file-utils
8-
'use strict';
8+
9+
910

1011
import * as path from 'path';
1112
import * as fs from 'fs';

extensions/grunt/src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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+
6+
67

78
import * as path from 'path';
89
import * as fs from 'fs';

0 commit comments

Comments
 (0)