-
Notifications
You must be signed in to change notification settings - Fork 29k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/microsoft/vscode into cla…
…ntz/dev-container
- Loading branch information
Showing
338 changed files
with
6,755 additions
and
3,730 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Latest Release Monitor | ||
on: | ||
schedule: | ||
- cron: 0/5 * * * * | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Actions | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: 'microsoft/vscode-github-triage-actions' | ||
path: ./actions | ||
ref: v19 | ||
- name: Install Actions | ||
run: npm install --production --prefix ./actions | ||
- name: Install Storage Module | ||
run: npm install @azure/storage-blob | ||
- name: Run Latest Release Monitor | ||
uses: ./actions/latest-release-monitor | ||
with: | ||
storageKey: ${{secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING_NEW}} | ||
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: "Release Pipeline Labeler" | ||
on: | ||
issues: | ||
types: [closed] | ||
repository_dispatch: | ||
types: [released-insider] | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Actions | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: 'microsoft/vscode-github-triage-actions' | ||
ref: v19 | ||
path: ./actions | ||
- name: Checkout Repo | ||
if: github.event_name != 'issues' | ||
uses: actions/checkout@v2 | ||
with: | ||
path: ./repo | ||
fetch-depth: 0 | ||
- name: Install Actions | ||
run: npm install --production --prefix ./actions | ||
- name: "Run Release Pipeline Labeler" | ||
uses: ./actions/release-pipeline | ||
with: | ||
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} | ||
notYetReleasedLabel: unreleased | ||
insidersReleasedLabel: insiders-released |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
disturl "https://atom.io/download/electron" | ||
target "7.3.0" | ||
target "7.3.1" | ||
runtime "electron" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
extensions/css-language-features/client/src/browser/cssClientMain.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
import { ExtensionContext } from 'vscode'; | ||
import { LanguageClientOptions } from 'vscode-languageclient'; | ||
import { startClient, LanguageClientConstructor } from '../cssClient'; | ||
import { LanguageClient } from 'vscode-languageclient/browser'; | ||
|
||
declare const Worker: { | ||
new(stringUrl: string): any; | ||
}; | ||
declare const TextDecoder: { | ||
new(encoding?: string): { decode(buffer: ArrayBuffer): string; }; | ||
}; | ||
|
||
// this method is called when vs code is activated | ||
export function activate(context: ExtensionContext) { | ||
const serverMain = context.asAbsolutePath('server/dist/browser/cssServerMain.js'); | ||
try { | ||
const worker = new Worker(serverMain); | ||
const newLanguageClient: LanguageClientConstructor = (id: string, name: string, clientOptions: LanguageClientOptions) => { | ||
return new LanguageClient(id, name, clientOptions, worker); | ||
}; | ||
|
||
startClient(context, newLanguageClient, { TextDecoder }); | ||
|
||
} catch (e) { | ||
console.log(e); | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
extensions/css-language-features/client/src/browser/vscodeNlsShim.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
export interface Options { | ||
locale?: string; | ||
cacheLanguageResolution?: boolean; | ||
} | ||
export interface LocalizeInfo { | ||
key: string; | ||
comment: string[]; | ||
} | ||
export interface LocalizeFunc { | ||
(info: LocalizeInfo, message: string, ...args: any[]): string; | ||
(key: string, message: string, ...args: any[]): string; | ||
} | ||
export interface LoadFunc { | ||
(file?: string): LocalizeFunc; | ||
} | ||
|
||
function format(message: string, args: any[]): string { | ||
let result: string; | ||
|
||
if (args.length === 0) { | ||
result = message; | ||
} else { | ||
result = message.replace(/\{(\d+)\}/g, (match, rest) => { | ||
let index = rest[0]; | ||
return typeof args[index] !== 'undefined' ? args[index] : match; | ||
}); | ||
} | ||
return result; | ||
} | ||
|
||
function localize(_key: string | LocalizeInfo, message: string, ...args: any[]): string { | ||
return format(message, args); | ||
} | ||
|
||
export function loadMessageBundle(_file?: string): LocalizeFunc { | ||
return localize; | ||
} | ||
|
||
export function config(_opt?: Options | string): LoadFunc { | ||
return loadMessageBundle; | ||
} |
Oops, something went wrong.