mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Fix capitalization of GitHub org
This commit is contained in:
committed by
Martin Aeschlimann
parent
66c63c5d70
commit
e8760a5d6c
@@ -35,7 +35,7 @@ export default class TypeScriptImplementationsCodeLensProvider extends TypeScrip
|
||||
|
||||
const locations = response.body
|
||||
.map(reference =>
|
||||
// Only take first line on implementation: https://github.com/Microsoft/vscode/issues/23924
|
||||
// Only take first line on implementation: https://github.com/microsoft/vscode/issues/23924
|
||||
new vscode.Location(this.client.toResource(reference.file),
|
||||
reference.start.line === reference.end.line
|
||||
? typeConverters.Range.fromTextSpan(reference)
|
||||
|
||||
@@ -60,7 +60,7 @@ class MyCompletionItem extends vscode.CompletionItem {
|
||||
|
||||
if (tsEntry.source) {
|
||||
// De-prioritze auto-imports
|
||||
// https://github.com/Microsoft/vscode/issues/40311
|
||||
// https://github.com/microsoft/vscode/issues/40311
|
||||
this.sortText = '\uffff' + tsEntry.sortText;
|
||||
} else {
|
||||
this.sortText = tsEntry.sortText;
|
||||
@@ -578,7 +578,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider<
|
||||
|
||||
private getTsTriggerCharacter(context: vscode.CompletionContext): Proto.CompletionsTriggerCharacter | undefined {
|
||||
switch (context.triggerCharacter) {
|
||||
case '@': // Workaround for https://github.com/Microsoft/TypeScript/issues/27321
|
||||
case '@': // Workaround for https://github.com/microsoft/TypeScript/issues/27321
|
||||
return this.client.apiVersion.gte(API.v310) && this.client.apiVersion.lt(API.v320) ? undefined : '@';
|
||||
|
||||
case '#': // Workaround for https://github.com/microsoft/TypeScript/issues/36367
|
||||
@@ -720,7 +720,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider<
|
||||
position: vscode.Position
|
||||
): boolean {
|
||||
if (this.client.apiVersion.lt(API.v320)) {
|
||||
// Workaround for https://github.com/Microsoft/TypeScript/issues/27742
|
||||
// Workaround for https://github.com/microsoft/TypeScript/issues/27742
|
||||
// Only enable dot completions when previous character not a dot preceded by whitespace.
|
||||
// Prevents incorrectly completing while typing spread operators.
|
||||
if (position.character > 1) {
|
||||
@@ -793,7 +793,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider<
|
||||
document: vscode.TextDocument,
|
||||
token: vscode.CancellationToken
|
||||
): Promise<boolean> {
|
||||
// Workaround for https://github.com/Microsoft/TypeScript/issues/12677
|
||||
// Workaround for https://github.com/microsoft/TypeScript/issues/12677
|
||||
// Don't complete function calls inside of destructive assignments or imports
|
||||
try {
|
||||
const args: Proto.FileLocationRequestArgs = typeConverters.Position.toFileLocationRequestArgs(filepath, position);
|
||||
@@ -812,7 +812,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider<
|
||||
}
|
||||
|
||||
// Don't complete function call if there is already something that looks like a function call
|
||||
// https://github.com/Microsoft/vscode/issues/18131
|
||||
// https://github.com/microsoft/vscode/issues/18131
|
||||
const after = document.lineAt(position.line).text.slice(position.character);
|
||||
return after.match(/^[a-z_$0-9]*\s*\(/gi) === null;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ class TypeScriptFormattingProvider implements vscode.DocumentRangeFormattingEdit
|
||||
for (const edit of response.body) {
|
||||
const textEdit = typeConverters.TextEdit.fromCodeEdit(edit);
|
||||
const range = textEdit.range;
|
||||
// Work around for https://github.com/Microsoft/TypeScript/issues/6700.
|
||||
// Work around for https://github.com/microsoft/TypeScript/issues/6700.
|
||||
// Check if we have an edit at the beginning of the line which only removes white spaces and leaves
|
||||
// an empty line. Drop those edits
|
||||
if (range.start.character === 0 && range.start.line === range.end.line && textEdit.newText === '') {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Includes code from typescript-sublime-plugin project, obtained from
|
||||
* https://github.com/Microsoft/TypeScript-Sublime-Plugin/blob/master/TypeScript%20Indent.tmPreferences
|
||||
* https://github.com/microsoft/TypeScript-Sublime-Plugin/blob/master/TypeScript%20Indent.tmPreferences
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Includes code from typescript-sublime-plugin project, obtained from
|
||||
* https://github.com/Microsoft/TypeScript-Sublime-Plugin/blob/master/TypeScript%20Indent.tmPreferences
|
||||
* https://github.com/microsoft/TypeScript-Sublime-Plugin/blob/master/TypeScript%20Indent.tmPreferences
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
@@ -229,7 +229,7 @@ export default class TypeScriptServiceClientHost extends Disposable {
|
||||
}
|
||||
|
||||
private configFileDiagnosticsReceived(event: Proto.ConfigFileDiagnosticEvent): void {
|
||||
// See https://github.com/Microsoft/TypeScript/issues/10384
|
||||
// See https://github.com/microsoft/TypeScript/issues/10384
|
||||
const body = event.body;
|
||||
if (!body || !body.diagnostics || !body.configFile) {
|
||||
return;
|
||||
|
||||
@@ -33,7 +33,7 @@ export class Logger {
|
||||
}
|
||||
|
||||
public error(message: string, data?: any): void {
|
||||
// See https://github.com/Microsoft/TypeScript/issues/10496
|
||||
// See https://github.com/microsoft/TypeScript/issues/10496
|
||||
if (data && data.message === 'No content available.') {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user