Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
ce1217c9
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ce1217c9
编写于
3月 11, 2016
作者:
D
Dirk Baeumer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove tasks extension
上级
cb4a41e5
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
0 addition
and
196 deletion
+0
-196
extensions/tasks/package.json
extensions/tasks/package.json
+0
-24
extensions/tasks/src/tasksMain.ts
extensions/tasks/src/tasksMain.ts
+0
-126
extensions/tasks/src/typings/node.additions.d.ts
extensions/tasks/src/typings/node.additions.d.ts
+0
-28
extensions/tasks/src/typings/refs.d.ts
extensions/tasks/src/typings/refs.d.ts
+0
-9
extensions/tasks/tsconfig.json
extensions/tasks/tsconfig.json
+0
-9
未找到文件。
extensions/tasks/package.json
已删除
100644 → 0
浏览文件 @
cb4a41e5
{
"name"
:
"tasks"
,
"description"
:
"Extension to add support for tasks.json files"
,
"displayName"
:
"Tasks.json support for VSCode"
,
"version"
:
"0.10.1"
,
"author"
:
"Microsoft Corporation"
,
"license"
:
"MIT"
,
"publisher"
:
"vscode"
,
"engines"
:
{
"vscode"
:
"*"
},
"dependencies"
:
{
"vscode-nls"
:
"^1.0.4"
},
"scripts"
:
{
"vscode:prepublish"
:
"node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:tasks ./src/tsconfig.json"
},
"activationEvents"
:
[
"onLanguage:json"
],
"main"
:
"./out/tasksMain"
,
"contributes"
:
{
}
}
\ No newline at end of file
extensions/tasks/src/tasksMain.ts
已删除
100644 → 0
浏览文件 @
cb4a41e5
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
*
as
path
from
'
path
'
;
import
{
env
,
languages
,
workspace
,
ExtensionContext
,
TextDocument
,
Position
,
CancellationToken
,
CompletionItem
,
CompletionItemKind
,
DocumentFilter
}
from
'
vscode
'
;
import
*
as
nls
from
'
vscode-nls
'
;
let
localize
=
nls
.
config
({
locale
:
env
.
language
})();
export
function
activate
(
context
:
ExtensionContext
):
void
{
// We can't use a pattern here since it disables the normal json code complete
// which we don't want. Do the filtering in the actual suggest
let
selector
:
DocumentFilter
=
{
language
:
'
json
'
};
let
taskFileName
=
workspace
.
rootPath
?
path
.
join
(
workspace
.
rootPath
,
'
.vscode/tasks.json
'
)
:
null
;
let
items
=
taskFileName
?
createCompletionItems
()
:
[];
languages
.
registerCompletionItemProvider
(
selector
,
{
provideCompletionItems
:
(
document
:
TextDocument
,
position
:
Position
,
token
:
CancellationToken
):
CompletionItem
[]
=>
{
if
(
document
.
fileName
===
taskFileName
)
{
return
items
;
}
else
{
return
[];
}
}
});
}
function
createCompletionItems
():
CompletionItem
[]
{
let
result
:
CompletionItem
[]
=
[];
let
item
:
CompletionItem
;
item
=
new
CompletionItem
(
'
tsc - specific file
'
);
item
.
kind
=
CompletionItemKind
.
Snippet
;
item
.
detail
=
localize
(
'
tscFile
'
,
'
Use the tsc compiler on a specific file.
'
);
item
.
insertText
=
[
'
"version": "0.1.0",
'
,
'
"command": "tsc",
'
,
'
"isShellCommand": true,
'
,
'
"showOutput": "silent",
'
,
'
"args": ["{{file}}"],
'
,
'
"problemMatcher": "$tsc"
'
].
join
(
'
\n
'
);
result
.
push
(
item
);
item
=
new
CompletionItem
(
'
tsc - tsconfig.json
'
);
item
.
kind
=
CompletionItemKind
.
Snippet
;
item
.
detail
=
localize
(
'
tscConfig
'
,
'
Use the tsc compiler with a tsconfig.json file.
'
);
item
.
insertText
=
[
'
"version": "0.1.0",
'
,
'
"command": "tsc",
'
,
'
"isShellCommand": true,
'
,
'
"showOutput": "silent",
'
,
'
"args": ["-p", "."],
'
,
'
"problemMatcher": "$tsc"
'
].
join
(
'
\n
'
);
result
.
push
(
item
);
item
=
new
CompletionItem
(
'
tsc - watch
'
);
item
.
kind
=
CompletionItemKind
.
Snippet
;
item
.
detail
=
localize
(
'
tscWatch
'
,
'
Use the tsc compiler in watch mode.
'
);
item
.
insertText
=
[
'
"version": "0.1.0",
'
,
'
"command": "tsc",
'
,
'
"isShellCommand": true,
'
,
'
"showOutput": "silent",
'
,
'
"args": ["-w", "-p", "."],
'
,
'
"problemMatcher": "$tsc-watch"
'
].
join
(
'
\n
'
);
result
.
push
(
item
);
item
=
new
CompletionItem
(
'
tsc - open file
'
);
item
.
kind
=
CompletionItemKind
.
Snippet
;
item
.
detail
=
localize
(
'
tscOpenFile
'
,
'
Use the tsc compiler on the currently opened file.
'
);
item
.
insertText
=
[
'
"version": "0.1.0",
'
,
'
"command": "tsc",
'
,
'
"isShellCommand": true,
'
,
'
"showOutput": "silent",
'
,
'
"args": ["${file}"],
'
,
'
"problemMatcher": {
'
,
'
\t
"base": "$tsc",
'
,
'
\t
"fileLocation": "absolute"
'
,
'
}
'
].
join
(
'
\n
'
);
result
.
push
(
item
);
item
=
new
CompletionItem
(
'
dotnet build
'
);
item
.
kind
=
CompletionItemKind
.
Snippet
;
item
.
detail
=
localize
(
'
dotnet
'
,
'
Use dotnet build.
'
);
item
.
insertText
=
[
'
"version": "0.1.0",
'
,
'
"command": "dotnet build",
'
,
'
"showOutput": "always"
'
].
join
(
'
\n
'
);
result
.
push
(
item
);
item
=
new
CompletionItem
(
'
msbuild
'
);
item
.
kind
=
CompletionItemKind
.
Snippet
;
item
.
detail
=
localize
(
'
msbuild
'
,
'
Use msbuild to compile your project.
'
);
item
.
insertText
=
[
'
"version": "0.1.0",
'
,
'
"command": "msbuild",
'
,
'
"args": [
'
,
'
\t
// Ask msbuild to generate full paths for file names.
'
,
'
\t
"/property:GenerateFullPaths=true"
'
,
'
],
'
,
'
"taskSelector": "/t:",
'
,
'
"showOutput": "silent",
'
,
'
"tasks": [
'
,
'
\t
{
'
,
'
\t\t
"taskName": "build",
'
,
'
\t\t
// Show the output window only if unrecognized errors occur.
'
,
'
\t\t
"showOutput": "silent",
'
,
'
\t\t
// Use the standard MS compiler pattern to detect errors, warnings and infos
'
,
'
\t\t
"problemMatcher": "$msCompile"
'
,
'
\t
}
'
,
'
]
'
].
join
(
'
\n
'
);
result
.
push
(
item
);
return
result
;
}
\ No newline at end of file
extensions/tasks/src/typings/node.additions.d.ts
已删除
100644 → 0
浏览文件 @
cb4a41e5
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
declare
function
setTimeout
(
callback
:
(...
args
:
any
[])
=>
void
,
ms
:
number
,
...
args
:
any
[]):
NodeJS
.
Timer
;
declare
function
clearTimeout
(
timeoutId
:
NodeJS
.
Timer
):
void
;
declare
function
setInterval
(
callback
:
(...
args
:
any
[])
=>
void
,
ms
:
number
,
...
args
:
any
[]):
NodeJS
.
Timer
;
declare
function
clearInterval
(
intervalId
:
NodeJS
.
Timer
):
void
;
declare
function
setImmediate
(
callback
:
(...
args
:
any
[])
=>
void
,
...
args
:
any
[]):
any
;
declare
function
clearImmediate
(
immediateId
:
any
):
void
;
interface
Console
{
assert
(
test
?:
boolean
,
message
?:
string
,
...
optionalParams
:
any
[]):
void
;
dir
(
value
?:
any
,
...
optionalParams
:
any
[]):
void
;
error
(
message
?:
any
,
...
optionalParams
:
any
[]):
void
;
info
(
message
?:
any
,
...
optionalParams
:
any
[]):
void
;
log
(
message
?:
any
,
...
optionalParams
:
any
[]):
void
;
time
(
timerName
?:
string
):
void
;
timeEnd
(
timerName
?:
string
):
void
;
trace
(
message
?:
any
,
...
optionalParams
:
any
[]):
void
;
warn
(
message
?:
any
,
...
optionalParams
:
any
[]):
void
;
}
declare
var
Console
:
{
prototype
:
Console
;
new
():
Console
;
};
\ No newline at end of file
extensions/tasks/src/typings/refs.d.ts
已删除
100644 → 0
浏览文件 @
cb4a41e5
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/// <reference path='../../../../src/vs/vscode.d.ts'/>
/// <reference path='../../../../src/typings/mocha.d.ts'/>
/// <reference path='../../../../extensions/node.d.ts'/>
/// <reference path='../../../../extensions/lib.core.d.ts'/>
\ No newline at end of file
extensions/tasks/tsconfig.json
已删除
100644 → 0
浏览文件 @
cb4a41e5
{
"compilerOptions"
:
{
"module"
:
"commonjs"
,
"target"
:
"es5"
,
"noLib"
:
true
,
"sourceMap"
:
true
,
"outDir"
:
"../out"
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录